Skip to content

Commit 9e6f02f

Browse files
committed
Needed to add code to send relevant arguments to compute tasks
1 parent 5ced962 commit 9e6f02f

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

machines/env_mach_specific.mira

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,3 +28,10 @@ soft add +python
2828
if ( $?PERL ) then
2929
printenv
3030
endif
31+
#
32+
# Variables to be used on the compute node need to be set in the LOCAL_ARGS
33+
# with the runjob --envs argument as in
34+
#setenv LOCAL_ARGS "--envs RUNFAST=reallyfast"
35+
#
36+
setenv LOCAL_ARGS "--envs MPI_TYPE_MAX=$MPI_TYPE_MAX --envs XLSMPOPTS=$XLSMPOPTS
37+
--envs OMP_DYNAMIC=$OMP_DYNAMIC --envs MALLOCMULTIHEAP=$MALLOCMULTIHEAP"

utils/perl5lib/Batch/BatchMaker.pm

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,12 @@ my $LOCARGS = "--block $ENV{'COBALT_PARTNAME'}";
850850
{
851851
$LOCARGS .= "--shape $ENV{'COBALT_CORNER'}";
852852
}
853+
if(defined $ENV{'LOCAL_ARGS'})
854+
{
855+
$LOCARGS .= " $ENV{LOCAL_ARGS} ";
856+
}
857+
858+
853859
E1
854860
my $code2=<<"E2";
855861
$mpirun

0 commit comments

Comments
 (0)