cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

jaidotsh
Staff
Staff

Problem with BUILD Program

Jump to solution

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

0 Likes
1 Solution

Accepted Solutions
jaidotsh
Staff
Staff

Re: Problem with BUILD Program

Jump to solution

Well, long story short - I reinstalled APP SDK and everything was hunky-dory again.

Thanks for the answers

View solution in original post

0 Likes
5 Replies
nou
Exemplar

Problem with BUILD Program

Jump to solution

do you have set AMD_OCL_BUILD_OPTIONS enviroment variable?

0 Likes
jaidotsh
Staff
Staff

Re: Problem with BUILD Program

Jump to solution

No I haven't. What should I set it to?. Isn't the SDK supposed to set during install?

0 Likes
nou
Exemplar

Re: Problem with BUILD Program

Jump to solution

what is in this variable is apssed as build options parameter in clBuildProgram(). so try it set to empty string.

jaidotsh
Staff
Staff

Re: Problem with BUILD Program

Jump to solution

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!

0 Likes
jaidotsh
Staff
Staff

Re: Problem with BUILD Program

Jump to solution

Well, long story short - I reinstalled APP SDK and everything was hunky-dory again.

Thanks for the answers

View solution in original post

0 Likes