summaryrefslogtreecommitdiffstats
path: root/scripts/install-ati-stream.sh
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-05-17 19:14:19 +0200
committerSven Gothel <[email protected]>2010-05-17 19:14:19 +0200
commitfffde773390e832d9c9e9410c3d01145807372a1 (patch)
tree21a27e5f9b378e219790e01e37f481691c5b21d7 /scripts/install-ati-stream.sh
parent4c2231a3292cb9fb0aa3ad1e46736cded7d1f2e0 (diff)
Added scripts folder
Diffstat (limited to 'scripts/install-ati-stream.sh')
-rw-r--r--scripts/install-ati-stream.sh29
1 files changed, 29 insertions, 0 deletions
diff --git a/scripts/install-ati-stream.sh b/scripts/install-ati-stream.sh
new file mode 100644
index 00000000..94d3eca6
--- /dev/null
+++ b/scripts/install-ati-stream.sh
@@ -0,0 +1,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