Anyone have the new sdk working with ubuntu lucid (10.04) working? I have a radeon 5770. amdcccle reports my card as a "ATI Radeon HD 5700 Series".
Said card is listed as supported by the new SDK.
I got close, I used the ATI_Stream_SDK_Installation_Note.fm docs and ran:
$ export ATISTREAMSDKROOT=~/src/ati-stream-sdk-v2.2-lnx64
$ export ATISTREAMSDKSAMPLESROOT=~/src/ati-stream-sdk-v2.2-lnx64
Originally posted by: sbike Anyone have the new sdk working with ubuntu lucid (10.04) working? I have a radeon 5770. amdcccle reports my card as a "ATI Radeon HD 5700 Series". Said card is listed as supported by the new SDK.
I got close, I used the ATI_Stream_SDK_Installation_Note.fm docs and ran:
$ export ATISTREAMSDKROOT=~/src/ati-stream-sdk-v2.2-lnx64
$ export ATISTREAMSDKSAMPLESROOT=~/src/ati-stream-sdk-v2.2-lnx64
$ export LD_LIBRARY_PATH=$ATISTREAMSDKROOT/lib/x86:$ATISTREAMSDKROOT/lib/x86_64:$LD_LIBRARY_PATH# cd /# tar xfz /tmp/icd-registration.tgzThat worked:$ ls /etc/OpenCL/vendors/atiocl32.icd atiocl64.icdThe docs don't mention it but you will likely need:# apt-get install mesa-common-dev libglu1-xorg-dev libglut3-devI did a make which compiled a ton of stuff but failed with:g++ -o build/debug/x86_64/cal_idct build/debug/x86_64//cal_idct.o build/debug/x86_64//Timer.o build/debug/x86_64//Samples.o -lpthread -ldl -L/usr/X11R6/lib -laticalrt -laticalcl -L../../../../lib/x86_64 -L../../../../TempSDKUtil/lib/x86_64/usr/bin/ld: cannot find -laticalrtIs there some missing environment variable not mentioned in the docs?$ find /usr/lib/fglrx/ -name 'libatical*'/usr/lib/fglrx/libaticaldd.so/usr/lib/fglrx/libaticalcl.so/usr/lib/fglrx/libaticalrt.soQuite a few things did compile, like:$ cd $ATISTREAMSDKROOT/samples/opencl/bin/x86_64$ ./HelloCLHelloCL!Getting Platform InformationCreating a context AMD platformGetting device infoLoading and compiling CL sourceRunning CL programDonePassed!$ ./CLInfoNumber of platforms: 1Platform Profile: FULL_PROFILEPlatform Version: OpenCL 1.1 ATI-Stream-v2.2 (302)Platform Name: ATI StreamPlatform Vendor: Advanced Micro Devices, Inc.Platform Extensions: cl_khr_icd cl_amd_event_callbackPlatform Name: ATI StreamNumber of devices: 1Device Type: CL_DEVICE_TYPE_CPUDevice ID: 4098Max compute units: 8Max work items dimensions: 3Max work items[0]: 1024Max work items[1]: 1024Max work items[2]: 1024Max work group size: 1024Preferred vector width char: 16Preferred vector width short: 8Preferred vector width int: 4Preferred vector width long: 2Preferred vector width float: 4Preferred vector width double: 0Max clock frequency: 1200MhzAddress bits: 64Max memory allocation: 1073741824Image support: NoMax size of kernel argument: 4096Alignment (bits) of base address: 1024Minimum alignment (bytes) for any datatype: 128Single precision floating point capabilityDenorms: YesQuiet NaNs: YesRound to nearest even: YesRound to zero: YesRound to +ve and infinity: YesIEEE754-2008 fused multiply-add: NoCache type: Read/WriteCache line size: 64Cache size: 32768Global memory size: 3221225472Constant buffer size: 65536Max number of constant args: 8Local memory type: GlobalLocal memory size: 32768Profiling timer resolution: 1Device endianess: LittleAvailable: YesCompiler available: YesExecution capabilities:Execute OpenCL kernels: YesExecute native function: YesQueue properties:Out-of-Order: NoProfiling : YesPlatform ID: 0x7fca6acceb20Name: Intel(R) Xeon(R) CPU X3450 @ 2.67GHzVendor: GenuineIntelDriver version: 2.0Profile: FULL_PROFILEVersion: OpenCL 1.1 ATI-Stream-v2.2 (302)Extensions: cl_amd_fp64 cl_khr_global_int32_base_atomics cl_khr_global_int32_extended_atomics cl_khr_local_int32_base_atomics cl_khr_local_int32_extended_atomics cl_khr_int64_base_atomics cl_khr_int64_extended_atomics cl_khr_byte_addressable_store cl_khr_gl_sharing cl_ext_device_fission cl_amd_device_attribute_query cl_amd_printfPassed!But nothing else seems to work:$ ./URNGError: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND$ ./HistogramError: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND$ ./MandelbrotError: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUND$ ./SobelFilterError: clCreateContextFromType failed. Error code : CL_DEVICE_NOT_FOUNDIdeas?
It looks like you have not installed driver. You can find driver at http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx