I am trying to get running with the ATI Stream SDK 2.1 to compile a basic OpenCL application after working with OpenCL for a while on my Mac using Apple's implementation.
I am on a linux cluster running SUSE 10. I have the Intel icc version 11.0. When attempting to run make on the SDK sample applications, I get a linker error referencing the libOpenCL.so library, "File Format Not Recognized". ( I did have to manually update openclsdkdefs.mk to define CC and LD as icc.)
I saw an earlier similar post indicating that maybe a bug had to be fixed before icc would be supported. But this was before the SDK 2.1 release and the release notes indicate icc 11.x is supported.
I believe I followed the install instructions perfectly with exception for not being done with root access. I don't see why that's necessary.
Does anyone have any ideas for steps I can try? Has anyone been able to get the SDK working with icc for OpenCL work?
(btw, I get the same error message when I link using gcc, but I have gcc 4.1.2, so I assume that is not new enough and is reason for the error in this case)
reddell@service0:~/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples> make make -C opencl make: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl' make -C SDKUtil make: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/SDKUtil' install -D build/debug/x86_64/libSDKUtil.a ../../../TempSDKUtil/lib/x86_64/libSDKUtil.a make: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/SDKUtil' make -C cl make: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl' make -C app make: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl/app' make -C AESEncryptDecrypt make: Entering directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl/app/AESEncryptDecrypt' Building build/debug/x86_64/AESEncryptDecrypt icc -o build/debug/x86_64/AESEncryptDecrypt build/debug/x86_64//AESEncryptDecrypt.o -lpthread -ldl -L/usr/X11R6/lib -lOpenCL -lSDKUtil -L../../../../../lib/x86_64 -L../../../../../TempSDKUtil/lib/x86_64 ../../../../../lib/x86_64/libOpenCL.so: file not recognized: File format not recognized make: *** [build/debug/x86_64/AESEncryptDecrypt] Error 1 make: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl/app/AESEncryptDecrypt' make: *** [AESEncryptDecrypt] Error 2 make: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl/app' make: *** [app] Error 2 make: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl/cl' make: *** [cl] Error 2 make: Leaving directory `/mnt/export/home/reddell/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples/opencl' make: *** [opencl] Error 2 reddell@service0:~/AMD_Stream_SDK_2_1/ati-stream-sdk-v2.1-lnx64/samples> icc --version icc (ICC) 11.0 20081105 Copyright (C) 1985-2008 Intel Corporation. All rights reserved.