aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/install-ati-stream.sh
blob: 94d3eca6977afe27c6927409be26e25dcfce8a78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash

#
# Here we have unpacked ati-stream-sdk-v2.1-lnx64.tgz from http://developer.amd.com/gpu/ATIStreamSDK/
# to /opt-linux-x86_64/ and made a symbolic link to ati-stream-sdk.
#
# We also copied the file http://developer.amd.com/Downloads/icd-registration.tgz
# into ati-stream-sdk.

SDK=/opt-linux-x86_64/ati-stream-sdk/
ICDREG=/opt-linux-x86_64/ati-stream-sdk/icd-registration.tgz

link(){
    if [ -e $2 ] ; then
        rm -v $2
    fi
    ln -v -s ${SDK}$1/$2
}

cd /usr/lib64/
link lib/x86_64 libOpenCL.so
link lib/x86_64 libatiocl64.so

cd /usr/lib32/
link lib/x86 libOpenCL.so
link lib/x86 libatiocl32.so

cd /
tar xzf $ICDREG