16 #ifndef GEOS_COMMON_INITIALIZEENVIRONMENT_HPP_
17 #define GEOS_COMMON_INITIALIZEENVIRONMENT_HPP_
24 #ifdef GEOS_USE_CALIPER
150 #if defined( GEOS_USE_CALIPER )
157 void setupCaliper( cali::ConfigManager & caliperManager,
170 template<
typename T >
173 #if defined( GEOS_USE_CALIPER ) && defined( GEOS_USE_ADIAK ) && !defined(__APPLE__)
176 adiak::value( name +
" sum", total );
177 adiak::value( name +
" mean",
double( total ) / MpiWrapper::commSize() );
#define GEOS_UNUSED_VAR(...)
Mark an unused variable and silence compiler warnings.
array1d< string > string_array
A 1-dimensional array of geos::string types.
double real64
64-bit floating point type.
void setupOpenMP()
Setup OpenMP.
void setupLogger()
Initialize the logger.
std::int32_t integer
Signed integer type.
void finalizeLogger()
Finalize the logger.
void setupEnvironment(int argc, char *argv[])
Setup/init the environment.
void pushStatsIntoAdiak(string const &name, T const value)
Compute the sum, mean, min, and max of value across ranks and push them into Adiak using name.
void setupMPI(int argc, char *argv[])
Setup MPI.
void setupLvArray()
Setup the LvArray library. This initializes signal handling and the floating point environment.
void setupMKL()
Setup MKL if in use.
void finalizeCaliper()
Finalize Caliper and Adiak.
void cleanupEnvironment()
Cleanup/finalize the environment.
void finalizeMPI()
Finalize MPI.
integer useNonblockingMPI
string outputDirectory
The directory to put all output.
string schemaName
The name of the schema.
bool beginFromRestart
True iff restarting from the middle of an existing run.
string restartFileName
The path to the restart file, if specified.
integer overridePartitionNumbers
True if using the partition override.
string timerOutput
The string used to initialize caliper.
string problemName
The name of the problem being run.
string_array inputFileNames
The paths to the input xml files.
integer xPartitionsOverride
The number of partitions in the x direction.
real64 printMemoryUsage
Print memory usage in data repository.
integer traceDataMigration
Trace host-device data migration.
integer yPartitionsOverride
The number of partitions in the y direction.
integer zPartitionsOverride
The number of partitions in the z direction.
static T max(T const &value, MPI_Comm comm=MPI_COMM_GEOS)
Convenience function for a MPI_Allreduce using a MPI_MAX operation.
static T sum(T const &value, MPI_Comm comm=MPI_COMM_GEOS)
Convenience function for a MPI_Allreduce using a MPI_SUM operation.
static T min(T const &value, MPI_Comm comm=MPI_COMM_GEOS)
Convenience function for a MPI_Allreduce using a MPI_MIN operation.