-
Notifications
You must be signed in to change notification settings - Fork 1
/
.travis.yml
61 lines (61 loc) · 2.17 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
language: go
cache:
apt: true
matrix:
include:
- go: 1.10.x
- go: 1.11.x
- go: 1.12.x
- go: tip
allow_failures:
- go: tip
dist: xenial
sudo: false
addons:
apt:
sources:
- sourceline: ppa:ubuntu-toolchain-r/test
- sourceline:
deb https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64
/
key_url: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/7fa2af80.pub
- sourceline:
deb https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1604/x86_64
/
packages:
- gcc-6
- g++-6
- cmake
- libnccl2
- cuda-cudart-dev-10-0
- cuda-libraries-dev-10-0
- cuda-cublas-dev-10-0
- cuda-misc-headers-10-0
- cuda-nvml-dev-10-0
- cuda-nvtx-10-0
- cuda-cupti-10-0
- libcudnn7
- libcudnn7-dev
env:
global:
- CXX=g++-6
- CC=gcc-6
- CUDACXX=/usr/local/cuda-10.0/bin/nvcc
- LD_LIBRARY_PATH=/usr/local/nvidia/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- LD_LIBRARY_PATH=/usr/local/cuda-10.0/nvvm/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- LD_LIBRARY_PATH=/usr/local/cuda-10.0/lib64/stubs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- LD_LIBRARY_PATH=/usr/local/cuda-10.0/targets/x86_64-linux/lib/stubs/:+:${LD_LIBRARY_PATH}}
- LD_LIBRARY_PATH=/usr/local/cuda-10.0/extras/CUPTI/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
- PATH=/usr/local/cuda-10.0/bin${PATH:+:${PATH}}
- CGO_CFLAGS="${CGO_CFLAGS} -I /usr/local/cuda-10.0/include -I/usr/local/cuda-10.0/nvvm/include -I /usr/local/cuda-10.0/extras/CUPTI/include"
- CGO_LDFLAGS="${CGO_LDFLAGS} -L /usr/local/nvidia/lib64 -L /usr/local/cuda-10.0/nvvm/lib64 -L /usr/local/cuda-10.0/lib64 -L /usr/local/cuda-10.0/lib64/stubs -L /usr/local/cuda-10.0/targets/x86_64-linux/lib/stubs/ -L /usr/local/cuda-10.0/lib64/stubs"
before_install:
- curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh
install:
- dep ensure -v
- go build
script:
- echo "Skip tests..."
after_script:
- go test -race -v .