-
Notifications
You must be signed in to change notification settings - Fork 5
/
.gitlab-ci.yml
34 lines (33 loc) · 1.27 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
stages:
- test
# This job tests DFTK.jl with Julia 1.9 on Noctua 2
# It only runs when:
# - Commit in master
# - PR from branch with name ending in 'gpu'
# - Manual run triggered
julia/1.9-n2:
stage: test
variables:
SCHEDULER_PARAMETERS: -N 1 -n 1 -c 16 --gres=gpu:a100:1 --qos=devel -p dgx -t 01:30:00 -A hpc-prf-dftkjl
JULIA_DEPOT_PATH: /scratch/hpc-prf-dftkjl/dftkjl01/.julia-ci
JULIA_NUM_THREADS: 1 # GPU and multi-threading not yet compatible
coverage: '/\(\d+.\d+\%\) covered/'
rules:
- if: $CI_COMMIT_BRANCH == 'master'
- if: $CI_PIPELINE_SOURCE == 'external_pull_request_event' && $CI_EXTERNAL_PULL_REQUEST_SOURCE_BRANCH_NAME =~ /gpu$/
- if: $CI_PIPELINE_SOURCE == 'external_pull_request_event'
when: manual
script:
- module load lang/JuliaHPC/1.9.3-foss-2022a-CUDA-11.7.0
- julia --project=. -e '
using Pkg; Pkg.instantiate();
Pkg.add("CUDA");
using CUDA;
CUDA.set_runtime_version!(v"11.7"; local_toolkit=true);
'
- julia --color=yes --project=. -e '
using Pkg;
Pkg.test(; coverage=true, test_args=["gpu"])
'
- julia --color=yes --project=test/coverage -e 'import Pkg; Pkg.instantiate()'
- julia --color=yes --project=test/coverage test/coverage/coverage.jl