Search:

Type: Posts; User: Dithermaster

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Agreed; the log will tell you where the error is....

    Agreed; the log will tell you where the error is.

    BTW, here's a nice page with all the OpenCL error codes: https://streamhpc.com/blog/2013-04-28/opencl-error-codes/

    -11 is CL_BUILD_PROGRAM...
  2. In 2.x it's also C++ but you still can't #include...

    In 2.x it's also C++ but you still can't #include <stdlib.h> -- these kernels execute on a GPU with far fewer resources than your CPU. The standard library is not supported there, C or C++.
  3. Rather than using clFlush, which puts a bubble in...

    Rather than using clFlush, which puts a bubble in the pipeline, you could take events from your kernels, and have a short pipeline of enqueue (maybe 3-5) and before you enqueue more work wait on the...
  4. Replies
    3
    Views
    213

    No API mechanism to check if hardware can do...

    No API mechanism to check if hardware can do multiple dispatch, just API to provide work that is able to be run together. Then check with hardware vendor specs to find GPU that can do it.
  5. Replies
    1
    Views
    178

    Race condition. Multiple work items are...

    Race condition. Multiple work items are incrementing the same memory locations at the same time. You need to use atomics to solve (or change the algorithm to remove the simultaneous access).
  6. Replies
    5
    Views
    491

    Yes, starting in OpenCL 2.2 it's core instead of...

    Yes, starting in OpenCL 2.2 it's core instead of optional. https://www.khronos.org/opencl/

    However, not many implementations at this point.
  7. Replies
    1
    Views
    258

    You don't access images like memory, you use...

    You don't access images like memory, you use read_imagef and pass the coordinate of the pixel you want to read. There are many examples online. Why are you talking about "y" for a 1D image? Only "x"...
  8. No. While OpenCL has ownership the OpenGL side...

    No. While OpenCL has ownership the OpenGL side can't use it. If you have a long running OpenCL computation you could have it write many image images instead of one big one, and display those as they...
  9. Replies
    1
    Views
    594

    The number of platforms depends on what hardware...

    The number of platforms depends on what hardware your system has, and what drivers are installed. Then your program sees all the platforms, and all of the devices in each platform, and can select...
  10. My understanding is "yes".

    My understanding is "yes".
  11. Replies
    63
    Views
    26,848

    Except that SPIR is independent now of OpenCL...

    Except that SPIR is independent now of OpenCL (e.g., works with Vulkan too) so impossible to lock it's version number to OpenCL. Except is SPIR 1.2 and 2.0 which were exclusive to OpenCL.
  12. Replies
    4
    Views
    838

    Check your third parameter to...

    Check your third parameter to clEnqueueNDRangeKernel ("work_dim") -- you have it set to 1, but it should be 2.
  13. Replies
    4
    Views
    838

    I suspect it's your local_item_size of {80,80} --...

    I suspect it's your local_item_size of {80,80} -- that's 6400 items in a workgroup, and most hardware can't do that big (check the device info for the hardware max, it might be something like 128,...
  14. It indicated that a certain OpenCL 1.2 flag was...

    It indicated that a certain OpenCL 1.2 flag was available even in their OpenCL 1.1 driver; now that they fully support OpenCL 1.2 it is no longer needed (perhaps it is still listed for backwards...
  15. Replies
    7
    Views
    1,326

    Intel GPU supports OpenCL 2.1 and SPIR-V....

    Intel GPU supports OpenCL 2.1 and SPIR-V. Reference: https://software.intel.com/en-us/articles/spir-v-is-a-better-spir-with-intel-opencl-code-builder
  16. Seems legal to me as long as you're not trying to...

    Seems legal to me as long as you're not trying to pass a host pointer in there. If you initialize the value and use the value only on the device side, seems completely legit.
  17. Yes. We do this in some of our kernels. It is...

    Yes. We do this in some of our kernels. It is legal.
  18. Replies
    8
    Views
    1,511

    Does GPU-Z say either GPU can do OpenCL? If...

    Does GPU-Z say either GPU can do OpenCL?
    If clGetPlatformIDs is crashing, that's a known issue; a bad OpenCL.dll. Back it up, delete it, and re-install your GPU driver which should put back a good...
  19. Replies
    5
    Views
    1,883

    Your kernel takes three arguments, int, float, &...

    Your kernel takes three arguments, int, float, & buffer
    You are calling setArg with buffer, buffer, & buffer
    The first two are wrong, you should be passing int & float (and also don't need to...
  20. No, they are not emulated. Your target...

    No, they are not emulated.

    Your target platform is AMD GPU and your kernel uses AMD-specific extension but your development system has an NVIDIA GPU that does not support them.

    Every GPU AMD...
  21. get_global_size is the same for all work iteam...

    get_global_size is the same for all work iteam (aka threads). If you enqueued your kernel for 512 work items it would be 512.
    get_global_id is unique for each work items. If you enqueued your kernel...
  22. Short answer: No Long answer: You are trying...

    Short answer: No

    Long answer: You are trying to run code that uses AMD-specific extensions on an NVIDIA GPU, where they are not supported. You should either switch to an AMD GPU or re-write the...
  23. Replies
    5
    Views
    1,883

    General advice: Since the display driver needs to...

    General advice: Since the display driver needs to use the GPU it kills your long-running compute process. When running OpenCL on the display GPU you should try to keep your kernels in the...
  24. Could your kernel execution time be dependent on...

    Could your kernel execution time be dependent on the input data?
  25. Starting in OpenCL 1.1 (OpenCL 1.0 was not...

    Starting in OpenCL 1.1 (OpenCL 1.0 was not threadsafe).
Results 1 to 25 of 241
Page 1 of 10 1 2 3 4
Proudly hosted by Digital Ocean