Hi,
I have a problem running samples or any other programs on C++ OpenCL wrappers. I could run samples in the cl/ folder. Whenever I run any samples from cpp_cl/ I get this error
Build Options are : -x clc++
Error: clBuildProgram failed. Error code : CL_INVALID_BUILD_OPTIONS
Location : SDKCommon.cpp:1614
Error: sampleCommon::buildOpenCLProgram() failed
Location : FFT.cpp:260
and some of them just crash. Can someone identify the problem?
Thanks,
Jay
UPDATE: I'm using VS2012 and the latest APP SDK version
Solved! Go to Solution.
Well, long story short - I reinstalled APP SDK and everything was hunky-dory again.
do you have set AMD_OCL_BUILD_OPTIONS enviroment variable?
No I haven't. What should I set it to?. Isn't the SDK supposed to set during install?
what is in this variable is apssed as build options parameter in clBuildProgram(). so try it set to empty string.
I tried. When I run it I get thousands of errors like this
C:\Users\jaidotsh\AppData\Local\Temp\OCLB442.tmp.cl(280): error: variable "lp"
has already been initialized
lp[0] = zi0.x;
^
Then I removed it from my environment and set buildData.flagsStr = std::string(""); to empty string instead. It still throws those errors
There is no information about the build options anywhere!