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

nou here you can find information on how to create a Repository for easier distribution of this packages on Debian Based Distros like Ubuntu.

 

http://www.debian.org/doc/manuals/repository-howto/repository-howto.en.html

 

Note: I know it says Obsolete, but it should still work.



0 Likes

i do not see much reason to create repositroy for just three packages.

0 Likes

the packages will be far more easy to be distributed and updated, and the adoption rate will highly likely improve too. since more developers will have a quick install option.

0 Likes
saucier
Journeyman III

I have a problem compiling CAL++,

obviously the environment variable ATISTREAMSDKROOT is not set.

I installed your packages on Ubuntu 10.04 x64 without any problems, but how do i set the environment variable?

The files of your package are the following:

/.
/etc
/etc/profile.d
/etc/profile.d/ati-opencl.sh
/usr
/usr/lib
/usr/lib/OpenCL
/usr/lib/OpenCL/vendors
/usr/lib/OpenCL/vendors/libatiocl32.so
/usr/lib/OpenCL/vendors/libatiocl64.so
/usr/lib/libOpenCL.so
/usr/lib32
/usr/lib32/libOpenCL.so
/usr/local
/usr/local/bin
/usr/local/bin/x86
/usr/local/bin/x86/clc
/usr/local/bin/x86/llc
/usr/local/bin/x86_64
/usr/local/bin/x86_64/clc
/usr/local/bin/x86_64/llc
/usr/local/lib
/usr/local/lib/x86
/usr/local/lib/x86/amdrt_x86.o
/usr/local/lib/x86/builtins_amdil_opt.bc
/usr/local/lib/x86/builtins_x86-32.bc
/usr/local/lib/x86/libatiocl32.so
/usr/local/lib/x86_64
/usr/local/lib/x86_64/builtins_amdil_opt.bc
/usr/local/lib/x86_64/builtins_x86-64.bc
/usr/local/lib/x86_64/libatiocl64.so
/.
/etc
/etc/profile.d
/etc/profile.d/ati-opencl.sh
/usr
/usr/lib
/usr/lib/OpenCL
/usr/lib/OpenCL/vendors
/usr/lib/OpenCL/vendors/libatiocl32.so
/usr/lib/OpenCL/vendors/libatiocl64.so
/usr/lib/libOpenCL.so
/usr/lib32
/usr/lib32/libOpenCL.so
/usr/local
/usr/local/bin
/usr/local/bin/x86
/usr/local/bin/x86/clc
/usr/local/bin/x86/llc
/usr/local/bin/x86_64
/usr/local/bin/x86_64/clc
/usr/local/bin/x86_64/llc
/usr/local/lib
/usr/local/lib/x86
/usr/local/lib/x86/amdrt_x86.o
/usr/local/lib/x86/builtins_amdil_opt.bc
/usr/local/lib/x86/builtins_x86-32.bc
/usr/local/lib/x86/libatiocl32.so
/usr/local/lib/x86_64
/usr/local/lib/x86_64/builtins_amdil_opt.bc
/usr/local/lib/x86_64/builtins_x86-64.bc
/usr/local/lib/x86_64/libatiocl64.so
0 Likes

sorry but my packages provide only OpenCL support not CAL.

ATISTREAMSDKROOT setting /etc/profile.d/ati-opencl.sh. it should be set after that as you reloging.

you can edit it as you like.

0 Likes

updated to 2.1

ati-opencl-runtime   amd64 i386

ati-opencl-dev both

link in first post is updated too. if you have installed previous version it will say that it is same version but isn't.

0 Likes
voxhel
Journeyman III

Hello

Sorry for the doble post...

I have a Sappire ATI HD 4870 1GB DDR5 with ubuntu "backtrack4 final" 32bit dist Linux bt 2.6.30.9 installed with these packeg:


* ati-driver-installer-10-4-x86.x86_64


* ati-opencl-runtime_2.1_i386


* ati-opencl-dev_2.1


 


I have all so  aded the


* ati-stream-sdk-v2.1-lnx32


* icd-registration


but here i'm sure if i did all that i should do... i have followed all the steps on the


* ATI_Stream_SDK_Installation_Notes


but wend i run  pyrit list_cores still can't seed the GPU.


If you would like i can post all this on your topic or create a new one. Just let me know.


 


Thks for the help


