11 #include <arch/mpi/mpi.h> 12 #include <columns/Arguments.hpp> 13 #include <columns/Factory.hpp> 14 #include <io/PVParams.hpp> 35 PV_Init(
int *argc,
char **argv[],
bool allowUnrecognizedArguments);
72 static void freeArgs(
int argc,
char **argv);
90 bool const &getBooleanArgument(std::string
const &name)
const {
94 int const &getIntegerArgument(std::string
const &name)
const {
98 unsigned int const &getUnsignedIntArgument(std::string
const &name)
const {
102 std::string
const &getStringArgument(std::string
const &name)
const {
127 bool setBooleanArgument(std::string
const &name,
bool const &value) {
131 bool setIntegerArgument(std::string
const &name,
int const &value) {
135 bool setUnsignedIntArgument(std::string
const &name,
unsigned int const &value) {
139 bool setStringArgument(std::string
const &name, std::string
const &value) {
163 int setLogFile(
char const *val,
bool appendFlag =
false);
187 Communicator *getCommunicator() {
return mCommunicator; }
189 int getWorldRank()
const {
191 return mCommunicator->globalCommRank();
195 MPI_Comm_rank(MPI_COMM_WORLD, &rank);
202 return mCommunicator->globalCommSize();
206 MPI_Comm_size(MPI_COMM_WORLD, &size);
211 bool isExtraProc() {
return mCommunicator->isExtraProc(); }
236 int initSignalHandler();
237 int initMaxThreads();
238 int commInit(
int *argc,
char ***argv);
277 std::vector<char const *> mArgV;
int setLogFile(char const *val, bool appendFlag=false)
bool setBooleanArgument(std::string const &name, bool const &value)
static void freeArgs(int argc, char **argv)
bool setStringArgument(std::string const &name, std::string const &value)
std::string const & getStringArgument(std::string const &name) const
bool setUnsignedIntArgument(std::string const &name, unsigned int const &value)
Arguments const * getArguments() const
bool const & getBooleanArgument(std::string const &name) const
Configuration::IntOptional const & getIntOptionalArgument(std::string const &name) const
bool setIntOptionalArgument(std::string const &name, Configuration::IntOptional const &value)
PV_Init(int *argc, char **argv[], bool allowUnrecognizedArguments)
unsigned int const & getUnsignedIntArgument(std::string const &name) const
bool setIntegerArgument(std::string const &name, int const &value)
void initLogFile(bool appendFlag)
int const & getIntegerArgument(std::string const &name) const
char ** getArgsCopy() const
int setParams(char const *paramsFile)
int getMaxThreads() const
int registerKeyword(char const *keyword, ObjectCreateFn creator)
int setMPIConfiguration(int rows, int columns, int batchwidth)
char const * getProgramName() const