This repository has been archived by the owner on May 27, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
.gitlab-ci.yml
140 lines (116 loc) · 2.52 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
include:
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v6.yml'
image: ubuntu:latest
variables:
JULIA_DEBUG: 'CUDAdrv'
NVIDIA_VISIBLE_DEVICES: 'all'
NVIDIA_DRIVER_CAPABILITIES: 'compute,utility'
# Julia versions
# the "primary" target, where we require a new GPU to make sure all tests are run
julia:1.3:
extends:
- .julia:1.3
- .test
tags:
- nvidia
- sm_70
variables:
CI_THOROUGH: 'true'
julia:1.4:
extends:
- .julia:1.4
- .test
tags:
- nvidia
julia:nightly:
extends:
- .julia:nightly
- .test
allow_failure: true
tags:
- nvidia
# hardware platforms
platform:arm64:
extends:
- .julia:1.3
- .test
tags:
- nvidia-arm64
# special tests
precompile:
extends:
- .julia:1.3
- .test
variables:
NVIDIA_VISIBLE_DEVICES: ''
NVIDIA_DRIVER_CAPABILITIES: ''
script:
- julia --project -e 'using Pkg;
Pkg.instantiate();
Pkg.build();
Pkg.API.precompile()'
- julia --project -e 'using CUDAdrv'
debug:
extends:
- .julia:1.3
- .test
tags:
- nvidia
variables:
JULIA_DEBUG: 'CUDAdrv'
script:
- julia --project -g2 -e 'using Pkg;
Pkg.instantiate();
Pkg.build();
Pkg.test(; coverage=true);'
cuda:none:
extends:
- .julia:1.3
- .test
variables:
NVIDIA_VISIBLE_DEVICES: ''
script:
- julia -e 'using InteractiveUtils;
versioninfo()'
- julia --project -e 'using Pkg;
Pkg.instantiate();
Pkg.build()'
- julia --project -e 'using CUDAdrv;
@assert !CUDAdrv.functional(true)'
# reverse tests
# NOTE: not using the Manifest (develop instead of instantiate) due to Pkg.jl#1423
cudanative:
image: nvidia/cuda:10.1-devel
extends:
- .julia:1.3
- .test
tags:
- nvidia
script:
- julia -e 'using Pkg;
Pkg.develop(PackageSpec(path=pwd()));
Pkg.build();'
- julia -e 'using Pkg;
Pkg.add(PackageSpec(name="CUDAnative", rev="master"));
Pkg.test("CUDAnative");'
allow_failure: true
# other tasks
coverage:
extends:
- .julia:1.3
- .coverage
documentation:
extends:
- .julia:1.3
- .documentation
tags:
- nvidia
pages:
stage: deploy
script:
- mv docs/build public
artifacts:
paths:
- public
only:
- master