Best Regards


Vox



0 Likes

Run CAL sample 'FindNumDevices' to make sure that the driver got installed properly and the device is being detected.

0 Likes

my package do icd registration. did you see CPU listed? run ./CInfo from SDK samples to see if OpenCL working. if there is only CPU then it is driver related problem.

0 Likes
voxhel
Journeyman III

Hi thks for the quick reply  were is the ./CLInfo result

http://pastebin.com/11yUP3KT

and this is ./FinNumDevices

http://pastebin.com/r3KWurW4

UPDATE:

just install cpyrit-opencl.0.3.0  and know i can seen 1 GPU but it shows has 'ATI RV770' were is the result

http://pastebin.com/A5RK3Bpe

shouldn't show the hd 4870?

 

 

0 Likes

4870 is an RV770 card.

0 Likes

it runs great! thks everyone!

0 Likes
gmiller39
Journeyman III

Nou,

I am having a problem installing the samples deb file you included.  It says I need libglut-dev, but I cannot find this in my package manager.  There is a libglut3-dev, which it says is obsolete and has been replaced by freeglut3-dev.  Is that the same thing?

Thanks!

0 Likes

you try install sdk package? pls don't do that. it is outdated and do not contain all examples from the latest SDK. download normal sdk from amd site. extract it somewhere and just run.

and yes freeglu3-dev is the same which you need for compile.

0 Likes
d_a_a_
Adept II

Thank you very much. I'm building a Debian-powered machine for GP-GPU using OpenCL and ATI hardware and I'll certainly use your packages.

0 Likes

so it work on Debian too? it should but i do not test it.

0 Likes
Maher4Ever
Journeyman III

Hi, I'm trying to install cpyrit-opencl and my GPU is showing if I enter:

root@bt:~# pyrit list_cores
Pyrit 0.3.1-dev (svn r265) (C) 2008-2010 Lukas Lueg
http://pyrit.googlecode.com
This code is distributed under the GNU General Public License v3+

The following cores seem available...
#1: 'OpenCL-Device 'ATI RV730''
#2: 'CPU-Core (SSE2)'

But If I try to benchmark, then my computer freeze !

I made a lot of tests ( New in linux you see! ) and I can't locate opencl inside /usr/local ... I tried this :

root@bt:~# echo $ATISTREAMSDKROOT
/usr/local

So what am I doing wrong ? Any help will be appreciated.
0 Likes

the OpenCL is seems installed corectly as Pyrit is found both CPU and GPU devices. but i do not know why it is freeze. try download SDK from AMD site and run some examples from SDK. just extract and run.

0 Likes

@nou: Thanks for the fast reply....

I tried the first sample and this was the result :

root@bt:/usr/local/samples/opencl/bin/x86# ./AESEncryptDecrypt
Encrypting Image ....
Input Image : lena512.bmp
Key : 15 201 51 89 92 34 96 66 11 225 161 96 81 211 108 124
Executing kernel for 1 iterations
-------------------------------------------
Output Filename : output.bmp

I couldn't find output.bmp in that folder, Then I picked anotherone called "RecursiveGaussian" and this was the result :

root@bt:/usr/local/samples/opencl/bin/x86# ./RecursiveGaussian
Out of Resources!
Group Size specified for RecursiveGaussian kernel: 256
Max Group Size supported on the kernel : 32
Falling back to 32
Not enough resources to execute Transpose kernel!
Group Size specified for Transpose kernel: 256
Max Group Size supported on the kernel : 32
Falling back to 16
Executing kernel for 1 iterations
-------------------------------------------

So I don't know if it's working or not. Can you tell?

0 Likes

Use -e option to verify the results.

0 Likes

@omkaranathan :

I added -e after the previous commands and now every sample reports "Passed!" at the end. So now I know that my problem is related to pyrit .

Thanks for your help and to the creator of this easy-to-install package, you rock dude ^^.

0 Likes

Hi

I have a kernel, that needs more than 10 seconds to execute. but the displaydriver crash after a few seconds. I think ubuntu resets displaydiver like windows.

http://www.microsoft.com/whdc/device/display/wddm_timeout.mspx#E1B

How can I disable this in ubuntu?

0 Likes

Could you post the code?

0 Likes
freespirit
Journeyman III

Thank you, nou, it worked for me on Debian 64 bit.

