Why can this not run with CUDA and OpenCL?