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:
88 OMPI_ALLOW_RUN_AS_ROOT_CONFIRM : ' 1'
99 OMPI_MCA_btl_vader_single_copy_mechanism : ' none' # https://github.com/open-mpi/ompi/issues/4948
1010 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"
1116 - 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"
1320 - curl https://download.open-mpi.org/release/open-mpi/v${OPENMPI_VER}/openmpi-${OPENMPI_VER_FULL}.tar.gz --output openmpi.tar.gz
1421 - tar xf openmpi.tar.gz
1522 - patch -p1 -d openmpi-${OPENMPI_VER_FULL} < conf/ompi_rootenv.patch
1623 - pushd openmpi-${OPENMPI_VER_FULL}
17- - ./configure --with-cuda --prefix=${HOME}/mpi
24+ - ./configure --with-cuda --prefix=${JULIA_MPI_PATH}
1825 - make -j
1926 - make install
2027 - popd
2128 script :
22- - export JULIA_MPI_PATH="${HOME}/mpi"
2329 - export JULIA_PROJECT="test/cudaenv"
2430 - ${JULIA_MPI_PATH}/bin/ompi_info
2531 - julia -e 'using InteractiveUtils;
@@ -29,6 +35,11 @@ include:
2935 Pkg.instantiate();
3036 Pkg.build()'
3137 - julia --color=yes test/runtests.jl
38+ cache :
39+ paths :
40+ - ccache/
41+ - jldepot/
42+
3243
3344.gputest :
3445 extends : .projecttest
You can’t perform that action at this time.
0 commit comments