From: Konstantin Leontev Date: Fri, 11 Aug 2023 10:42:35 +0000 (+0100) Subject: [bos #35138][EDF] (2023-T1) Specialization of resources in KERNEL. JobParameters... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fkleontev%2F35138_specialization_resources_in_KERNEL;p=modules%2Fsmesh.git [bos #35138][EDF] (2023-T1) Specialization of resources in KERNEL. JobParameters resource_required type changed to ResourceParametersJob. --- diff --git a/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx b/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx index 7aed80bbd..8364af213 100644 --- a/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx +++ b/src/Tools/padder/meshjob/impl/MeshJobManager_i.cxx @@ -451,9 +451,9 @@ CORBA::Long MeshJobManager_i::initialize(const MESHJOB::MeshJobFileList & meshJo //const char * resourceName = "nepal@nepal"; const char * resourceName = _configMap[configId].resname; - Engines::ResourceDefinitionContainer* resourceDefinition; + Engines::ResourceDefinitionJob* resourceDefinition = nullptr; try { - resourceDefinition = _resourcesManager->GetResourceDefinitionContainer(resourceName); + resourceDefinition = _resourcesManager->GetResourceDefinitionJob(resourceName); } catch (const CORBA::SystemException& ex) { _lastErrorMessage = std::string("We can not access the resource ") + std::string(resourceName); @@ -470,8 +470,8 @@ CORBA::Long MeshJobManager_i::initialize(const MESHJOB::MeshJobFileList & meshJo // CAUTION: the additional two following parameters MUST be // specified explicitly, because they are not provided by the // resource definition: - jobParameters->resource_required.mem_mb = resourceDefinition->mem_mb; - jobParameters->resource_required.nb_proc = resourceDefinition->nb_proc_per_node; + // jobParameters->resource_required.mem_mb = resourceDefinition->mem_mb; + // jobParameters->resource_required.nb_proc = resourceDefinition->nb_proc_per_node; // CAUTION: the parameter mem_mb specifies the maximum memory value // that could be allocated for executing the job. This takes into // account not only the data that could be loaded by the batch