cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

nou
Exemplar

Ubuntu package with ATI Stream SDK

i create deb package with ATi OpenCL libs. you can download it here

amd-app 2.5 i386 and amd64 need to run OpenCL aplication

amd-app-dev 2.5 both header files

hope you enjoy. pls post feedback.

EDIT:updated to 2.5

EDIT2: WARNING dont install with catalyst 11.11 and later.

0 Likes
102 Replies
nAyK
Journeyman III

Yes, I`m using deb-packages:

http://orwell.fiit.stuba.sk/~nou/ati-opencl-runtime_2.2_i386.deb

and

http://orwell.fiit.stuba.sk/~nou/ati-opencl-dev_2.2.deb

Command "aticonfig --initial --adapter=all" is running and using new xorg.conf with both Devices, but I do not run "export DISPLAY=:0".

Thanks, i run test again in this evening.

0 Likes

ok now we have SDK 2.3 here. so here re updated packages.

links as usual in first post.

0 Likes

finelly found a way to correct install. you can now download and install.

0 Likes

hello, I've installed your 2.3 package and catalyst 11.2 on ubuntu 10.10 and a radeon hd 5870. 

I get the following error when running an opencl program, I also tried downloading the samples and get the same error.  could you tell me if i'm missing something.  Thanks

 

*** CAL version mismatch:
This OpenCL build requires version 1.4.879, version 1.4.838 installed.
Aborting.

0 Likes

catalyst driver are not instelled properly. reinstall them.

http://wiki.cchtml.com/index.php/Ubuntu_Maverick_Installation_Guide#Installing_the_drivers_manually

0 Likes

Ubuntu 10.10 is not a supported OS for AMD APP SDK.

http://developer.amd.com/gpu/AMDAPPSDK/pages/DriverCompatibility.aspx

 

0 Likes
kacperpl1
Journeyman III

Is it possibile to install this or standard AMD APP along nvidia drivers? I'd like to have CPU support enabled on my linux but dpkg drops error about libOpenCL.so already being provided by another package.

EDIT: I found out that I can add libraries manually, however the CPU support doesn't work - I'm getting cl device query with an error: "Inconsistency detected by ld.so: dl-close.c: 737: _dl_close: Assertion `map->l_init_called' failed!", however the cpu info is correct but when running my application on cpu it just gets stuck.

How to do this correctly?

0 Likes

and from which version of libOpenCL.so do you use?

0 Likes

I tried both - I've got amd libs(libamdocl__.so, libOpenCL.so, libOpenCL.so.1) in both lib and lib32 from your package and nvidia opencl works, cpu is recognised partially by cl device query and I get that error. What am I missing?

EDIT: I found the solution in intel ocl sdk - sorry

0 Likes
JAMC11
Journeyman III

Thanks for keeping this updated... worked great with Ubuntu 11.04

*beer*


0 Likes
fnicolas44
Journeyman III

Hi, the installation of OpenCL deb packages with dev has been done successfully.

The hardware is the following :

Intel Core i7 6 core @ 3.2 Ghz

Club3D Ati Radeon 6990 x 2 (crossfire removed)

When i run clinfo I see the attached code

There is only 3 devices CPU and 2 GPU with only 1gb memory each !

Ati catalyst version is 11.5

Ubuntu is 10.4 LTS

How to see the 4 gpu ?

Thanks

 

