Skip to content

Commit cfec29b

Browse files
committed
TEST/CI: Support nvidia_peermem module
1 parent fde2615 commit cfec29b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

buildlib/az-helpers.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ check_nv_peer_mem() {
163163
return 0
164164
fi
165165

166-
if ! lsmod | grep -q nv_peer_mem; then
167-
lsmod | grep nv_peer_mem
166+
if ! lsmod | grep -q 'nv.*_peer.*mem'; then
167+
lsmod | grep 'nv.*_peer.*mem'
168168
systemctl status nv_peer_mem
169169
azure_log_error "nv_peer_mem module not loaded on $(hostname -s)"
170170
exit 1
@@ -180,7 +180,7 @@ try_load_cuda_env() {
180180
have_gdrcopy=no
181181

182182
# List relevant modules
183-
lsmod | grep -P "^(nvidia|nv_peer_mem|gdrdrv)\W" || true
183+
lsmod | grep -P "^(nvidia|nv.*_peer.*mem|gdrdrv)\W" || true
184184

185185
# Check nvidia driver
186186
[ -f "/proc/driver/nvidia/version" ] || return 0

contrib/test_jenkins.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,9 @@ run_ucx_perftest() {
499499
if [ "X$have_cuda" != "Xno" ] && [ $with_mpi -ne 1 ]
500500
then
501501
gdr_options="n "
502-
if (lsmod | grep -q "nv_peer_mem")
502+
if (lsmod | grep -q 'nv.*_peer.*mem')
503503
then
504-
echo "GPUDirectRDMA module (nv_peer_mem) is present.."
504+
echo "GPUDirectRDMA module (nv_peer_mem/nvidia_peermem) is present"
505505
gdr_options+="y "
506506
fi
507507

0 commit comments

Comments
 (0)