From: ribes Date: Mon, 30 Nov 2009 09:56:40 +0000 (+0000) Subject: Use of ppn option to try to be alone on compute nodes X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bdcf709dff9002fc72f37c37f8b7993b538aaaa0;p=tools%2Flibbatch.git Use of ppn option to try to be alone on compute nodes --- diff --git a/src/PBS/Batch_BatchManager_ePBS.cxx b/src/PBS/Batch_BatchManager_ePBS.cxx index 9909b55..fd01bc0 100644 --- a/src/PBS/Batch_BatchManager_ePBS.cxx +++ b/src/PBS/Batch_BatchManager_ePBS.cxx @@ -254,9 +254,9 @@ namespace Batch { tempOutputFile << "#! /bin/sh -f" << endl; if (nbproc > 0) { - // Division - arrondi supérieur + // Division - arrondi supérieur int nodes_requested = (nbproc + _nb_proc_per_node -1) / _nb_proc_per_node; - tempOutputFile << "#PBS -l nodes=" << nodes_requested << endl; + tempOutputFile << "#PBS -l nodes=" << nodes_requested << ":ppn=" << _nb_proc_per_node << endl; } if (queue != "") tempOutputFile << "#PBS -q " << queue << endl;