Search:

Type: Posts; User: matthiasv

Page 1 of 4 1 2 3 4

Search: Search took 0.00 seconds.

  1. Replies
    32
    Views
    14,420

    Sticky: Pipes: What is the idea behind the new pipe...

    Pipes: What is the idea behind the new pipe objects? Maybe I am too narrow-minded but I just come up with a good use case for them.

    clGetKernelArgInfo: Could you add a cl_kernel_arg_info constant...
  2. Replies
    0
    Views
    1,188

    clBuildProgram() for multiple AMD GPUs

    Hi,

    yesterday I fixed a nasty bug that is only present on AMD platforms with multiple GPUs. To sum up my findings: If you build one program separately for each device, enqueueing one of the...
  3. Replies
    1
    Views
    1,914

    Re: opencl texture memory

    Images.
  4. Replies
    4
    Views
    1,653

    Re: Reuse device buffer across kernel batches

    As I said before: this must work. Once you have your copy on the device you can re-use the memory object for as many kernel calls as you like.


    You should be more explicit :roll:
  5. Replies
    4
    Views
    1,653

    Re: Reuse device buffer across kernel batches

    Have you actually ever tried running it? Because, it should just work™.
  6. Re: How OpenCL chooses which vendor's library to link @ runt

    The point is, you never directly link against the vendor implementation of the OpenCL functions. You link against some libOpenCL.so that fills out function pointer tables to the actual...
  7. Re: how to create and init gpu memory buff to be all 0s

    AFAICT, this is OpenCL 1.2 only, right? I'm praying for the day NVIDIA will release an SDK with OpenCL 1.2 support.
  8. Re: how to create and init gpu memory buff to be all 0s

    Just write a simple kernel that sets the zeros.
  9. Replies
    5
    Views
    1,721

    Re: Global work space size

    Without seeing how you allocate memory via clCreateBuffer, it is hard to tell if it's a memory issue because the amount of global work items can easily be 2^32 or 2^64 in one dimension. Have you...
  10. Re: clCreateFromGLTexture undef ref and kernel args

    This must be then a hardware and/or SDK related problem. I just checked and I can put as many (probably as many as CL_CL_DEVICE_MAX_READ_IMAGE_ARGS) __read_only 2D image arguments in the kernels...
  11. Re: clCreateFromGLTexture undef ref and kernel args

    The setup looks fine, so I think this must be a driver and or OS issue. Also, I always receive the build log on Linux with GPUs ranging from 295 to 680 and some Teslas. Answering your last question:...
  12. Re: clCreateFromGLTexture undef ref and kernel args

    That's really strange. len should be the size of the build log. When I get errors the build log is a bit larger than the original kernel because it is interspersed with annotations from the NVIDIA...
  13. Replies
    7
    Views
    1,831

    Re: Simple question about clFinish()

    The standard is clear on this (emphasize mine):
  14. Replies
    7
    Views
    1,831

    Re: Simple question about clFinish()

    If you set up everything correctly using events, the last blocking read will be sufficient. It's just necessary to start the computation.

    EDIT: Actually, if you use a single, in-order queue events...
  15. Replies
    7
    Views
    1,831

    Re: Simple question about clFinish()

    I think, you should have a look into OpenCL events, setup you task graph with in-order queues and do a blocking read at the end. But you should also read what Intel has to say about explicit...
  16. Replies
    5
    Views
    1,727

    Re: Header files for Kernels

    A pre-processor is nothing magical but just replacing text strings by other text strings that you #defined before doing any actual compilation. Moreover, OpenCL C is an extended version of C99,...
  17. Replies
    5
    Views
    1,727

    Re: Header files for Kernels

    Probably the best solution would be to run the pre-processor cpp (assuming you are running some UNIXy OS) yourself somewhere in your build process. This will include the definitions and get rid of...
  18. Re: Setting the kernel argument for the local memory

    Please, read the specification and manuals the next time you ask questions that can be answered by a more thorough investigation. It's not that hard and you save people's time.

    If you'd done so,...
  19. Replies
    2
    Views
    1,205

    Re: Copy/transfer buffer to image.

    The functions are named exactly as you would expect: clEnqueueCopyImageToBuffer and clEnqueueCopyBufferToImage.
  20. Replies
    9
    Views
    3,367

    Re: Question about OpenCL for FPGA

    Hi Jeff,

    the number of compilers depends on the number of platforms. For example, the AMD system enumerates its own GPUs as well as all physical CPUs. Thus, you could use clCreateProgramWithSource...
  21. Replies
    9
    Views
    3,367

    Re: Question about OpenCL for FPGA

    Well, it all boils down to some simple abstractions. You write your OpenCL code in portable OpenCL C. Then you use one of the installed platform objects and create a context, containing as many...
  22. Replies
    2
    Views
    878

    Re: Store programs or kernels?

    Yes, you should re-use your kernel instead of re-creating it all the time. It's hard to tell what goes on behind the scenes when one creates a new kernel (maybe most structures are cached, maybe...
  23. Replies
    9
    Views
    3,367

    Re: Question about OpenCL for FPGA

    There is no generic compiler nor a standardized bytecode. Each vendor must provide a compiler not only because of this but also because OpenCL sources are compiled at run-time. But on the other hand,...
  24. Replies
    12
    Views
    3,652

    Re: how to run on cpu graphics card

    It will also, if possible, vectorize your code to use suitable SSE or AVX instructions.
  25. Replies
    1
    Views
    1,062

    Re: multiple contexts and devices

    In most cases, you want one context that spans all devices. First, memory is transparently transferred between devices in the same context. Second, an event is only valid in a context where it was...
Results 1 to 25 of 78
Page 1 of 4 1 2 3 4