7
7
OPENMPI_VER : " 4.0"
8
8
OPENMPI_VER_FULL : " 4.0.3"
9
9
UCX_VER : " 1.12.1"
10
+ CCACHE_DIR : " /root/ccache"
10
11
commands : |
11
- apt-get install --yes --no-install-recommends curl
12
+ echo "--- Install packages"
13
+ apt-get install --yes --no-install-recommends curl ccache
14
+ export PATH="/usr/lib/ccache/:$$PATH"
12
15
16
+ echo "--- Build UCX"
13
17
curl -L https://github.com/openucx/ucx/releases/download/v$${UCX_VER}/ucx-$${UCX_VER}.tar.gz --output ucx.tar.gz
14
- tar -zxvf ucx.tar.gz
18
+ tar -zxf ucx.tar.gz
15
19
pushd ucx-*
16
20
./configure --with-cuda=/usr/local/cuda --enable-mt --prefix=$$(realpath ../mpi-prefix)
17
21
make -j
18
22
make install
19
23
popd
20
24
25
+ echo "--- Build OpenMPI"
21
26
curl -L https://download.open-mpi.org/release/open-mpi/v$${OPENMPI_VER}/openmpi-$${OPENMPI_VER_FULL}.tar.gz --output openmpi.tar.gz
22
- tar -zxvf openmpi.tar.gz
27
+ tar -zxf openmpi.tar.gz
23
28
pushd openmpi-$${OPENMPI_VER_FULL}
24
29
./configure --with-ucx=$$(realpath ../mpi-prefix) --prefix=$$(realpath ../mpi-prefix)
25
30
make -j
26
31
make install
27
32
popd
28
33
29
- tar -zcvf mpi-prefix.tar.gz mpi-prefix/
34
+ echo "--- Package prefix"
35
+ tar -zcf mpi-prefix.tar.gz mpi-prefix/
36
+
37
+ echo "--- ccache stats"
38
+ ccache -s
30
39
artifact_paths :
31
40
- " mpi-prefix.tar.gz"
32
41
- label : " Build OpenMPI -- ROCM"
@@ -37,33 +46,43 @@ steps:
37
46
OPENMPI_VER : " 4.0"
38
47
OPENMPI_VER_FULL : " 4.0.3"
39
48
UCX_VER : " 1.12.1"
49
+ CCACHE_DIR : " /root/ccache"
40
50
commands : |
41
- apt-get install --yes --no-install-recommends curl
51
+ echo "--- Install packages"
52
+ apt-get install --yes --no-install-recommends curl ccache
53
+ export PATH="/usr/lib/ccache/:$$PATH"
42
54
55
+ echo "--- Build UCX"
43
56
curl -L https://github.com/openucx/ucx/releases/download/v$${UCX_VER}/ucx-$${UCX_VER}.tar.gz --output ucx.tar.gz
44
- tar -zxvf ucx.tar.gz
57
+ tar -zxf ucx.tar.gz
45
58
pushd ucx-*
46
59
./configure --with-rocm --enable-mt --prefix=$$(realpath ../mpi-prefix)
47
60
make -j
48
61
make install
49
62
popd
50
63
64
+ echo "--- Build OpenMPI"
51
65
curl -L https://download.open-mpi.org/release/open-mpi/v$${OPENMPI_VER}/openmpi-$${OPENMPI_VER_FULL}.tar.gz --output openmpi.tar.gz
52
- tar -zxvf openmpi.tar.gz
66
+ tar -zxf openmpi.tar.gz
53
67
pushd openmpi-*
54
68
./configure --with-ucx=$$(realpath ../mpi-prefix) --prefix=$$(realpath ../mpi-prefix)
55
69
make -j
56
70
make install
57
71
popd
58
72
59
- tar -zcvf mpi-prefix.tar.gz mpi-prefix/
73
+ echo "--- Package prefix"
74
+ tar -zcf mpi-prefix.tar.gz mpi-prefix/
75
+
76
+ echo "--- ccache stats"
77
+ ccache -s
60
78
artifact_paths :
61
79
- " mpi-prefix.tar.gz"
62
80
- wait : ~
63
81
- label : " CUDA -- 1.6"
64
82
plugins :
65
83
- JuliaCI/julia#v1:
66
84
version : " 1.6"
85
+ persist_depot_dirs : packages,artifacts,compiled
67
86
agents :
68
87
queue : " juliagpu"
69
88
cuda : " 11.0"
@@ -83,7 +102,7 @@ steps:
83
102
echo "--- Configure MPI"
84
103
buildkite-agent artifact download --step "Build OpenMPI -- CUDA" mpi-prefix.tar.gz .
85
104
mkdir -p $${JULIA_MPI_PATH}
86
- tar -zxvf mpi-prefix.tar.gz --strip-components 1 -C $${JULIA_MPI_PATH}
105
+ tar -zxf mpi-prefix.tar.gz --strip-components 1 -C $${JULIA_MPI_PATH}
87
106
export PATH=$${JULIA_MPI_PATH}/bin:$${PATH}
88
107
export LD_LIBRARY_PATH=$${JULIA_MPI_PATH}/lib:$${LD_LIBRARY_PATH}
89
108
@@ -105,6 +124,7 @@ steps:
105
124
plugins :
106
125
- JuliaCI/julia#v1:
107
126
version : " 1.7"
127
+ persist_depot_dirs : packages,artifacts,compiled
108
128
agents :
109
129
queue : " juliagpu"
110
130
cuda : " 11.0"
@@ -124,7 +144,7 @@ steps:
124
144
echo "--- Configure MPI"
125
145
buildkite-agent artifact download --step "Build OpenMPI -- CUDA" mpi-prefix.tar.gz .
126
146
mkdir -p $${JULIA_MPI_PATH}
127
- tar -zxvf mpi-prefix.tar.gz --strip-components 1 -C $${JULIA_MPI_PATH}
147
+ tar -zxf mpi-prefix.tar.gz --strip-components 1 -C $${JULIA_MPI_PATH}
128
148
export PATH=$${JULIA_MPI_PATH}/bin:$${PATH}
129
149
export LD_LIBRARY_PATH=$${JULIA_MPI_PATH}/lib:$${LD_LIBRARY_PATH}
130
150
0 commit comments