.travis.yml 892 Bytes
Newer Older
rusty1s's avatar
rusty1s committed
1
2
3
4
5
6
7
8
language: python

sudo: enabled

compiler:
  - gcc

matrix:
rusty1s's avatar
rusty1s committed
9
  include:
rusty1s's avatar
rusty1s committed
10
    - name: CUDA 9.2
rusty1s's avatar
rusty1s committed
11
      env:
rusty1s's avatar
rusty1s committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
        - CUDA=9.2.148-1
        - CUDA_SHORT=9.2
        - UBUNTU_VERSION=ubuntu1804
    - name: CUDA 10.1
      env:
        - CUDA=10.1.168-1
        - CUDA_SHORT=10.1
        - UBUNTU_VERSION=ubuntu1804

before_install:
  - INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
  - wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
  - sudo dpkg -i ${INSTALLER}
  - sudo apt update -qq
  - sudo apt install -y cuda-${CUDA_SHORT/./-}
  - CUDA_HOME=/usr/local/cuda-${CUDA_SHORT}
  - LD_LIBRARY_PATH=${CUDA_HOME}/lib64:${LD_LIBRARY_PATH}
  - PATH=${CUDA_HOME}/bin:${PATH}

rusty1s's avatar
rusty1s committed
31
install:
rusty1s's avatar
rusty1s committed
32
  - pip install numpy
rusty1s's avatar
rusty1s committed
33
34
  - pip install torch

rusty1s's avatar
rusty1s committed
35
script:
rusty1s's avatar
rusty1s committed
36
  - nvcc --version
rusty1s's avatar
rusty1s committed
37
  - python -c "import torch; print(torch.__version__)"
rusty1s's avatar
rusty1s committed
38
  - python setup.py install