gambit.cpp
Go to the documentation of this file.
89 signaldata().set_MPI_comm(&errorComm); // Provide a communicator for signal handling routines to use. 122 cout << "WARNING! Running in SERIAL (no MPI) mode! Recompile with -DWITH_MPI=1 for MPI parallelisation" << endl; 125 cout << "Running with "<< n_omp_threads << " OpenMP threads per MPI process (set by the environment variable OMP_NUM_THREADS)." << endl; 140 logger() << "Running with "<< n_omp_threads << " OpenMP threads per MPI process (set by the environment variable OMP_NUM_THREADS)." << EOM; 151 // Check if user wants to disable use of MPI_Abort (since it does not work correctly in all MPI implementations) 166 Core().registerActiveModelFunctors( Models::ModelDB().getPrimaryModelFunctorsToActivate( selectedmodels, Core().getPrimaryModelFunctors() ) ); 175 DRes::DependencyResolver dependencyResolver(Core(), Models::ModelDB(), iniFile, Utils::typeEquivalencies(), *(printerManager.printerptr)); 181 if (rank == 0) cout << "Resolving dependencies and backend requirements. Hang tight..." << endl; 195 Likelihood_Container_Factory factory(Core(), dependencyResolver, iniFile, *(printerManager.printerptr)); 215 scan.Run(); // Note: the likelihood container will unblock signals when it is safe to receive them. 219 // cleanup it requires, including finalising the printers, i.e. the 'do_cleanup()' function will NOT run. 222 logger() << "GAMBIT has performed a controlled early shutdown due to early termination of the scanner plugin." << EOM; 326 if(allow_finalize and signaldata().shutdown_begun()) //signaldata().discard_excess_shutdown_messages(); 333 signaldata().broadcast_shutdown_signal(SignalData::NO_MORE_MESSAGES); // Tell all other processes that we are done sending messages
Manager class for creating printer objects. Definition: printermanager.hpp:40 std::string display_received_signals() Print to string a list of the signals received so far by this process. Definition: signal_handling.cpp:224 void set_shutdown_begun(const sig_atomic_t emergnc=0) Register that shutdown has begun. Definition: signal_handling.cpp:246 Special exception used during clean exit from diagnostics. Definition: exceptions.hpp:308 Definition: scan.hpp:39 void checkPrimaryModelFunctorUsage(const activemodel_map &) const Active model functor "usefulness" checker. Definition: models.cpp:113 TYPE getValueOrDef(TYPE def, const args &... keys) const Definition: yaml_parser_base.hpp:78 void registerActiveModelFunctors(const pmfVec &) Add entries to the map of activated primary model functors. Definition: core.cpp:232 const fVec & getBackendFunctors() const Get a reference to the list of backend model functors. Definition: core.cpp:247 Special exception used during controlled early shutdown. Definition: exceptions.hpp:318 const fVec & getModuleFunctors() const Get a reference to the list of module functors. Definition: core.cpp:241 Special exception raised when emergency shutdown triggered via MPI. Definition: exceptions.hpp:336 YAML::Node getPriorsNode() const Definition: yaml_parser_base.cpp:295 Special exception used during emergency early shutdown. Definition: exceptions.hpp:327 EXPORT_SYMBOLS SignalData & signaldata() Retrieve global instance of signal handler options struct. Definition: signal_handling.cpp:633 const Logging::endofmessage EOM Explicit const instance of the end of message struct in Gambit namespace. Definition: logger.hpp:99 YAML::Node getPrinterNode() const Definition: yaml_parser_base.cpp:296 Logging::LogMaster & logger() Function to retrieve a reference to the Gambit global log object. Definition: logger.cpp:95 static void create_rng_engine(str, int=-1) Choose the engine to use for random number generation, based on the contents of the ini file... Definition: threadsafe_rng.cpp:63 Header for main GAMBIT executable. A simple C++ wrapper for the MPI C bindings. void accountForMissingClasses() const Tell the module functors which backends are actually present. Definition: core.cpp:258 Definition: log_tags.hpp:47 YAML::Node getScannerNode() const Definition: yaml_parser_base.cpp:297 const std::set< str > getModelNames() const Return list of model names (without "adhoc" model!) Definition: yaml_parser_base.cpp:310 YAML::Node getParametersNode() const Getters for key/value section. Definition: yaml_parser_base.cpp:294 type_equivalency & typeEquivalencies() Backend info accessor function. Definition: equivalency_singleton.cpp:25 EXPORT_SYMBOLS pluginInfo plugin_info Access Functor for plugin info. Definition: plugin_loader.cpp:736 |