1 // Copyright (C) 2005 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
4 // This library is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU Lesser General Public
6 // License as published by the Free Software Foundation; either
7 // version 2.1 of the License.
9 // This library is distributed in the hope that it will be useful
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 // Lesser General Public License for more details.
14 // You should have received a copy of the GNU Lesser General Public
15 // License along with this library; if not, write to the Free Software
16 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
23 * Auteur : Bernard SECHER - CEA/DEN
29 #ifndef _BL_MPIIMPL_H_
30 #define _BL_MPIIMPL_H_
33 #include "Utils_SALOME_Exception.hxx"
34 #include <SALOMEconfig.h>
39 // Constructeur et destructeur
40 MpiImpl(); // constrcuctor
41 virtual ~MpiImpl(); //Destructor
43 virtual std::string size() = 0; // get number of process of current job
44 virtual std::string rank() = 0; // get process number of current job
45 virtual std::string boot(const std::string machinefile, const unsigned int nbnodes) = 0; // get boot command
46 virtual std::string run(const std::string machinefile, const unsigned int nbproc, const std::string fileNameToExecute) = 0; // get run command
47 virtual std::string halt() = 0; // get stop command
55 class MpiImpl_LAM : public MpiImpl
58 // Constructeur et destructeur
59 MpiImpl_LAM(); // constructor
60 virtual ~MpiImpl_LAM(); //Destructor
62 std::string size(); // get number of process of current job
63 std::string rank(); // get process number of current job
64 std::string boot( const std::string machinefile, const unsigned int nbnodes); // get boot command
65 std::string run( const std::string machinefile, const unsigned int nbproc, const std::string fileNameToExecute); // get run command
66 std::string halt(); // get stop command
74 class MpiImpl_MPICH1 : public MpiImpl
77 // Constructeur et destructeur
78 MpiImpl_MPICH1(); // constructor
79 virtual ~MpiImpl_MPICH1(); //Destructor
81 std::string size(); // get number of process of current job
82 std::string rank(); // get process number of current job
83 std::string boot( const std::string machinefile, const unsigned int nbnodes); // get boot command
84 std::string run( const std::string machinefile, const unsigned int nbproc, const std::string fileNameToExecute); // get run command
85 std::string halt(); // get stop command
93 class MpiImpl_MPICH2 : public MpiImpl
96 // Constructeur et destructeur
97 MpiImpl_MPICH2(); // constructor
98 virtual ~MpiImpl_MPICH2(); //Destructor
100 std::string size(); // get number of process of current job
101 std::string rank(); // get process number of current job
102 std::string boot( const std::string machinefile, const unsigned int nbnodes); // get boot command
103 std::string run( const std::string machinefile, const unsigned int nbproc, const std::string fileNameToExecute); // get run command
104 std::string halt(); // get stop command
112 class MpiImpl_OPENMPI : public MpiImpl
115 // Constructeur et destructeur
116 MpiImpl_OPENMPI(); // constructor
117 virtual ~MpiImpl_OPENMPI(); //Destructor
119 std::string size(); // get number of process of current job
120 std::string rank(); // get process number of current job
121 std::string boot( const std::string machinefile, const unsigned int nbnodes); // get boot command
122 std::string run( const std::string machinefile, const unsigned int nbproc, const std::string fileNameToExecute); // get run command
123 std::string halt(); // get stop command