English Français

Documentation / Manuel développeur

Modules disponibles

Calibration,  DataServer,  Launcher,  MetaModelOptim,  Modeler,  Optimizer,  ReLauncher,  Reliability,  ReOptimizer,  Sampler,  Sensitivity,  UncertModeler,  XmlProblem,   Uranie / Launcher: URANIE::Launcher::TSGECluster Class Reference
Uranie / Launcher v4.9.0
/* @license-end */
URANIE::Launcher::TSGECluster Class Reference

Description of the class TSGECluster. More...

#include <TSGECluster.h>

Inheritance diagram for URANIE::Launcher::TSGECluster:
Collaboration diagram for URANIE::Launcher::TSGECluster:

Public Member Functions

Constructor and Destructor
 TSGECluster ()
 Default constructor.
 
virtual ~TSGECluster ()
 Default destructor.
 
virtual void init ()
 Constructs and returns the list of nodes.
 
virtual void getCommandPrefix (char *, char *)
 
Printing Log
void setLog ()
 
void unsetLog ()
 
void changeLog ()
 
Bool_t getLog ()
 
virtual void printLog (Option_t *option="")
 
- Public Member Functions inherited from URANIE::Launcher::TCluster
 TCluster (const char *name, const char *nodeList, Int_t nnode)
 
virtual ~TCluster ()
 Default destructor.
 
void setNNodes (Int_t nnode)
 
TString getListOfNodes ()
 
void addNodeName (const TString &snodename, Int_t n=-1)
 
void setLog ()
 
void unsetLog ()
 
void changeLog ()
 
Bool_t getLog ()
 

Static Public Member Functions

static bool eligible ()
 

Static Private Member Functions

static const char * rawNodeList ()
 

Static Private Attributes

static TString sRawListOfHosts
 

Additional Inherited Members

- Public Attributes inherited from URANIE::Launcher::TCluster
Bool_t _blog
 Boolean to edit the log.
 
- Protected Member Functions inherited from URANIE::Launcher::TCluster
Int_t getProcsPerJob (Char_t separator, const Char_t *procs) const
 

Detailed Description

Description of the class TSGECluster.

Uranie looks for the environnement variable PE_HOSTFILE to activate the SGE batch. This variable defines an ASCII file

PE_HOSTFILE=/opt/sge/default/spool/mars028/active_jobs/322763.1/pe_hostfile

which contains the list of nodes with the format:

::::::::::::::
more /opt/sge/default/spool/mars028/active_jobs/322763.1/pe_hostfile
::::::::::::::
mars028.cluster 8 express_par@mars028.cluster <NULL>
mars034.cluster 8 express_par@mars034.cluster <NULL>
mars029.cluster 2 express_par@mars029.cluster <NULL>
::::::::::::::

where we request 18 slots where we have 8 slots of the node mars028.cluster, 8 slots of the node mars034.cluster and 2 slots of the node mars029.cluster.

Then, the internal list of nodes is as follow:

mars028.cluster mars028.cluster mars028.cluster mars028.cluster mars028.cluster mars028.cluster mars028.cluster mars028.cluster mars034.cluster mars034.cluster mars034.cluster mars034.cluster mars034.cluster mars034.cluster mars034.cluster mars034.cluster mars029.cluster mars029.cluster

and we create ASCII files which contains an only node for each nodes:

::::::::::::::
more /tmp/322763.1.express_par/mars028.cluster.txt
::::::::::::::
mars028.cluster
::::::::::::::
more /tmp/322763.1.express_par/mars029.cluster.txt
::::::::::::::
mars029.cluster
::::::::::::::
more /tmp/322763.1.express_par/mars034.cluster.txt
::::::::::::::
mars034.cluster
::::::::::::::

and use the \it mpirun options machinefile and np

mpirun -machinefile /tmp/322763.1.express_par/mars028.cluster.txt -np 1 leveleLine

Constructor & Destructor Documentation

◆ TSGECluster()

URANIE::Launcher::TSGECluster::TSGECluster ( )

Default constructor.

Referenced by ClassImp().

◆ ~TSGECluster()

virtual URANIE::Launcher::TSGECluster::~TSGECluster ( )
virtual

Default destructor.

Referenced by ClassImp().

Member Function Documentation

◆ changeLog()

void URANIE::Launcher::TSGECluster::changeLog ( )
inline

◆ eligible()

static bool URANIE::Launcher::TSGECluster::eligible ( )
static

◆ getCommandPrefix()

virtual void URANIE::Launcher::TSGECluster::getCommandPrefix ( char *  ,
char *   
)
virtual

Implements URANIE::Launcher::TCluster.

Referenced by ClassImp().

◆ getLog()

Bool_t URANIE::Launcher::TSGECluster::getLog ( )
inline

◆ init()

virtual void URANIE::Launcher::TSGECluster::init ( )
virtual

Constructs and returns the list of nodes.

Implements URANIE::Launcher::TCluster.

Referenced by ClassImp().

◆ printLog()

virtual void URANIE::Launcher::TSGECluster::printLog ( Option_t *  option = "")
virtual

Reimplemented from URANIE::Launcher::TCluster.

Referenced by ClassImp().

◆ rawNodeList()

static const char * URANIE::Launcher::TSGECluster::rawNodeList ( )
staticprivate

Referenced by ClassImp().

◆ setLog()

void URANIE::Launcher::TSGECluster::setLog ( )
inline

◆ unsetLog()

void URANIE::Launcher::TSGECluster::unsetLog ( )
inline

Member Data Documentation

◆ sRawListOfHosts

TString URANIE::Launcher::TSGECluster::sRawListOfHosts
staticprivate

Referenced by ClassImp().