Error When Using atomic_compare_exchange In OpenCL Kernel
I’m getting a CL_BUILD_PROGRAM_FAILURE error, and a CL_INVALID_PROGRAM_EXECUTABLE error when using atomic_compare_exchange_strong in my OpenCL kernel. It runs if I comment out the atomic_compare_exchange_strong call. I’m not sure if there is also an error with my code that is also causing an error. This is how I’m using the function: