File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff 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
148155elif [ " $1 " == " format" ]; then
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ s-gpu nvhpc/22.11 cuda/nvhpc
1515b PSC Bridges2
1616b-all python/3.8.6
1717b-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
2020a OLCF Ascent
2121a-all python cmake/3.22.2
You can’t perform that action at this time.
0 commit comments