13 Replies Latest reply on Oct 21, 2009 1:59 PM by riza.guntur

    beta4 problem: "link failed" when compiling a kernel using atomics

      beta4 problem

      Compiling the following kernel:

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

      __kernel void test( __global int *ptr ) {
              atom_add( ptr, 1 );



      Gives the compiler error

      "Link failed"

      The failure is directly related to the use of atomic operations.

      This is with the 64bit Ubuntu 9.04 release.