]> SALOME platform Git repositories - tools/libbatch.git/commitdiff
Salome HOME
Fixed BatchManager_eLL for use with Ivanoe cluster (temporary fix, a cleaner fix...
authorbarate <barate>
Fri, 18 Feb 2011 09:01:43 +0000 (09:01 +0000)
committerbarate <barate>
Fri, 18 Feb 2011 09:01:43 +0000 (09:01 +0000)
src/LoadLeveler/Batch_BatchManager_eLL.cxx

index a9a47d5d9ee5d676bc63b345beaf4c016fc4383a..d0fca4754e86203b43a959a97333a2d310d7a76e 100644 (file)
@@ -144,8 +144,25 @@ namespace Batch {
     tempOutputFile << "#!/bin/bash" << endl;
     tempOutputFile << "# @ output = " << workDir << "/logs/output.log." << rootNameToExecute << endl;
     tempOutputFile << "# @ error = " << workDir << "/logs/error.log." << rootNameToExecute << endl;
+    tempOutputFile << "# @ node_usage = not_shared" << endl;
+
+    if (params.find(NAME) != params.end())
+      tempOutputFile << "# @ job_name = " << params[NAME] << endl;
 
     // Optional parameters
+    int nbproc = 1;
+    if (params.find(NBPROC) != params.end())
+      nbproc = params[NBPROC];
+    //if (nbproc == 1)
+    //  tempOutputFile << "# @ job_type = serial" << endl;
+    //else {
+      //  tempOutputFile << "# @ job_type = parallel" << endl;
+      tempOutputFile << "# @ job_type = mpich" << endl;
+      tempOutputFile << "# @ node = " << nbproc << endl;
+      tempOutputFile << "# @ tasks_per_node = 1" << endl;
+    //}
+    //tempOutputFile << "# @ job_type = bluegene" << endl;
+
     if (params.find(MAXWALLTIME) != params.end())
       tempOutputFile << "# @ wall_clock_limit = " << params[MAXWALLTIME] << ":00" << endl;
     if (params.find(MAXRAMSIZE) != params.end())
@@ -164,7 +181,6 @@ namespace Batch {
       tempOutputFile << endl;
     }
 
-    tempOutputFile << "# @ job_type = bluegene" << endl;
     tempOutputFile << "# @ queue" << endl;
 
     // generate nodes file