When compiling the following OpenCL kernel:
#pragma OPENCL EXTENSION cl_khr_int64_base_atomics : enable
__kernel void kernel(__global ulong* mem) {
atom_cmpxchg(&mem[0], 0, 1);
}
I get the following error:
error: undefined reference to `_Z12atom_cmpxchgPVU8CLglobalmmm()'
I'm using OpenCL from Rust with the OCL library. My OpenCL version is 1.2, my GPU is an Intel(R) Iris(TM) Graphics 550, I'm under macOS Sierra 10.12.1.