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.
i do not see much reason to create repositroy for just three packages.
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.
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
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.
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
Run CAL sample 'FindNumDevices' to make sure that the driver got installed properly and the device is being detected.
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.
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?
4870 is an RV770 card.
it runs great! thks everyone!
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!
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.
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.
so it work on Debian too? it should but i do not test it.
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.
@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?
Use -e option to verify the results.
@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 ^^.
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?
Could you post the code?
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
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.
@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?
deleted
Links to deb packages don't work. At least for me.. How can I get them now?
Try the packages available @ http://developer.amd.com/gpu/ATIStreamSDK/Pages/default.aspx
That ends up with errors. It's why I wanted to try Ubuntu specyfic packages instead.
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
packages are now updated to SDK version 2.2. now you can download. links are in first post.
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?
run this. but remove newline in that string
sudo bash -c "echo c4cd04ad3c424f13327684b9d4b8b20b: fce333980f6f7e230241b48fb995833bf6f8349f7f6f0e477b56b18ee7898b33: a2ae619e0f71762b0210b2dfe3dd8038f4ff309c5e767775504fbd8cec8b816 9a2fb62950f7676750510b2dfe4dd863cf3af319b5e7377765741bc80ecda8138 > /etc/ati/signature"
yeah, it works create, thank you nou
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
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.
Thanks nou for your reply
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.
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.