4 Replies Latest reply on Jun 24, 2011 3:35 PM by akumar8

    atomic add 64-bit problem

    akumar8

      Use of atomic_add for "int" work fine but, throws following error when used for "long int"

      /tmp/OCLt2TJtm.cl(33): error: function "atom_add" declared implicitly

      When any of the following line is include in the source code

      #pragma OPENCL EXTENSION cl_khr_global_int64_base_atomics : enable
      #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable

      new error of the form shown below is thrown

      /tmp/OCLt2TJtm.cl(9): error: can't enable all OpenCL extensions or
                unrecognized OpenCL extension
        #pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable

      I have installed APP-SDK-2.4 on 64-bit Ubuntu.