Skip to content

Commit 8c42acb

Browse files
committed
Submission script now checks for the module as well, otherwise it does not submit since it can cause issues.
1 parent 2c4bbb0 commit 8c42acb

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

submit.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ function is_in_array
4141
return $in
4242
}
4343

44+
###########################################
45+
# Check that the right modules are loaded #
46+
###########################################
47+
if ! type "pgcc" > /dev/null 2>&1; then \
48+
clear; \
49+
echo -e "\n . "; \
50+
echo -e " / \\"; \
51+
echo -e " / ! \\ It looks like the PGI compiler is not loaded."; \
52+
echo -e " /_____\\ On Bridges please issue 'module load cuda/9.2 mpi/pgi_openmpi/19.4-nongpu'. You can now make again :)\n"; \
53+
exit -1; \
54+
fi
55+
4456
######################
4557
# Display quick help #
4658
######################

0 commit comments

Comments
 (0)