./clinfo Number of platforms: 1 Platform Profile: FULL_PROFILE Platform Version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10) Platform Name: AMD Accelerated Parallel Processing Platform Vendor: Advanced Micro Devices, Inc. Platform Extensions: cl_khr_icd cl_amd_event_callback cl_amd_offline_devices Platform Name: AMD Accelerated Parallel Processing Number of devices: 3 Device Type: CL_DEVICE_TYPE_GPU Device ID: 4098 Max compute units: 24 Max work items dimensions: 3 Max work items[0]: 256 Max work items[1]: 256 Max work items[2]: 256 Max work group size: 256 Preferred vector width char: 16 Preferred vector width short: 8 Preferred vector width int: 4 Preferred vector width long: 2 Preferred vector width float: 4 Preferred vector width double: 0 Native vector width char: 16 Native vector width short: 8 Native vector width int: 4 Native vector width long: 2 Native vector width float: 4 Native vector width double: 0 Max clock frequency: 830Mhz Address bits: 32 Max memory allocation: 268435456 Image support: Yes Max number of images read arguments: 128 Max number of images write arguments: 8 Max image 2D width: 8192 Max image 2D height: 8192 Max image 3D width: 2048 Max image 3D height: 2048 Max image 3D depth: 2048 Max samplers within kernel: 16 Max size of kernel argument: 1024 Alignment (bits) of base address: 32768 Minimum alignment (bytes) for any datatype: 128 Single precision floating point capability Denorms: No Quiet NaNs: Yes Round to nearest even: Yes Round to zero: Yes Round to +ve and infinity: Yes IEEE754-2008 fused multiply-add: Yes Cache type: None Cache line size: 0 Cache size: 0 Global memory size: 1073741824 Constant buffer size: 65536 Max number of constant args: 8 Local memory type: Scratchpad Local memory size: 32768 Kernel Preferred work group size multiple: 64 Error correction support: 0 Unified memory for Host and Device: 0 Profiling timer resolution: 1 Device endianess: Little Available: Yes Compiler available: Yes Execution capabilities: Execute OpenCL kernels: Yes Execute native function: No Queue properties: Out-of-Order: No Profiling : Yes Platform ID: 0x7f1fa3060800 Name: Cayman Vendor: Advanced Micro Devices, Inc. Driver version: CAL 1.4.1385 Profile: FULL_PROFILE Version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10) 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt Device Type: CL_DEVICE_TYPE_GPU Device ID: 4098 Max compute units: 24 Max work items dimensions: 3 Max work items[0]: 256 Max work items[1]: 256 Max work items[2]: 256 Max work group size: 256 Preferred vector width char: 16 Preferred vector width short: 8 Preferred vector width int: 4 Preferred vector width long: 2 Preferred vector width float: 4 Preferred vector width double: 0 Native vector width char: 16 Native vector width short: 8 Native vector width int: 4 Native vector width long: 2 Native vector width float: 4 Native vector width double: 0 Max clock frequency: 0Mhz Address bits: 32 Max memory allocation: 268435456 Image support: Yes Max number of images read arguments: 128 Max number of images write arguments: 8 Max image 2D width: 8192 Max image 2D height: 8192 Max image 3D width: 2048 Max image 3D height: 2048 Max image 3D depth: 2048 Max samplers within kernel: 16 Max size of kernel argument: 1024 Alignment (bits) of base address: 32768 Minimum alignment (bytes) for any datatype: 128 Single precision floating point capability Denorms: No Quiet NaNs: Yes Round to nearest even: Yes Round to zero: Yes Round to +ve and infinity: Yes IEEE754-2008 fused multiply-add: Yes Cache type: None Cache line size: 0 Cache size: 0 Global memory size: 1073741824 Constant buffer size: 65536 Max number of constant args: 8 Local memory type: Scratchpad Local memory size: 32768 Kernel Preferred work group size multiple: 64 Error correction support: 0 Unified memory for Host and Device: 0 Profiling timer resolution: 1 Device endianess: Little Available: Yes Compiler available: Yes Execution capabilities: Execute OpenCL kernels: Yes Execute native function: No Queue properties: Out-of-Order: No Profiling : Yes Platform ID: 0x7f1fa3060800 Name: Cayman Vendor: Advanced Micro Devices, Inc. Driver version: CAL 1.4.1385 Profile: FULL_PROFILE Version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10) 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_3d_image_writes cl_khr_byte_addressable_store cl_khr_gl_sharing cl_amd_device_attribute_query cl_amd_printf cl_amd_media_ops cl_amd_popcnt Device Type: CL_DEVICE_TYPE_CPU Device ID: 4098 Max compute units: 12 Max work items dimensions: 3 Max work items[0]: 1024 Max work items[1]: 1024 Max work items[2]: 1024 Max work group size: 1024 Preferred vector width char: 16 Preferred vector width short: 8 Preferred vector width int: 4 Preferred vector width long: 2 Preferred vector width float: 4 Preferred vector width double: 0 Native vector width char: 16 Native vector width short: 8 Native vector width int: 4 Native vector width long: 2 Native vector width float: 4 Native vector width double: 0 Max clock frequency: 1600Mhz Address bits: 64 Max memory allocation: 6331596800 Image support: Yes Max number of images read arguments: 128 Max number of images write arguments: 8 Max image 2D width: 8192 Max image 2D height: 8192 Max image 3D width: 2048 Max image 3D height: 2048 Max image 3D depth: 2048 Max samplers within kernel: 16 Max size of kernel argument: 4096 Alignment (bits) of base address: 1024 Minimum alignment (bytes) for any datatype: 128 Single precision floating point capability Denorms: Yes Quiet NaNs: Yes Round to nearest even: Yes Round to zero: Yes Round to +ve and infinity: Yes IEEE754-2008 fused multiply-add: No Cache type: Read/Write Cache line size: 0 Cache size: 0 Global memory size: 25326387200 Constant buffer size: 65536 Max number of constant args: 8 Local memory type: Global Local memory size: 32768 Kernel Preferred work group size multiple: 1 Error correction support: 0 Unified memory for Host and Device: 1 Profiling timer resolution: 1 Device endianess: Little Available: Yes Compiler available: Yes Execution capabilities: Execute OpenCL kernels: Yes Execute native function: Yes Queue properties: Out-of-Order: No Profiling : Yes Platform ID: 0x7f1fa3060800 Name: Intel(R) Core(TM) i7 CPU 970 @ 3.20GHz Vendor: GenuineIntel Driver version: 2.0 Profile: FULL_PROFILE Version: OpenCL 1.1 AMD-APP-SDK-v2.4 (595.10) Extensions: cl_khr_fp64 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_vec3 cl_amd_media_ops cl_amd_popcnt cl_amd_printf

