File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -8,18 +8,24 @@ include:
8
8
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM : ' 1'
9
9
OMPI_MCA_btl_vader_single_copy_mechanism : ' none' # https://github.com/open-mpi/ompi/issues/4948
10
10
before_script :
11
+ - mkdir -p ccache
12
+ - export CCACHE_BASEDIR=${CI_PROJECT_DIR}
13
+ - export CCACHE_DIR=${CI_PROJECT_DIR}/ccache
14
+ - export JULIA_DEPOT_PATH="${CI_PROJECT_DIR}/jldepot"
15
+ - export JULIA_MPI_PATH="${HOME}/mpi"
11
16
- apt-get update
12
- - apt-get install --yes --no-install-recommends ssh
17
+ - apt-get install --yes --no-install-recommends ssh ccache
18
+ - /usr/sbin/update-ccache-symlinks
19
+ - export PATH="/usr/lib/ccache:$PATH"
13
20
- curl https://download.open-mpi.org/release/open-mpi/v${OPENMPI_VER}/openmpi-${OPENMPI_VER_FULL}.tar.gz --output openmpi.tar.gz
14
21
- tar xf openmpi.tar.gz
15
22
- patch -p1 -d openmpi-${OPENMPI_VER_FULL} < conf/ompi_rootenv.patch
16
23
- pushd openmpi-${OPENMPI_VER_FULL}
17
- - ./configure --with-cuda --prefix=${HOME}/mpi
24
+ - ./configure --with-cuda --prefix=${JULIA_MPI_PATH}
18
25
- make -j
19
26
- make install
20
27
- popd
21
28
script :
22
- - export JULIA_MPI_PATH="${HOME}/mpi"
23
29
- export JULIA_PROJECT="test/cudaenv"
24
30
- ${JULIA_MPI_PATH}/bin/ompi_info
25
31
- julia -e 'using InteractiveUtils;
@@ -29,6 +35,11 @@ include:
29
35
Pkg.instantiate();
30
36
Pkg.build()'
31
37
- julia --color=yes test/runtests.jl
38
+ cache :
39
+ paths :
40
+ - ccache/
41
+ - jldepot/
42
+
32
43
33
44
.gputest :
34
45
extends : .projecttest
You can’t perform that action at this time.
0 commit comments