why the atomic counters not work

Discussion created by mishka_p on Aug 16, 2011
Latest reply on Aug 17, 2011 by mishka_p

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); ... }