I am trying to build clmagma-0.2.0 on a system running an AMD A8-3850 APU with Radeon(tm) HD Graphics. I have installed
- clAmdBlas-1.8.269
AMD-APP-SDK-v2.6
The clmagma makefile runs through and everything builds but most of the opencl code. The makefile output:
- Code: Select all
gcc -fPIC -Xlinker -zmuldefs -Wl,-rpath=/opt/gcc-4.6.0/lib64 clcompile.o -o clcompile \
-L../lib -lclmagma -L/opt/clAmdBlas-1.8.269/lib64 -L/opt/gcc-4.6.0/lib64 -L/opt/acml5.1.0/gfortran64_mp/lib -lacml_mp -lclAmdBlas -lOpenCL
./clcompile sinplace_transpose.cl
Initializing...
Device: BeaverCreek
./clcompile spermute-v2.cl
Initializing...
Device: BeaverCreek
clBuildProgram error at 565 in CL_MAGMA_RT.cpp
clBuildProgram error code: -11
...
The error code is actually not in CL_MAGMA_RT.cpp. I had added
- Code: Select all
562 ciErrNum = clBuildProgram(cpProgram, 0, NULL, NULL, NULL, NULL);
563 if (ciErrNum != CL_SUCCESS)
564 {
565 printf ("clBuildProgram error at %d in %s\n", __LINE__, __FILE__);
+ 566 printf ("clBuildProgram error code: %d\n", ciErrNum);
567 return false;
568 }
Unfortunately this error code is pretty generic. The opencl spec states
CL_BUILD_PROGRAM_FAILURE if there is a failure to build the program executable. This error will be returned if clBuildProgram does not return until the build has completed.
Three builds succeed:
- Code: Select all
[root@apudemo clmagma-0.2.0]# locate *.co
/root/clmagma-0.2.0/interface_opencl/cpermute-v2.co
/root/clmagma-0.2.0/interface_opencl/sinplace_transpose.co
/root/clmagma-0.2.0/interface_opencl/stranspose-v2.co
The build of all others generates
clBuildProgram error code: -11
Any idea anybody what could be the issue?
Thank you very much in advance
