Skip to content

Commit

Permalink
Add WCOSS2 support for tests (ufs-community#693)
Browse files Browse the repository at this point in the history
New mpiexec script to submit jobs and run the test suite
on WCOSS2. 

Fixes ufs-community#690
  • Loading branch information
WalterKolczynski-NOAA authored Sep 13, 2022
1 parent c33ea52 commit ca9bed8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmake/LibMPI.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ function (platform_name RETURN_VARIABLE)

# wcoss2
elseif (SITENAME MATCHES "^along01" OR
SITENAME MATCHES "^alogin02")
SITENAME MATCHES "^alogin02" OR
SITENAME MATCHES "^clogin" OR
SITENAME MATCHES "^dlogin")

set (${RETURN_VARIABLE} "wcoss2" PARENT_SCOPE)

Expand Down
15 changes: 15 additions & 0 deletions cmake/mpiexec.wcoss2
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash
#
# Arguments:
#
# $1 - Number of MPI Tasks
# $2+ - Executable and its arguments
#

ACCOUNT=GFS-DEV
QUEUE=dev

NP=$1
shift

qsub -A $ACCOUNT -q $QUEUE -l select=1:ncpus=$NP:mem=1GB -l place=vscatter -l walltime=00:10:00 $@

0 comments on commit ca9bed8

Please sign in to comment.