2 Replies Latest reply on Aug 17, 2011 5:28 AM by mishka_p

    why the atomic counters not work


      Hello. My GPU (HD 6950) have "cl_ext_atomic_counters_32" extention. Why when compiling certain code I have:

      OpenCL Compile Error: clBuildProgram failed (CL_BUILD_PROGRAM_FAILURE).

      calclCompile failedError: Creating kernel CalculateRarityAttentionMapKernelOne failed!


      #pragma OPENCL EXTENSION cl_ext_atomic_counters_32 : enable #pragma OPENCL EXTENSION cl_khr_global_int32_extended_atomics #pragma OPENCL EXTENSION cl_khr_global_int32_base_atomics : enable __kernel void SomeKernel (...) { ... counter32_t counter = 0; atomic_inc(counter); ... }