cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

joeapisit
Journeyman III

CL_BUILD_PROGRAM_FAILURE

I can't run and got this error...

 

BUILD LOG ************************************************* sh: /home/opencl/ATIStream/bin/x86/clc: not found ************************************************* Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE

0 Likes
9 Replies
genaganna
Journeyman III

please export ATISTREAMSDKROOT=/home/opencl/ATIStream

0 Likes
nou
Exemplar

OpenCL didnt find clc which is in atistream-sdk/bin directory.

0 Likes

I typed this code but got above error messages

export ATISTREAMSDKROOT=/home/opencl/ATIStream export ATISTREAMSDKSAMPLESROOT=/home/opencl/ATIStream export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib sudo mkdir /usr/lib/OpenCL sudo mkdir /usr/lib/OpenCL/vendors sudo ln -sf $ATISTREAMSDKROOT/lib/libatiocl32.so /usr/lib/OpenCL/vendors/libatiocl32.so

0 Likes

your LD_LIBRARY_PATH is wrong.  but how sample is finding OpenCL.so

Please do like this for 32 bit

LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86

0 Likes

Joeapisit,

           It looks like you have changed the library directory structure.

0 Likes

now, It found clc. But got this BUILD LOG

 

BUILD LOG ************************************** Compilation failed ************************************** Error: clBuildProgram failed. Error code : CL_BUILD_PROGRAM_FAILURE

0 Likes

I can run it now. Thanks genaganna and nou.

0 Likes

What else did you do to fix it? I am havingthe same problem (Compilation failed).

0 Likes

Originally posted by: MrZagnut What else did you do to fix it? I am havingthe same problem (Compilation failed).

 

MrZagnut,

        What error message you are getting from Build log?  Are running existing samples or your own samples?

0 Likes