def_Constant(STATE);
def_Constant(WORKDIR);
def_Constant(EXCLUSIVE);
+ def_Constant(MEMPERCPU);
// Parameters for COORM
def_Constant(LAUNCHER_FILE);
decl_extern_Constant(STATE);
decl_extern_Constant(WORKDIR);
decl_extern_Constant(EXCLUSIVE);
+ decl_extern_Constant(MEMPERCPU);
// Parameters for COORM
decl_extern_Constant(LAUNCHER_FILE);
addParameter("STATE", STRING, 1);
addParameter("WORKDIR", STRING, 1);
addParameter("EXCLUSIVE", BOOL, 1);
+ addParameter("MEMPERCPU", LONG, 1);
// Parameters for COORM
addParameter("LAUNCHER_FILE", STRING, 1);
tempOutputFile << "#SBATCH --time=" << params[MAXWALLTIME] << endl;
if (params.find(MAXRAMSIZE) != params.end())
tempOutputFile << "#SBATCH --mem=" << params[MAXRAMSIZE] << endl;
+ else if (params.find(MEMPERCPU) != params.end())
+ tempOutputFile << "#SBATCH --mem-per-cpu=" << params[MEMPERCPU] << endl;
if (params.find(QUEUE) != params.end())
tempOutputFile << "#SBATCH --partition=" << params[QUEUE] << endl;