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;