From 2c767f3d4d48ba54a3a3e50e316ac15f8de2bbcc Mon Sep 17 00:00:00 2001 From: barate Date: Tue, 30 Nov 2010 16:54:34 +0000 Subject: [PATCH] Added MAXRAMSIZE parameter for LoadLeveler --- src/LoadLeveler/Batch_BatchManager_eLL.cxx | 2 ++ src/LoadLeveler/Test/Test_eLL.cxx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LoadLeveler/Batch_BatchManager_eLL.cxx b/src/LoadLeveler/Batch_BatchManager_eLL.cxx index 3b348fd..e74c025 100644 --- a/src/LoadLeveler/Batch_BatchManager_eLL.cxx +++ b/src/LoadLeveler/Batch_BatchManager_eLL.cxx @@ -147,6 +147,8 @@ namespace Batch { // Optional parameters if (params.find(MAXWALLTIME) != params.end()) tempOutputFile << "# @ wall_clock_limit = " << params[MAXWALLTIME] << ":00" << endl; + if (params.find(MAXRAMSIZE) != params.end()) + tempOutputFile << "# @ as_limit = " << params[MAXRAMSIZE] << "mb" << endl; if (params.find(QUEUE) != params.end()) tempOutputFile << "# @ class = " << params[QUEUE] << endl; diff --git a/src/LoadLeveler/Test/Test_eLL.cxx b/src/LoadLeveler/Test/Test_eLL.cxx index d394525..ce5191e 100644 --- a/src/LoadLeveler/Test/Test_eLL.cxx +++ b/src/LoadLeveler/Test/Test_eLL.cxx @@ -98,7 +98,7 @@ int main(int argc, char** argv) p[TMPDIR] = "tmp/Batch/"; p[NBPROC] = 1; p[MAXWALLTIME] = 1; - p[MAXRAMSIZE] = 1; + p[MAXRAMSIZE] = 10; p[HOMEDIR] = homedir; p[QUEUE] = queue; job.setParametre(p); -- 2.39.2