Salome HOME
Fix srun containers not using every available cores.
authorOvidiu MIRCESCU <ovidiu.mircescu@edf.fr>
Wed, 10 Mar 2021 11:35:11 +0000 (12:35 +0100)
committerOvidiu MIRCESCU <ovidiu.mircescu@edf.fr>
Wed, 10 Mar 2021 11:35:11 +0000 (12:35 +0100)
src/Container/SALOME_ContainerManager.cxx

index 8134f28cd0e818d22926d00d9f1ac19cab13a20a..0956c51f71df3e56c04c977da01754ab8b80ae1b 100644 (file)
@@ -1121,7 +1121,7 @@ std::string SALOME_ContainerManager::BuildTempFileToLaunchRemoteContainer (const
 
   else if (resInfo.Protocol == srun)
     {
-      command = "srun -n 1 -N 1 -s --mem-per-cpu=0 --nodelist=";
+      command = "srun -n 1 -N 1 -s --mem-per-cpu=0 --cpu-bind=none --nodelist=";
       std::string commandRcp = "rcp ";
       commandRcp += tmpFileName;
       commandRcp += " ";
@@ -1241,7 +1241,7 @@ std::string SALOME_ContainerManager::getCommandToRunRemoteProcess(AccessProtocol
   case srun:
     // no need to redefine the user with srun, the job user is taken by default
     // (note: for srun, user id can be specified with " --uid=<user>")
-    command << "srun -n 1 -N 1 -s --mem-per-cpu=0 --nodelist=" << hostname << " ";
+    command << "srun -n 1 -N 1 -s --mem-per-cpu=0 --cpu-bind=none --nodelist=" << hostname << " ";
     break;
   case pbsdsh:
     command << "pbsdsh -o -h " << hostname << " ";