Hi,
This may not be the right forum to post but I can't find anywhere else that seems suitable.
I'm trying to get to first base with openCL on OS-X and I'm having a surprisingly hard time. I'm just following the instructions here: https://developer.apple.com/library/content/documentation/Performance/Conceptual/OpenCL_MacProgGuide/XCodeHelloWorld/XCodeHelloWorld.html
Unfortunately I get this output when I try to run the code:
Created a dispatch queue using the AMD Radeon R9 M290X Compute Engine
[CL_DEVICE_NOT_AVAILABLE] : OpenCL Error : Error: build program driver returned (-2)
Break on OpenCLErrorBreak to debug.
OpenCL Warning : clBuildProgram failed: could not build program for 0xffffffff (Intel(R) Core(TM) i5-4690 CPU @ 3.50GHz) (err:-2)
Break on OpenCLWarningBreak to debug.
[CL_BUILD_ERROR] : OpenCL Build Error : Compiler build log:
CVMS_ERROR_COMPILER_FAILURE: CVMS compiler has crashed or hung building an element.
Break on OpenCLErrorBreak to debug.
All values properly calculatedProgram ended with exit code: 1
To get to this point I've interpreted the instructions a little; and this may be where the problem is coming from. I've done this:
- created a command line project for the C language
- added the OpenCL Framework from the General tab in the project settings
- in the build settings; for OpenCL turned off all optimisations, tried CLv1.1 and CLv1.2, tried removing compiling for x86_64 and gpu64
I'm also unsure how to follow the error insrtuctions: break on OpenCLErrorBreak
I'm using OS-X Sierra and XCode 8.2.1 (8C1002).
Any help is greatly appreciated
Ty