Search:

Type: Posts; User: snack14

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    928

    Nice tip, thanks. Unfortunately I'm targeting...

    Nice tip, thanks. Unfortunately I'm targeting NVIDIA GPU atm, so I cannot rely on that flag...
  2. Replies
    7
    Views
    928

    Thanks, I already checked some example, read a...

    Thanks, I already checked some example, read a book and experimented a bit. But understanding buffer creation is in my opinion the hardest thing for beginners, especially the meaning of...
  3. Replies
    7
    Views
    928

    Thanks, I was suspecting that this could be the...

    Thanks, I was suspecting that this could be the answer but now I'm sure ;)
    In the meanwhile I went on with my stream compaction implementation. I think that it is impossible to compact a stream "in...
  4. Replies
    7
    Views
    928

    Stream compaction

    I'm facing a stream compaction problem, exactly as described in sect. 39.3.1 of

    http.developer.nvidia.com/GPUGems3/gpugems3_ch39.html

    My vector is in global memory and I have to compact it and...
  5. Ok, it's much more clear now, thanks. What I...

    Ok, it's much more clear now, thanks. What I found a bit misleading is that the pointer to the host memory is returned by enqueueMapBuffer and not by the constructor of cl::Buffer, so that one would...
  6. Host memory allocation with CL_MEM_ALLOC_HOST_PTR

    I have a doubt about how cl::Buffer works when created with the CL_MEM_ALLOC_HOST_PTR flag. I create it using a NULL host pointer:


    cl::Buffer myBuffer(myContext, CL_MEM_ALLOC_HOST_PTR, n *...
  7. Replies
    10
    Views
    1,204

    Thanks for the answers. I got the point about...

    Thanks for the answers. I got the point about integrated GPUs. Still I don't catch the comment of utnapishtim: if I write a library and I get a pointer to host memory as argument I can still copy it...
  8. Replies
    10
    Views
    1,204

    Looking at the documentation of clCreateBuffer I...

    Looking at the documentation of clCreateBuffer I found for CL_MEM_USE_HOST_PTR:

    Thus it seems that it is left to implementation to decide whether to cache the data into the device memory or not....
  9. Replies
    10
    Views
    1,204

    I was about to post the very same bunch of...

    I was about to post the very same bunch of questions... I'm a newbie and for me it's a bit hard to understand what is exactly meant with "mapped/mappable memory" and the differences between the...
  10. Thanks to everybody, it is clear now.

    Thanks to everybody, it is clear now.
  11. Thanks Dithermaster. But now I'm a bit confused:...

    Thanks Dithermaster. But now I'm a bit confused: I don't explicitly enqueue any buffer copy to the GPU. I simply create cl::Buffer objects (using the C++ wrapper API), then set kernel arguments...
  12. Overhead of Passing the same buffer to different kernels

    Hi, I'm a beginner in OpenCL and I have a (maybe) naive question. In my use case I have two kernels which are queued sequentially; both of them need the same buffer object as input argument (amongst...
Results 1 to 12 of 12