Version: 9.15.0
LauncherResourceDefinition.hxx
Go to the documentation of this file.
1 // Copyright (C) 2024-2025 CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 
20 #pragma once
21 
22 #include "SALOME_Launcher_SWIG.hxx"
24 
25 
26 typedef struct ResourceDefinition_cpp
27 {
28 public:
29  std::string name;
30  std::string hostname;
31  std::string type;
32  std::string protocol;
33  std::string username;
34  std::string applipath;
35  std::string OS;
36  int mem_mb;
37  int cpu_clock;
38  int nb_node;
40  std::string batch;
41  std::string mpiImpl;
42  std::string iprotocol;
45  std::string working_directory;
46 public:
47  void fromPRT(const ParserResourcesType& other);
48  ParserResourcesType toPRT() const;
struct ResourceDefinition_cpp ResourceDefinition_cpp
Definition: SALOME_ResourcesCatalog_Parser.hxx:90
Definition: LauncherResourceDefinition.hxx:27
std::string OS
Definition: LauncherResourceDefinition.hxx:35
std::string name
Definition: LauncherResourceDefinition.hxx:29
std::string type
Definition: LauncherResourceDefinition.hxx:31
ParserResourcesType toPRT() const
Definition: LauncherResourceDefinition.cxx:43
void fromPRT(const ParserResourcesType &other)
Definition: LauncherResourceDefinition.cxx:22
bool can_run_containers
Definition: LauncherResourceDefinition.hxx:44
std::string batch
Definition: LauncherResourceDefinition.hxx:40
std::string username
Definition: LauncherResourceDefinition.hxx:33
std::string applipath
Definition: LauncherResourceDefinition.hxx:34
std::string mpiImpl
Definition: LauncherResourceDefinition.hxx:41
int nb_proc_per_node
Definition: LauncherResourceDefinition.hxx:39
std::string protocol
Definition: LauncherResourceDefinition.hxx:32
std::string working_directory
Definition: LauncherResourceDefinition.hxx:45
int cpu_clock
Definition: LauncherResourceDefinition.hxx:37
bool can_launch_batch_jobs
Definition: LauncherResourceDefinition.hxx:43
std::string hostname
Definition: LauncherResourceDefinition.hxx:30
int nb_node
Definition: LauncherResourceDefinition.hxx:38
std::string iprotocol
Definition: LauncherResourceDefinition.hxx:42
int mem_mb
Definition: LauncherResourceDefinition.hxx:36