@@ -31,37 +31,14 @@ def setUp(self):
31
31
"""Disable logging output messages"""
32
32
logging .disable (logging .ERROR )
33
33
34
- @x86_64
35
- @ubuntu18
36
- @docker
37
- def test_defaults_ubuntu18 (self ):
38
- """Default hpcx building block"""
39
- h = hpcx ()
40
- self .assertEqual (str (h ),
41
- r'''# Mellanox HPC-X version 2.16
42
- RUN apt-get update -y && \
43
- DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
44
- bzip2 \
45
- libnuma1 \
46
- openssh-client \
47
- tar \
48
- wget && \
49
- rm -rf /var/lib/apt/lists/*
50
- RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.16/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64.tbz && \
51
- mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64.tbz -C /var/tmp -j && \
52
- cp -a /var/tmp/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64 /usr/local/hpcx && \
53
- echo "source /usr/local/hpcx/hpcx-init-ompi.sh" >> /etc/bash.bashrc && \
54
- echo "hpcx_load" >> /etc/bash.bashrc && \
55
- rm -rf /var/tmp/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64.tbz /var/tmp/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64''' )
56
-
57
34
@x86_64
58
35
@ubuntu20
59
36
@docker
60
37
def test_defaults_ubuntu20 (self ):
61
38
"""Default hpcx building block"""
62
39
h = hpcx ()
63
40
self .assertEqual (str (h ),
64
- r'''# Mellanox HPC-X version 2.16
41
+ r'''# Mellanox HPC-X version 2.19
65
42
RUN apt-get update -y && \
66
43
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
67
44
bzip2 \
@@ -70,12 +47,12 @@ def test_defaults_ubuntu20(self):
70
47
tar \
71
48
wget && \
72
49
rm -rf /var/lib/apt/lists/*
73
- RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.16 /hpcx-v2.16 -gcc-mlnx_ofed-ubuntu20.04-cuda12-gdrcopy2-nccl2.18 -x86_64.tbz && \
74
- mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-ubuntu20.04-cuda12-gdrcopy2-nccl2.18 -x86_64.tbz -C /var/tmp -j && \
75
- cp -a /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-ubuntu20.04-cuda12-gdrcopy2-nccl2.18 -x86_64 /usr/local/hpcx && \
50
+ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.19 /hpcx-v2.19 -gcc-mlnx_ofed-ubuntu20.04-cuda12-x86_64.tbz && \
51
+ mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-ubuntu20.04-cuda12-x86_64.tbz -C /var/tmp -j && \
52
+ cp -a /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-ubuntu20.04-cuda12-x86_64 /usr/local/hpcx && \
76
53
echo "source /usr/local/hpcx/hpcx-init-ompi.sh" >> /etc/bash.bashrc && \
77
54
echo "hpcx_load" >> /etc/bash.bashrc && \
78
- rm -rf /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-ubuntu20.04-cuda12-gdrcopy2-nccl2.18- x86_64.tbz /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-ubuntu20.04-cuda12-gdrcopy2-nccl2.18 -x86_64''' )
55
+ rm -rf /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-ubuntu20.04-cuda12-x86_64.tbz /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-ubuntu20.04-cuda12-x86_64''' )
79
56
80
57
@x86_64
81
58
@centos
@@ -84,20 +61,20 @@ def test_defaults_centos7(self):
84
61
"""Default mlnx_ofed building block"""
85
62
h = hpcx ()
86
63
self .assertEqual (str (h ),
87
- r'''# Mellanox HPC-X version 2.16
64
+ r'''# Mellanox HPC-X version 2.19
88
65
RUN yum install -y \
89
66
bzip2 \
90
67
numactl-libs \
91
68
openssh-clients \
92
69
tar \
93
70
wget && \
94
71
rm -rf /var/cache/yum/*
95
- RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.16 /hpcx-v2.16 -gcc-mlnx_ofed-redhat7-cuda12-gdrcopy2-nccl2.18 -x86_64.tbz && \
96
- mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-redhat7-cuda12-gdrcopy2-nccl2.18 -x86_64.tbz -C /var/tmp -j && \
97
- cp -a /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-redhat7-cuda12-gdrcopy2-nccl2.18 -x86_64 /usr/local/hpcx && \
72
+ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.19 /hpcx-v2.19 -gcc-mlnx_ofed-redhat7-cuda12-x86_64.tbz && \
73
+ mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-redhat7-cuda12-x86_64.tbz -C /var/tmp -j && \
74
+ cp -a /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-redhat7-cuda12-x86_64 /usr/local/hpcx && \
98
75
echo "source /usr/local/hpcx/hpcx-init-ompi.sh" >> /etc/bashrc && \
99
76
echo "hpcx_load" >> /etc/bashrc && \
100
- rm -rf /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-redhat7-cuda12-gdrcopy2-nccl2.18- x86_64.tbz /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-redhat7-cuda12-gdrcopy2-nccl2.18 -x86_64''' )
77
+ rm -rf /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-redhat7-cuda12-x86_64.tbz /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-redhat7-cuda12-x86_64''' )
101
78
102
79
@x86_64
103
80
@centos8
@@ -106,20 +83,20 @@ def test_defaults_centos8(self):
106
83
"""Default mlnx_ofed building block"""
107
84
h = hpcx ()
108
85
self .assertEqual (str (h ),
109
- r'''# Mellanox HPC-X version 2.16
86
+ r'''# Mellanox HPC-X version 2.19
110
87
RUN yum install -y \
111
88
bzip2 \
112
89
numactl-libs \
113
90
openssh-clients \
114
91
tar \
115
92
wget && \
116
93
rm -rf /var/cache/yum/*
117
- RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.16 /hpcx-v2.16 -gcc-mlnx_ofed-redhat8-cuda12-gdrcopy2-nccl2.18 -x86_64.tbz && \
118
- mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-redhat8-cuda12-gdrcopy2-nccl2.18 -x86_64.tbz -C /var/tmp -j && \
119
- cp -a /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-redhat8-cuda12-gdrcopy2-nccl2.18 -x86_64 /usr/local/hpcx && \
94
+ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.19 /hpcx-v2.19 -gcc-mlnx_ofed-redhat8-cuda12-x86_64.tbz && \
95
+ mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-redhat8-cuda12-x86_64.tbz -C /var/tmp -j && \
96
+ cp -a /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-redhat8-cuda12-x86_64 /usr/local/hpcx && \
120
97
echo "source /usr/local/hpcx/hpcx-init-ompi.sh" >> /etc/bashrc && \
121
98
echo "hpcx_load" >> /etc/bashrc && \
122
- rm -rf /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-redhat8-cuda12-gdrcopy2-nccl2.18- x86_64.tbz /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-redhat8-cuda12-gdrcopy2-nccl2.18 -x86_64''' )
99
+ rm -rf /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-redhat8-cuda12-x86_64.tbz /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-redhat8-cuda12-x86_64''' )
123
100
124
101
@x86_64
125
102
@ubuntu
@@ -283,6 +260,29 @@ def test_ldconfig_multi_thread(self):
283
260
PKG_CONFIG_PATH=/usr/local/hpcx/hcoll/lib/pkgconfig:/usr/local/hpcx/ompi/lib/pkgconfig:/usr/local/hpcx/sharp/lib/pkgconfig:/usr/local/hpcx/ucx/mt/lib/pkgconfig:$PKG_CONFIG_PATH \
284
261
SHMEM_HOME=/usr/local/hpcx/ompi''' )
285
262
263
+ @x86_64
264
+ @ubuntu18
265
+ @docker
266
+ def test_version216_ubuntu18 (self ):
267
+ """Default hpcx building block"""
268
+ h = hpcx (version = '2.16' )
269
+ self .assertEqual (str (h ),
270
+ r'''# Mellanox HPC-X version 2.16
271
+ RUN apt-get update -y && \
272
+ DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
273
+ bzip2 \
274
+ libnuma1 \
275
+ openssh-client \
276
+ tar \
277
+ wget && \
278
+ rm -rf /var/lib/apt/lists/*
279
+ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.16/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64.tbz && \
280
+ mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64.tbz -C /var/tmp -j && \
281
+ cp -a /var/tmp/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64 /usr/local/hpcx && \
282
+ echo "source /usr/local/hpcx/hpcx-init-ompi.sh" >> /etc/bash.bashrc && \
283
+ echo "hpcx_load" >> /etc/bash.bashrc && \
284
+ rm -rf /var/tmp/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64.tbz /var/tmp/hpcx-v2.16-gcc-mlnx_ofed-ubuntu18.04-cuda12-gdrcopy2-nccl2.18-x86_64''' )
285
+
286
286
@x86_64
287
287
@ubuntu22
288
288
@docker
@@ -291,7 +291,7 @@ def test_runtime(self):
291
291
h = hpcx ()
292
292
r = h .runtime ()
293
293
self .assertEqual (r ,
294
- r'''# Mellanox HPC-X version 2.16
294
+ r'''# Mellanox HPC-X version 2.19
295
295
RUN apt-get update -y && \
296
296
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
297
297
bzip2 \
@@ -300,9 +300,9 @@ def test_runtime(self):
300
300
tar \
301
301
wget && \
302
302
rm -rf /var/lib/apt/lists/*
303
- RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.16 /hpcx-v2.16 -gcc-mlnx_ofed-ubuntu22.04-cuda12-gdrcopy2-nccl2.18 -x86_64.tbz && \
304
- mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-ubuntu22.04-cuda12-gdrcopy2-nccl2.18 -x86_64.tbz -C /var/tmp -j && \
305
- cp -a /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-ubuntu22.04-cuda12-gdrcopy2-nccl2.18 -x86_64 /usr/local/hpcx && \
303
+ RUN mkdir -p /var/tmp && wget -q -nc --no-check-certificate -P /var/tmp https://content.mellanox.com/hpc/hpc-x/v2.19 /hpcx-v2.19 -gcc-mlnx_ofed-ubuntu22.04-cuda12-x86_64.tbz && \
304
+ mkdir -p /var/tmp && tar -x -f /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-ubuntu22.04-cuda12-x86_64.tbz -C /var/tmp -j && \
305
+ cp -a /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-ubuntu22.04-cuda12-x86_64 /usr/local/hpcx && \
306
306
echo "source /usr/local/hpcx/hpcx-init-ompi.sh" >> /etc/bash.bashrc && \
307
307
echo "hpcx_load" >> /etc/bash.bashrc && \
308
- rm -rf /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-ubuntu22.04-cuda12-gdrcopy2-nccl2.18- x86_64.tbz /var/tmp/hpcx-v2.16 -gcc-mlnx_ofed-ubuntu22.04-cuda12-gdrcopy2-nccl2.18 -x86_64''' )
308
+ rm -rf /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-ubuntu22.04-cuda12-x86_64.tbz /var/tmp/hpcx-v2.19 -gcc-mlnx_ofed-ubuntu22.04-cuda12-x86_64''' )
0 commit comments