From b9ee26e0c7049b8dad4df58a3fe53ec5a7cd6828 Mon Sep 17 00:00:00 2001 From: barate Date: Tue, 15 Jan 2013 17:04:21 +0000 Subject: [PATCH] Adapt to change in nbprocpernode in libbatch --- src/Launcher/Launcher.cxx | 3 +-- src/Launcher/Launcher_Job.cxx | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Launcher/Launcher.cxx b/src/Launcher/Launcher.cxx index 02c2ab966..4b74fca15 100644 --- a/src/Launcher/Launcher.cxx +++ b/src/Launcher/Launcher.cxx @@ -368,7 +368,6 @@ Launcher_cpp::FactoryBatchManager(ParserResourcesType& params) Batch::CommunicationProtocolType protocol; Batch::FactBatchManager * fact; - int nb_proc_per_node = params.DataForSort._nbOfProcPerNode; std::string hostname = params.HostName; switch(params.Protocol) @@ -450,7 +449,7 @@ Launcher_cpp::FactoryBatchManager(ParserResourcesType& params) } LAUNCHER_MESSAGE("Instanciation of batch manager of type: " << bmType); Batch::BatchManager * batch_client = (*fact)(hostname.c_str(), params.UserName.c_str(), - protocol, mpi.c_str(), nb_proc_per_node); + protocol, mpi.c_str()); return batch_client; } diff --git a/src/Launcher/Launcher_Job.cxx b/src/Launcher/Launcher_Job.cxx index 945baabc1..9ade1bfd2 100644 --- a/src/Launcher/Launcher_Job.cxx +++ b/src/Launcher/Launcher_Job.cxx @@ -457,6 +457,7 @@ Launcher::Job::common_job_params() params[Batch::NAME] = getJobName(); params[Batch::USER] = _resource_definition.UserName; params[Batch::NBPROC] = _resource_required_params.nb_proc; + params[Batch::NBPROCPERNODE] = _resource_required_params.nb_proc_per_node; // Memory in megabytes if (_resource_required_params.mem_mb > 0) -- 2.39.2