Skip to content

Commit

Permalink
Update mfc.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sbryngelson authored Dec 28, 2023
1 parent 5fb5c2c commit feeb353
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion mfc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,14 @@ if [ "$1" == 'load' ]; then
fi
done

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


return
elif [ "$1" == "format" ]; then
Expand Down

0 comments on commit feeb353

Please sign in to comment.