7 Replies Latest reply on Jan 27, 2010 6:48 AM by fulcrum_xyz

    atom_add on 5870 with Stream SDK 2.0beta4


      I am not able to compile a kernel file (mykernel.cl) usign atom_add.

      #pragma OPENCL EXTENSION cl_khr_global_int32_base_atomics : enable
      #pragma OPENCL EXTENSION cl_khr_local_int32_base_atomics : enable


      __kernel mykernel ()


          __local int * ptr;

          atom_add (ptr, 1);



      This doesn't work any reason why ?? Am i missing out on something here !!