Skip to content

Commit 37ddb15

Browse files
authored
Update Bridges2 modules (#274)
1 parent cf90cc0 commit 37ddb15

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

mfc.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,14 @@ if [ "$1" == 'load' ]; then
142142
fi
143143
done
144144

145-
ok "All modules have been loaded for $M$COMPUTER$CR on $M$CG$CR"'s.'
145+
if [ "$cg" == 'gpu' ]; then
146+
isnv=$($FC --version | grep NVIDIA | wc -l)
147+
if [ $isnv -eq 0 ]; then
148+
export CC=nvc CXX=nvc++ FC=nvfortran
149+
fi
150+
fi
151+
ok 'All modules and environment variables have been loaded.'
152+
146153

147154
return
148155
elif [ "$1" == "format" ]; then

toolchain/modules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ s-gpu nvhpc/22.11 cuda/nvhpc
1515
b PSC Bridges2
1616
b-all python/3.8.6
1717
b-cpu allocations/1.0 gcc/10.2.0 openmpi/4.0.5-gcc10.2.0
18-
b-gpu openmpi/4.0.5-nvhpc22.9 nvhpc/22.9
18+
b-gpu openmpi/4.0.5-nvhpc22.9 nvhpc/22.9 cuda
1919

2020
a OLCF Ascent
2121
a-all python cmake/3.22.2

0 commit comments

Comments
 (0)