#include <cpu.h>
|
FILE * | open_data (const string &fname, const string &mode, access_scheme scheme=AS_DEFAULT, string *rpath=nullptr) |
|
void | open_data (fstream &stream, const string &fname, ios_base::openmode mode, access_scheme scheme=AS_DEFAULT, string *rpath=nullptr) |
|
MPI_File | open_data (const string &fname, int mode, access_scheme scheme=AS_DEFAULT, string *rpath=nullptr) |
|
void | check_data (const string &fpath, const string &fname) |
|
void | set_NaN (sys_float &x) |
|
void | set_NaN (sys_float x[], long n) |
|
void | set_NaN (double &x) |
|
void | set_NaN (double x[], long n) |
|
◆ t_cpu_i()
References big_endian(), DEBUG_ENTRY, Double_SNaN_Value, enable_traps(), endian, ES_BAD_ALLOC, ES_BAD_ASSERT, ES_BOTCHES, ES_BUS_ERROR, ES_CLOUDY_ABORT, ES_DOMAIN_ERROR, ES_FAILURE, ES_FP_EXCEPTION, ES_ILLEGAL_INSTRUCTION, ES_OUT_OF_RANGE, ES_SEGFAULT, ES_SUCCESS, ES_TOP, ES_UNKNOWN_EXCEPTION, ES_UNKNOWN_SIGNAL, ES_WARNINGS, Float_SNaN_Value, HostName, ioPrnErr, ioQQQ, ioStdin, lgPathInitialized, lgPrnErr, little_endian(), MS_DEFAULT, n_avail_CPU, n_rank, nCSMismatch, nFileDone, NULL, p_chDirSeparator, p_ExecName, p_exit_status, p_lgMPI, p_MPIMode, p_suppressBacktrace, set_signal_handlers(), STDLEN, test_double, and test_float.
◆ appendDirSeparator()
void t_cpu_i::appendDirSeparator |
( |
char * | path | ) |
const |
|
inline |
◆ big_endian()
bool t_cpu_i::big_endian |
( |
| ) |
const |
|
inline |
◆ chDirSeparator()
string t_cpu_i::chDirSeparator |
( |
| ) |
const |
|
inline |
◆ chExitStatus()
const string & t_cpu_i::chExitStatus |
( |
exit_type | s | ) |
const |
|
inline |
◆ disableBacktrace()
void t_cpu_i::disableBacktrace |
( |
| ) |
|
|
inline |
◆ enable_traps()
void t_cpu_i::enable_traps |
( |
| ) |
const |
|
private |
◆ enableBacktrace()
void t_cpu_i::enableBacktrace |
( |
| ) |
|
|
inline |
◆ ExecName()
const string & t_cpu_i::ExecName |
( |
| ) |
const |
|
inline |
◆ firstOpen()
bool t_cpu_i::firstOpen |
( |
| ) |
const |
|
inline |
◆ foundCSMismatch()
bool t_cpu_i::foundCSMismatch |
( |
| ) |
const |
|
inline |
◆ GenerateBacktrace()
void t_cpu_i::GenerateBacktrace |
( |
void * | ptr | ) |
|
◆ getchecksums()
void t_cpu_i::getchecksums |
( |
const string & | fname | ) |
|
|
private |
◆ getPathList()
void t_cpu_i::getPathList |
( |
const string & | fname, |
|
|
vector< string > & | PathList, |
|
|
access_scheme | scheme, |
|
|
bool | lgRead ) const |
|
private |
◆ host_name()
const char * t_cpu_i::host_name |
( |
| ) |
const |
|
inline |
◆ initPath()
void t_cpu_i::initPath |
( |
| ) |
|
◆ lgMaster()
bool t_cpu_i::lgMaster |
( |
| ) |
const |
|
inline |
◆ lgMPI()
bool t_cpu_i::lgMPI |
( |
| ) |
const |
|
inline |
◆ lgMPI_talk()
bool t_cpu_i::lgMPI_talk |
( |
| ) |
const |
|
inline |
◆ little_endian()
bool t_cpu_i::little_endian |
( |
| ) |
const |
|
inline |
◆ min_double()
double t_cpu_i::min_double |
( |
| ) |
const |
|
inline |
◆ min_float()
◆ MPIMode()
◆ nCPU()
long t_cpu_i::nCPU |
( |
| ) |
const |
|
inline |
◆ nRANK()
long t_cpu_i::nRANK |
( |
| ) |
const |
|
inline |
◆ p_assertValidPath()
void t_cpu_i::p_assertValidPath |
( |
| ) |
|
|
private |
◆ PrintBacktrace()
void t_cpu_i::PrintBacktrace |
( |
const string & | s, |
|
|
bool | lgPrintSeed = true ) |
◆ printDataPath()
void t_cpu_i::printDataPath |
( |
| ) |
const |
◆ set_ExecName()
void t_cpu_i::set_ExecName |
( |
const string & | name | ) |
|
|
inline |
◆ set_MPIMode()
◆ set_nCPU()
void t_cpu_i::set_nCPU |
( |
long | n | ) |
|
|
inline |
◆ set_nRANK()
void t_cpu_i::set_nRANK |
( |
long | n | ) |
|
|
inline |
◆ set_signal_handlers()
void t_cpu_i::set_signal_handlers |
( |
| ) |
|
◆ set_used_nCPU()
void t_cpu_i::set_used_nCPU |
( |
long | n | ) |
|
|
inline |
◆ signal_handler()
void t_cpu_i::signal_handler |
( |
int | sig, |
|
|
siginfo_t * | , |
|
|
void * | ptr ) |
|
staticprivate |
◆ used_nCPU()
long t_cpu_i::used_nCPU |
( |
| ) |
const |
|
inline |
◆ check_data
void check_data |
( |
const string & | fpath, |
|
|
const string & | fname ) |
|
friend |
◆ open_data [1/3]
FILE * open_data |
( |
const string & | fname, |
|
|
const string & | mode, |
|
|
access_scheme | scheme = AS_DEFAULT, |
|
|
string * | rpath = nullptr ) |
|
friend |
◆ open_data [2/3]
References AS_DEFAULT, AS_LOCAL_ONLY, AS_OPTIONAL, check_data(), check_mult_path(), cpu, DEBUG_ENTRY, ErrorMessage(), MPI_ERR_INTERN, MPI_FILE_NULL, MPI_File_open, mpi_mode_r, and MPI_SUCCESS.
◆ open_data [3/3]
void open_data |
( |
fstream & | stream, |
|
|
const string & | fname, |
|
|
ios_base::openmode | mode, |
|
|
access_scheme | scheme = AS_DEFAULT, |
|
|
string * | rpath = nullptr ) |
|
friend |
◆ set_NaN [1/4]
void set_NaN |
( |
double & | x | ) |
|
|
friend |
◆ set_NaN [2/4]
void set_NaN |
( |
double | x[], |
|
|
long | n ) |
|
friend |
◆ set_NaN [3/4]
define routines for setting single and double precision signaling NaN The bit pattern for an SNaN is implementation defined, but this should work on most modern CPU's. The system definition is preferred, so in C++ this should be replaced by numeric_limits<TYPE>::signaling_NaN()
set_NaN - set variable or array to SNaN
References cpu.
◆ set_NaN [4/4]
◆ checksum_expct
map<string,string> t_cpu_i::checksum_expct |
|
private |
the map of the checksums of all the data files
Referenced by getchecksums().
◆ chSearchPath
vector<string> t_cpu_i::chSearchPath |
|
private |
◆ chTraceback
vector<string> t_cpu_i::chTraceback |
|
private |
the generated traceback will be stored here to be printed later
Referenced by PrintBacktrace().
◆ Double_SNaN_Value
int64 t_cpu_i::Double_SNaN_Value |
|
private |
◆ [union]
union { ... } t_cpu_i::endian |
◆ Float_SNaN_Value
int32 t_cpu_i::Float_SNaN_Value |
|
private |
◆ HostName
char t_cpu_i::HostName[STDLEN] |
|
private |
◆ lgPathInitialized
bool t_cpu_i::lgPathInitialized |
|
private |
◆ n_avail_CPU
long t_cpu_i::n_avail_CPU |
|
private |
◆ n_rank
◆ n_use_CPU
◆ nCSMismatch
◆ nFileDone
◆ p_chCloudyRoot
string t_cpu_i::p_chCloudyRoot |
|
private |
the path to the root of the Cloudy installation
Referenced by initPath().
◆ p_chDirSeparator
char t_cpu_i::p_chDirSeparator |
|
private |
◆ p_ExecName
string t_cpu_i::p_ExecName |
|
private |
◆ p_exit_status
vector<string> t_cpu_i::p_exit_status |
|
private |
◆ p_lgMPI
flag whether we are doing an MPI run or not
Referenced by lgMPI(), and t_cpu_i().
◆ p_MPIMode
flag indicating whether each rank runs its own model true means that each rank runs a different sim (e.g. in a grid) false means that all ranks cooperate on the same sim this flag is moot in a non-MPI run
Referenced by lgMPI_talk(), MPIMode(), set_MPIMode(), and t_cpu_i().
◆ p_suppressBacktrace
bool t_cpu_i::p_suppressBacktrace |
|
private |
◆ test_double
double t_cpu_i::test_double |
|
private |
◆ test_float
The documentation for this class was generated from the following files: