Skip to content
This repository was archived by the owner on Sep 27, 2021. It is now read-only.

Commit 5ca9ad3

Browse files
committed
install opencl drivers
1 parent 580efd9 commit 5ca9ad3

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

.travis.yml

Lines changed: 21 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
1-
## Documentation: http://docs.travis-ci.com/user/languages/julia/
21
language: julia
2+
sudo: false
3+
34
os:
45
- linux
56
- osx
7+
68
julia:
79
- 0.6
810
- nightly
11+
matrix:
12+
allow_failures:
13+
- julia: nightly
14+
915
notifications:
1016
email: false
11-
git:
12-
depth: 99999999
13-
14-
## uncomment the following lines to allow failures on nightly julia
15-
## (tests will run but not make your overall status red)
16-
#matrix:
17-
# allow_failures:
18-
# - julia: nightly
19-
20-
## uncomment and modify the following lines to manually install system packages
21-
#addons:
22-
# apt: # apt-get for linux
23-
# packages:
24-
# - gfortran
25-
#before_script: # homebrew for mac
26-
# - if [ $TRAVIS_OS_NAME = osx ]; then brew install gcc; fi
2717

28-
## uncomment the following lines to override the default test script
29-
#script:
30-
# - julia -e 'Pkg.clone(pwd()); Pkg.build("CLArrays"); Pkg.test("CLArrays"; coverage=true)'
31-
after_success:
32-
# push coverage results to Coveralls
33-
- julia -e 'cd(Pkg.dir("CLArrays")); Pkg.add("Coverage"); using Coverage; Coveralls.submit(Coveralls.process_folder())'
34-
# push coverage results to Codecov
35-
- julia -e 'cd(Pkg.dir("CLArrays")); Pkg.add("Coverage"); using Coverage; Codecov.submit(Codecov.process_folder())'
18+
before_install:
19+
- if [[ -a .git/shallow ]]; then git fetch --unshallow; fi
20+
- if [ $TRAVIS_OS_NAME = "linux" ]; then
21+
bash .travis/amd_sdk.sh;
22+
tar -xjf AMD-SDK.tar.bz2;
23+
AMDAPPSDK=${HOME}/AMDAPPSDK;
24+
export OPENCL_VENDOR_PATH=${AMDAPPSDK}/etc/OpenCL/vendors;
25+
mkdir -p ${OPENCL_VENDOR_PATH};
26+
sh AMD-APP-SDK*.sh --tar -xf -C ${AMDAPPSDK};
27+
echo libamdocl64.so > ${OPENCL_VENDOR_PATH}/amdocl64.icd;
28+
export LD_LIBRARY_PATH=${AMDAPPSDK}/lib/x86_64:${LD_LIBRARY_PATH};
29+
chmod +x ${AMDAPPSDK}/bin/x86_64/clinfo;
30+
${AMDAPPSDK}/bin/x86_64/clinfo;
31+
fi;

0 commit comments

Comments
 (0)