AnsweredAssumed Answered

Unable to use OpenCL 2.0 workgroup functions

Question asked by andrei.poenaru on Jul 10, 2015
Latest reply on Jul 22, 2015 by andrei.poenaru



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))




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


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


    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.