Skip to content

Commit

Permalink
Add check for array size on LSF clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Jul 17, 2019
1 parent a446548 commit 6db7ff8
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/pipelines/canu/Grid_LSF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,21 @@ sub configureLSF () {

return if (uc(getGlobal("gridEngine")) ne "LSF");

my $maxArraySize = getGlobal("gridEngineArrayMaxJobs");

if (!defined($maxArraySize)) {
$maxArraySize = 65535;

if (defined($ENV{"MAX_JOB_ARRAY_SIZE"})) {
$maxArraySize = $ENV{"MAX_JOB_ARRAY_SIZE"};
}
}

setGlobalIfUndef("gridEngineSubmitCommand", "bsub");
setGlobalIfUndef("gridEngineNameOption", "-J");
setGlobalIfUndef("gridEngineArrayOption", "");
setGlobalIfUndef("gridEngineArrayName", "ARRAY_NAME\[ARRAY_JOBS\]");
setGlobalIfUndef("gridEngineArrayMaxJobs", 65535);
setGlobalIfUndef("gridEngineArrayMaxJobs", $maxArraySize);
setGlobalIfUndef("gridEngineOutputOption", "-o");
setGlobalIfUndef("gridEngineResourceOption", "-R span[hosts=1] -n THREADS -M MEMORY");
setGlobalIfUndef("gridEngineMemoryPerJob", "1");
Expand Down

0 comments on commit 6db7ff8

Please sign in to comment.