Search:

Type: Posts; User: jprice

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. 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...
  2. Replies
    8
    Views
    180

    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
    {
    ...
  3. Replies
    8
    Views
    180

    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...
  4. Replies
    8
    Views
    180

    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};
  5. Replies
    8
    Views
    180

    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...
  6. Replies
    1
    Views
    138

    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.
  7. Replies
    8
    Views
    211

    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...
  8. Replies
    2
    Views
    168

    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...
  9. Replies
    1
    Views
    340

    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
  10. 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...
  11. Replies
    1
    Views
    438

    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...
  12. 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...
  13. 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...
  14. 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.
  15. 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?
  16. Replies
    10
    Views
    9,081

    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...
  17. Replies
    1
    Views
    1,325

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

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

    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...
  19. Replies
    4
    Views
    1,139

    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...
  20. Replies
    2
    Views
    2,495

    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 ...
  21. Hi Zvika, The preferred vector width is just a...

    Hi Zvika,

    The preferred vector width is just a recommendation for improving performance. In this case, NVIDIA's OpenCL implementation is telling you that it would prefer vectors of size 1 (i.e....
  22. Hi Nikki, If you just want to be able to...

    Hi Nikki,

    If you just want to be able to develop/run OpenCL code (and aren't too concerned about performance), then almost anything will do since OpenCL will run perfectly well on the CPU. If your...
  23. Hi Nikki, At present, the intermediate...

    Hi Nikki,

    At present, the intermediate representations used by these vendors are not compatible. AMD's compiler will generate AMD IL, where as NVIDIA's implementation generates and consumes PTX....
  24. Hi Zvika, 1. The OpenCL implementation for...

    Hi Zvika,

    1. The OpenCL implementation for NVIDIA's GPUs is packaged with their driver. Therefore, if you have the driver installed (which I assume you do), then you will be able to run OpenCL...
  25. Replies
    1
    Views
    1,218

    Hi, If the clCreateContext() function...

    Hi,

    If the clCreateContext() function succeeds, then status will be set to CL_SUCCESS, and context will be non-NULL. So yes, your test should be sufficient to determine if the context is valid....
Results 1 to 25 of 41
Page 1 of 2 1 2