From: barate Date: Tue, 30 Nov 2010 16:54:34 +0000 (+0000) Subject: Added MAXRAMSIZE parameter for LoadLeveler X-Git-Tag: V1_3_0rc1~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2c767f3d4d48ba54a3a3e50e316ac15f8de2bbcc;p=tools%2Flibbatch.git Added MAXRAMSIZE parameter for LoadLeveler --- 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);