forked from JuliaParallel/MPI.jl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitlab-ci.yml
77 lines (69 loc) · 2.04 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
include:
- 'https://raw.githubusercontent.com/JuliaGPU/gitlab-ci/master/templates/v3/common.yml'
.projecttest:
extends: .test
variables:
OMPI_ALLOW_RUN_AS_ROOT: '1'
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: '1'
OMPI_MCA_btl_vader_single_copy_mechanism: 'none' # https://github.com/open-mpi/ompi/issues/4948
before_script:
- mkdir -p ccache
- export CCACHE_BASEDIR=${CI_PROJECT_DIR}
- export CCACHE_DIR=${CI_PROJECT_DIR}/ccache
- export JULIA_DEPOT_PATH="${CI_PROJECT_DIR}/jldepot"
- export JULIA_MPI_PATH="${HOME}/mpi"
- apt-get update
- apt-get install --yes --no-install-recommends ssh ccache
- /usr/sbin/update-ccache-symlinks
- export PATH="/usr/lib/ccache:$PATH"
- curl https://download.open-mpi.org/release/open-mpi/v${OPENMPI_VER}/openmpi-${OPENMPI_VER_FULL}.tar.gz --output openmpi.tar.gz
- tar xf openmpi.tar.gz
- patch -p1 -d openmpi-${OPENMPI_VER_FULL} < conf/ompi_rootenv.patch
- pushd openmpi-${OPENMPI_VER_FULL}
- ./configure --with-cuda --prefix=${JULIA_MPI_PATH}
- make -j
- make install
- popd
script:
- export JULIA_PROJECT="test/cudaenv"
- ${JULIA_MPI_PATH}/bin/ompi_info
- julia -e 'using InteractiveUtils;
versioninfo()'
- julia --color=yes -e 'using Pkg;
Pkg.develop(PackageSpec(path=pwd()));
Pkg.instantiate();
Pkg.build()'
- julia --color=yes test/runtests.jl
cache:
paths:
- ccache/
- jldepot/
.gputest:
extends: .projecttest
variables:
CI_IMAGE_TAG: 'cuda'
OPENMPI_VER: '4.0'
OPENMPI_VER_FULL: '4.0.1'
tags:
- cuda
gpu:test:dev:
extends: .gputest
variables:
CI_VERSION_TAG: 'dev'
allow_failure: true
gpu:test:v1.3:
extends: .gputest
variables:
CI_VERSION_TAG: 'v1.3'
gpu:test:v1.2:
extends: .gputest
variables:
CI_VERSION_TAG: 'v1.2'
gpu:test:v1.1:
extends: .gputest
variables:
CI_VERSION_TAG: 'v1.1'
gpu:test:v1.0:
extends: .gputest
variables:
CI_VERSION_TAG: 'v1.0'