Checked on AMD OpenCL devices