1 of 1 people found this helpful
I believe that by "error (flag not defined)" you get a compilation error not a run time error, correct ?
The persistent mem flag is defined in 'cl_ext.h' that ships with the AMD APP SDK.
CL_MEM_USE_PERSISTENT_MEM_AMD and other AMD specific flags/macros are defined in the header file "cl_ext.h" under <AMDAPPSDKROOT>/include/CL. You may include this header file explicitly or may include the header file "opencl.h" [under same directory as cl_ext.h] which implicitly includes all related headers including cl_ext.h. Please try and let us know if face any problem.
Yes, just a compilation error. It seemed strange to me it was not defined, but I did not find the header with the CL_MEM_USE_PERSISTENT_MEM_AMD declaration.