Search:

Type: Posts; User: jprice

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Replies
    2
    Views
    379

    The OpenCL 2.0 C++ bindings are now available in...

    The OpenCL 2.0 C++ bindings are now available in the khronos registry (cl2.hpp):
    https://www.khronos.org/registry/cl/
  2. The OpenCL 2.0 C++ bindings are now available in...

    The OpenCL 2.0 C++ bindings are now available in the khronos registry (cl2.hpp):
    https://www.khronos.org/registry/cl/
  3. Replies
    5
    Views
    343

    The simple fix for this is to wrap any system...

    The simple fix for this is to wrap any system includes needed by the host in #ifndef __OPENCL_VERSION__ guards, e.g.:


    /* Header file shared by host and device */

    #ifndef __OPENCL_VERSION__...
  4. An updated version of the C++ bindings with...

    An updated version of the C++ bindings with support for OpenCL 2.0 will be released in the near future.
  5. If you are mapping a buffer to initialise values...

    If you are mapping a buffer to initialise values on the host which are then used by a kernel on the device, you must un-map the buffer before enqueueing the kernel that uses it. This is all the...
  6. The getBuildInfo() method will return a C++...

    The getBuildInfo() method will return a C++ string for CL_PROGRAM_BUILD_LOG, whereas your fprintf format expects a C string. You can use the c_str() method to print the log:


    fprintf(fp, "Build...
  7. Replies
    9
    Views
    399

    The error code -11 corresponds to...

    The error code -11 corresponds to CL_BUILD_PROGRAM_FAILURE, which indicates that the kernel code failed to compile. To see the compilation errors, you need to request the build log:


    try
    {
    ...
  8. Replies
    9
    Views
    399

    Yes, I've just tried this and it works (with the...

    Yes, I've just tried this and it works (with the change that I suggested).

    You can check whether the issue is with the context creation by explicitly querying the number of devices in the...
  9. Replies
    9
    Views
    399

    You may need to explicitly cast the platform to a...

    You may need to explicitly cast the platform to a cl_context_properties type:


    cl_context_properties properties[3] = {CL_CONTEXT_PLATFORM, (cl_context_properties)platform, 0};
  10. Replies
    9
    Views
    399

    That usage of clCreateContextFromType isn't...

    That usage of clCreateContextFromType isn't guaranteed to work on systems that use the OpenCL ICD model (which is most of them, these days). Instead, you should be explicit about which platform you...
  11. Replies
    2
    Views
    379

    Yes - there will be an updated version of the...

    Yes - there will be an updated version of the OpenCL C++ bindings with support for OpenCL 2.0 available in the not-too-distant future.
  12. Replies
    8
    Views
    351

    This is a bug in the Khronos OpenCL headers. We...

    This is a bug in the Khronos OpenCL headers. We have this on our internal bug tracking system, so it should be fixed in a future release of the headers.

    In the meantime, you could produce your own...
  13. Replies
    2
    Views
    215

    It depends what is inside your loop - there could...

    It depends what is inside your loop - there could be race conditions or other undefined behaviour which changes the output depending on whether the loop was unrolled or not. If you post some code we...
  14. Replies
    1
    Views
    390

    Yes this is a typo in the documentation. If you...

    Yes this is a typo in the documentation. If you check the OpenCL C specification, the description is correct:
    https://www.khronos.org/registry/cl/specs/opencl-2.0-openclc.pdf
  15. If your users have an OpenCL capable device and...

    If your users have an OpenCL capable device and the necessary drivers installed, they will have an OpenCL.dll installed. If they don't, shipping one with your application won't help them - they need...
  16. Replies
    1
    Views
    541

    The OpenCL 2.0 API specification contains this...

    The OpenCL 2.0 API specification contains this paragraph in the description for clCreateCommandQueueWithProperties:



    So, you need to be using a zero-terminated key-value list of properties, not...
  17. With the exception of the first issue that you...

    With the exception of the first issue that you described, the problems you are encountering are all issues with the compiler front-ends behaving differently. As has been pointed out, ensuring that...
  18. Any given work-group will execute on a single...

    Any given work-group will execute on a single compute unit. However, there is no reason why multiple work-groups cannot concurrently execute on the same compute unit, and indeed many devices will do...
  19. The function you've defined is called...

    The function you've defined is called cltocppfloat4, but the function you are trying to call is called cltocppfloat.
  20. I've just run your code and it produces the...

    I've just run your code and it produces the desired results (30-79). Which OpenCL platform/device are you running this on?
  21. Replies
    26
    Views
    10,226

    Sticky: It's not clear to me what the problem is. There...

    It's not clear to me what the problem is. There is no requirement that all pending operations using a buffer complete before you can release it - the buffer will only be destroyed when the reference...
  22. Replies
    1
    Views
    1,437

    Yes, as long as both queues were created within...

    Yes, as long as both queues were created within the same context.
  23. Replies
    2
    Views
    2,242

    I'm afraid you've made the same mistake as in...

    I'm afraid you've made the same mistake as in your previous topic, in that you are misunderstanding how the sizeof() operator works. In this case, the datatype of 'a' is a 'pointer to unsigned...
  24. Replies
    4
    Views
    1,187

    This issue is that you are incorrectly using...

    This issue is that you are incorrectly using 'sizeof(a)' to determine the size of your array. The sizeof operator computes the size of the datatype you give it, not the size of the array you...
  25. Replies
    2
    Views
    2,740

    Hi, For NVIDIA (assuming proprietary driver),...

    Hi,

    For NVIDIA (assuming proprietary driver), you can use the nvidia-smi command-line tool to gauge approximate GPU load:

    $ nvidia-smi
    Thu Dec 5 15:36:15 2013 ...
Results 1 to 25 of 46
Page 1 of 2 1 2