forked from ComputationalRadiationPhysics/cuda_memtest
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
62 lines (54 loc) · 1.62 KB
/
.travis.yml
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
55
56
57
58
59
60
61
62
language: cpp
sudo: required
dist: trusty
compiler:
- gcc
- clang
matrix:
allow_failures:
- compiler: clang
addons:
apt:
#sources:
# - multiverse
packages:
- build-essential
- cmake-data
- cmake
- g++-4.8
- gcc-4.8
- nvidia-common
# - nvidia-cuda-toolkit
# - nvidia-cuda-dev
env:
global:
- CXXFLAGS="-Wall -Wextra -Werror"
- INSTALL_DIR=~/mylibs
- NVML_FILE=cuda_346.46_gdk_linux.run
- NVML_LINK=http://developer.download.nvidia.com/compute/cuda/7_0/Prod/local_installers/
matrix:
- USE_NVML=1 USE_SM=sm_10
- USE_NVML=0 USE_SM=sm_20
script:
- mkdir build_tmp && cd build_tmp
- cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR -DCUDA_ARCH=$USE_SM -DSAME_NVCC_FLAGS_IN_SUBPROJECTS=ON $TRAVIS_BUILD_DIR
- make
- make install
before_install:
- sudo apt-add-repository multiverse
- sudo apt-get update -qq
# nvcc 5.5: <= gcc 4.8
# - sudo apt-get install -qq gcc-4.8 g++-4.8
# - sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.8 60 --slave /usr/bin/g++ g++ /usr/bin/g++-4.8
- gcc --version && g++ --version
- sudo apt-get install -qq nvidia-cuda-toolkit
- sudo apt-get install -qq nvidia-cuda-dev
- nvcc --version
- if [ $USE_NVML -eq 1 ]; then wget $NVML_LINK$NVML_FILE && chmod u+x $NVML_FILE && sudo ./$NVML_FILE --silent --installdir=/ ; fi
- if [ $USE_NVML -eq 1 ]; then export CMAKE_PREFIX_PATH=/usr/src/gdk/nvml/lib/ ; fi
- sudo find /usr/ -name libcuda*.so
- sudo find /usr/ -name nvml.h
- sudo find /usr/ -name libnvidia*.so
- sudo find /usr/ -name libnvml*.so
after_script:
- ls -halR $INSTALL_DIR