forked from clMathLibraries/clBLAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.travis.yml
More file actions
54 lines (47 loc) · 1.88 KB
/
.travis.yml
File metadata and controls
54 lines (47 loc) · 1.88 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
language: cpp
compiler:
- gcc
before_install:
- sudo apt-get update -qq
- sudo apt-get install -qq fglrx libboost-program-options-dev
# Uncomment below to help verify the installs above work
# - ls -la /usr/lib/libboost*
# - ls -la /usr/include/boost
before_script:
- cd ${TRAVIS_BUILD_DIR}
# download OpenCL 1.2 header files since Travis CI only provides 1.1
- mkdir -p OpenCLInclude/CL
- cd OpenCLInclude/CL
#- wget -r --no-parent -nH --cut-dirs=4 --reject="index.html*" https://www.khronos.org/registry/cl/api/1.2/
- wget https://www.khronos.org/registry/cl/api/1.2/cl.h
- wget https://www.khronos.org/registry/cl/api/1.2/cl.hpp
- wget https://www.khronos.org/registry/cl/api/1.2/cl_d3d10.h
- wget https://www.khronos.org/registry/cl/api/1.2/cl_d3d11.h
- wget https://www.khronos.org/registry/cl/api/1.2/cl_dx9_media_sharing.h
- wget https://www.khronos.org/registry/cl/api/1.2/cl_egl.h
- wget https://www.khronos.org/registry/cl/api/1.2/cl_ext.h
- wget https://www.khronos.org/registry/cl/api/1.2/cl_gl.h
- wget https://www.khronos.org/registry/cl/api/1.2/cl_gl_ext.h
- wget https://www.khronos.org/registry/cl/api/1.2/cl_platform.h
- wget https://www.khronos.org/registry/cl/api/1.2/opencl.h
- ls
- pwd
- cd ../..
- mkdir -p bin/clBLAS
- cd bin/clBLAS
- cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TEST=OFF -DBUILD_CLIENT=ON -DOPENCL_INCLUDE_DIRS:PATH=$PWD/../../OpenCLInclude -DCMAKE_INSTALL_PREFIX:PATH=$PWD/package ../../src
script:
- make install
# - ls -Rla package
# Run a simple test to validate that the build works; CPU device in a VM
- cd package/bin
- export LD_LIBRARY_PATH=${TRAVIS_BUILD_DIR}/bin/clBLAS/package/lib64:${LD_LIBRARY_PATH}
- ./clBLAS-client --cpu
after_success:
- cd ${TRAVIS_BUILD_DIR}/bin/clBLAS
- make package
notifications:
email:
- clmath-developers@googlegroups.com
on_success: change
on_failure: always