From feeb3536a5dfd7066b822e7fec957439647b828b Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Thu, 28 Dec 2023 00:26:48 +0000 Subject: [PATCH] Update mfc.sh --- mfc.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/mfc.sh b/mfc.sh index 75c4a0f91..542acd863 100755 --- a/mfc.sh +++ b/mfc.sh @@ -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