However, I couldn't install the sdk package. It says I have unmet dependency - libglut-dev. I tried both "apt-get -f install" and "apt-get install ligblut3-dev" but it results in "libglut3-dev is already the newest version". Any ideas?

I also can't build the program (clBuildProgram) - "sh: /bin/x86_64/clc: not found" from clGetBuildInfo. I guess I don't have everything install correctly? Or should I dig deeper in the specification?

Thank you

Edit2:
I read the thread carefully and saw some user had similar problem. I had to remove and old $ATISTREAMSDKROOT set in .bashrc to point to a different place. After that it worked (using the $ATISTREAMSDKROOT from /etc/profile.d/ati-opencl.sh - /usr/local). Program builds now.

Cheers

0 Likes

i must remove that sdk packages. it contain old SDK examples from version 2.0. so if you have installed ati-opencl-sdk remove it and download examples in SDK from Stream download page.

0 Likes
Sheeep
Journeyman III

@omkaranathan

sorry, i can't, because is't not my code.

but thing about a long loop in kernel like this:

//host

....

int times = 10000000;

data = new int["globalWorksSize"]

...

//

kernel void loop(global int *times, global int *data){

int gid = get_global_id(0);

for(int i = 0; i < times; i++){

     data[gid]++;

}

 

running it, display driver will crash, because there is a long time no responding.

in windows i can deactivate it, but how do I do this in ubuntu?

 

0 Likes
Sheeep
Journeyman III

deleted

 

0 Likes

Links to deb packages don't work. At least for me.. How can I get them now?

0 Likes

0 Likes

That ends up with errors. It's why I wanted to try Ubuntu specyfic packages instead.

0 Likes

i am sorry. server on which the packages are hosted are currently offline. and i am away from home so i can't upload it some where else.

EDIT: ok now it online. it should work

0 Likes
nou
Exemplar

packages are now updated to SDK version 2.2. now you can download. links are in first post.

0 Likes
Sheeep
Journeyman III

Thank you, it works wonderfull.

 

But I installed catalyst 10.7b for opencl. Now I have a "AMD - Testing use only" label on the left on my screen. how can i disable it?

0 Likes

run this. but remove newline in that string

sudo bash -c "echo c4cd04ad3c424f13327684b9d4b8b20b: fce333980f6f7e230241b48fb995833bf6f8349f7f6f0e477b56b18ee7898b33: a2ae619e0f71762b0210b2dfe3dd8038f4ff309c5e767775504fbd8cec8b816 9a2fb62950f7676750510b2dfe4dd863cf3af319b5e7377765741bc80ecda8138 > /etc/ati/signature"

0 Likes
Sheeep
Journeyman III

yeah, it works create, thank you nou

0 Likes

Hello,

Thank you for putting together this package. It installed without any problems on BT4.

When I run "pyrit list_cores" from a terminal window of X I get 1 GPU and 5 CPUs

(which is correct), but when I run it from a login shell (X are not running) I get 6 CPUs and no GPU.

I checked my ATISTREAMSDKROOT variable and in both cases it's the same.

Is this supposed to be happening or there is something wrong with my instalation.

 

Best regards,

Andreas

0 Likes

X sever must running if you want run OpenCL application. (because Xserver load driver for GPU) and second you must export DISPLAY=:0 to gain access to xserver session (both terminal must use same user)

if is Xserver running and logged in then you can log in via SSH as same user (or localy to normal tty), export DISPLAY=:0 and run OpenCL app.

0 Likes
sv1jsb
Journeyman III

Thanks nou for your reply

0 Likes

Hello.

I have 2 cards Radeon HD4890 and CPU Intel Core2Duo E8600 in my MBoard and BackTrack 4-R1 (ubuntu) with "Ati stream SDK", "ICD registration", "Catalyst 10.9".

./CLInfo from OpenCL samples is "Passed!".

aticonfig --list show me 2 cards, but "pyrit list_cores" show me 1xRadeon HD4890 and 1xCPU Core only.

Maybe I should activate CrossFire by "aticonfig"? How can I see all GPU?

Thanks for help.

0 Likes

do you use my package?

do you run aticonfig --initial --adapter=all ? you can check xorg.conf if there are two "Device" section.

export DISPLAY=:0 to gain access to both cards.

and do not enable crossfire.

 

0 Likes