4 Replies Latest reply on Jul 22, 2015 11:19 AM by andrei.poenaru

    Unable to use OpenCL 2.0 workgroup functions

    andrei.poenaru

      Hello,

       

      I'm trying to use the APP SDK 3.0 Beta to run some OpenCL 2.0 programs. However, I can't seem to be able to use the new workgroup functions. I have written a simple test kernel that looks like this (please ignore the unused arguments):

       

      __kernel void template(const int N,

                             __global int* restrict A,

                             __global int* restrict B,

                             __global int* restrict C)

      {

        int i = get_local_id(0);

        if (work_group_any(i == 0))

          printf("Hello.\n");

      }

       

      This kernel gives the following error message when trying to compile it:

       

      CL Program build error: "/tmp/OCL4614T8.cl", line 7: error: function "work_group_any" declared

                implicitly

          if (work_group_any(i == 0))

       

      I have checked and I am using the headers and libraries from the APP SDK. I'm trying to run this on the GPU of an A10-7850K APU. Does anyone have any idea what's going on here?

       

      Thank you.