0 Likes

1GB of memory is normal. currently SDK 2.4 limit memory to 50%.  with preview catalyst 11.7 which contain beta 2.5 i have 800MB with my 1GB card. so hopefully we will see increase in avalable memory to 1600-1800MB on 2GB cards.

to see all 4 GPU try run "export DISPLAY=:0" and also check file /etc/X11/xorg.conf how many devices are listed there

0 Likes

Thank you for you quick reply

In the shell I wrote your command, but clinfo show again 3 devices (cpu + 2 gpu)

I've attach xorg file content. Dont know what to do with it.

cat /etc/X11/xorg.conf Section "Monitor" Identifier "aticonfig-Monitor[0]-0" Option "VendorName" "ATI Proprietary Driver" Option "ModelName" "Generic Autodetecting Monitor" Option "DPMS" "true" EndSection Section "Screen" Identifier "aticonfig-Screen[0]-0" Device "aticonfig-Device[0]-0" Monitor "aticonfig-Monitor[0]-0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "Module" Load "glx" EndSection Section "ServerLayout" Identifier "aticonfig Layout" Screen 0 "aticonfig-Screen[0]-0" 0 0 EndSection Section "Device" Identifier "aticonfig-Device[0]-0" BusID "PCI:5:0:0" Driver "fglrx" EndSection

0 Likes

you have only one device in xorg.conf. run "sudo aticonfig --adapter=all --initial" and restart X server (or whole computer).

if this didn't help then create new thread with your problem.

0 Likes

Yes ! Thanks, that works. 5 devices enabled. Going to burn the  ~12 TFlops for our own PyOpenCL simulation code.  More news & screenshots in some weeks !

0 Likes

updated to 2.5. link in first post.

0 Likes
maximmoroz
Journeyman III

Thanks a lot, nou. I have succesfully installed your package to Ubuntu 11.04 running at netbook (Intel Atom, no descreet GPU). I even managed to compile all SDK examples, while some of them (GL ones) are not working. For example, BoxFilterGL: "error while loading shared libraries: libGLEW.so: cannot open shared object file: No such file or directory". I have libGLEW.so.1.5 and libGLEW.so.1.5.2

Still others are working and clinfo shows single OpenCL device (CPU).

Thanks again.

0 Likes

Hello. I am very new to linux and newer to open cl and am stuck. I downloaded Nou's files and installed them (thank you) but I still get his error. How do I fix this?

 

64-bit Operating System Found..
 Starting Installation of AMD APP....
 SDK package name is :AMD-APP-SDK-v2.5-RC2-lnx64.tgz
Current directory path is  : /home/tbothwel/Downloads
Untar command executed succesfully, The SDK package available
Untar command executed succesfully, The ICD package available
Copying files to /opt/AMDAPP/ ...
SDK files copied successfully at /opt/AMDAPP/
Updating Environment vairables...
32-bit path is :/opt/AMDAPP/lib/x86
64-bit path is :/opt/AMDAPP/lib/x86_64
Environment vairables updated successfully
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Cannot stat /usr/lib32/libasprintf.so: No such file or directory
Global environment vairables Initialized
AMD APP installation  Completed
>>Reboot required to reflect the changes
>>Please refer the 'Log file' in the same directory
>>Refer the README.txt in the same directory for more info

0 Likes

I deb-package is installed, and AMD-APP-SDK-v2.5-RC2-lnx64.tgz just unpacked (not install) in your home directory and everything works ... Try

I use http://gpumodeling.blogspot.com/2011/06/anjuta-project-wizards-for-amd-nvidia.html and set the folder where the unzipped AMD-APP-SDK

0 Likes

you need install dev packages of glew, glut and such.

0 Likes
nou
Exemplar

as from catalyst 11.11 include OpenCL runtime don't install this packages and remove them before installing catalyst 11.11 or later.

0 Likes

Nou, I know it is damned simple so I could do it myself, but you are surely more familiar with making deb packages. Could you remove the dependency of the dev package so we can install it standalone and not have Synaptic cry all the time?

Also removing version should be safe, as development files should be generic and should not change. (Even if version is kept, dependency could be safely removed.)

Thanks,

Máté

0 Likes

wonder if i should continue making this packages as now catalyst install OpenCL runtime for you. and for dev package you just need copy include/CL directory into /usr/include.

0 Likes