-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.gitlab-ci.yml
81 lines (75 loc) · 2.03 KB
/
.gitlab-ci.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# I setup my docker runner to cache those directories
# So the environments are only updated when different
variables:
XDG_CACHE_HOME: "/cache/pip"
PIP_CACHE_DIR: "/cache/pip"
OLYMPUS_DATA_PATH: "/cache/data"
ENV_CACHE_DIR: "/cache/env"
stages:
- tests
- doc
job doc:
image: pytorch/pytorch:latest
stage: doc
script:
- python -m venv /cache/env/cpu
- . /cache/env/cpu/bin/activate
- make travis-install
- make travis-doc
# CPU testing
# This is the job that can run on Gitlab's own runners
job cpu-tests:
image: pytorch/pytorch:latest
stage: tests
script:
- python -m venv /cache/env/cpu
- . /cache/env/cpu/bin/activate
- make travis-install
- make travis-unit
- make travis-custom
- make travis-minimalist
- make travis-hpo_simple
- make travis-classification
- make travis-end
# nvidia-docker is a pain to setup
# Can only run on a machine with an NVIDIA-GPU machine
job nvidia-tests:
image: pytorch/pytorch:latest
tags:
- nvidia
stage: tests
when: manual
script:
- python3.6 -m venv --system-site-packages /cache/env/nvidia
- . /cache/env/nvidia/bin/activate
- make travis-install
- make travis-unit
- make travis-custom
- make travis-minimalist
- make travis-hpo_simple
- make travis-classification
- make travis-classification-fp16
- make travis-end
# Tag your runner with rocm & add the devices below
# --device=/dev/kfd --device=/dev/dri --group-add video
# Can only run on a AMD-GPU machine
job rocm-tests:
image: rocm/pytorch:rocm2.9_ubuntu16.04_py3.6_pytorch
tags:
- rocm
stage: tests
when: manual
script:
- ln -f /usr/bin/python3.6 /usr/bin/python3
- ln -f /usr/bin/python3.6 /usr/bin/python
- pip install --upgrade pip
- pip install wheel
- pip install torchvision==0.2.2
- make travis-install
- make travis-unit
- make travis-custom
- make travis-minimalist
- make travis-hpo_simple
- make travis-classification
- make travis-classification-fp16
- make travis-end