#include <cpu.h>
|
FILE * | open_data (const string &fname, const string &mode, access_scheme scheme, string *rpath) |
|
void | open_data (fstream &stream, const string &fname, ios_base::openmode mode, access_scheme scheme, string *rpath) |
|
MPI_File | open_data (const string &fname, int mode, access_scheme scheme, string *rpath) |
|
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) |
|
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.
void t_cpu_i::appendDirSeparator |
( |
char * |
path | ) |
const |
|
inline |
bool t_cpu_i::big_endian |
( |
| ) |
const |
|
inline |
string t_cpu_i::chDirSeparator |
( |
| ) |
const |
|
inline |
References p_chDirSeparator.
Referenced by cdMain(), database_readin(), GetJenkins09(), GetMetalsDeplete(), diatomics::H2_CollidRateRead(), diatomics::H2_Read_hminus_distribution(), diatomics::H2_Read_LTE_cooling_per_H2(), diatomics::H2_ReadDissocEnergies(), diatomics::H2_ReadDissprob(), diatomics::H2_ReadEnergies(), diatomics::H2_ReadTransprob(), iso_init_energies(), open_abn_file(), ParseTable(), diatomics::Read_Mol_Diss_cross_sections(), and read_SH98_He1_cross_sections().
const string& t_cpu_i::chExitStatus |
( |
exit_type |
s | ) |
const |
|
inline |
void t_cpu_i::disableBacktrace |
( |
| ) |
|
|
inline |
void t_cpu_i::enable_traps |
( |
| ) |
const |
|
private |
void t_cpu_i::enableBacktrace |
( |
| ) |
|
|
inline |
const string& t_cpu_i::ExecName |
( |
| ) |
const |
|
inline |
bool t_cpu_i::firstOpen |
( |
| ) |
const |
|
inline |
bool t_cpu_i::foundCSMismatch |
( |
| ) |
const |
|
inline |
void t_cpu_i::GenerateBacktrace |
( |
void * |
ptr | ) |
|
void t_cpu_i::getchecksums |
( |
const string & |
fname | ) |
|
|
private |
void t_cpu_i::getPathList |
( |
const string & |
fname, |
|
|
vector< string > & |
PathList, |
|
|
access_scheme |
scheme, |
|
|
bool |
lgRead |
|
) |
| const |
|
private |
const char* t_cpu_i::host_name |
( |
| ) |
const |
|
inline |
void t_cpu_i::initPath |
( |
| ) |
|
References chSearchPath, DEBUG_ENTRY, FindAndReplace(), getchecksums(), lgPathInitialized, NULL, p_chCloudyRoot, p_chDirSeparator, Split(), and SPM_RELAX.
Referenced by cdInit(), and main().
bool t_cpu_i::lgMaster |
( |
| ) |
const |
|
inline |
References n_rank.
Referenced by cdMain(), GridGatherOutput(), load_balance::init(), lgMPI_talk(), main(), optimize_do(), optimize_phymir(), phymir_state< X, Y, NP, NSTR >::p_process_output(), phymir_state< X, Y, NP, NSTR >::p_wr_state(), process_output(), and vary_input().
bool t_cpu_i::lgMPI |
( |
| ) |
const |
|
inline |
bool t_cpu_i::lgMPI_talk |
( |
| ) |
const |
|
inline |
bool t_cpu_i::little_endian |
( |
| ) |
const |
|
inline |
double t_cpu_i::min_double |
( |
| ) |
const |
|
inline |
long t_cpu_i::nCPU |
( |
| ) |
const |
|
inline |
References n_avail_CPU.
Referenced by grid_do(), GridGatherOutputParallel(), InitDefaultsPreparse(), main(), optimize_phymir(), phymir_state< X, Y, NP, NSTR >::p_execute_job(), ParseGrid(), ParseOptimize(), process_output(), and prt_constants().
long t_cpu_i::nRANK |
( |
| ) |
const |
|
inline |
void t_cpu_i::p_assertValidPath |
( |
| ) |
|
|
private |
void t_cpu_i::PrintBacktrace |
( |
const string & |
s, |
|
|
bool |
lgPrintSeed = true |
|
) |
| |
void t_cpu_i::printDataPath |
( |
| ) |
const |
void t_cpu_i::set_ExecName |
( |
const string & |
name | ) |
|
|
inline |
void t_cpu_i::set_nCPU |
( |
long |
n | ) |
|
|
inline |
void t_cpu_i::set_nRANK |
( |
long |
n | ) |
|
|
inline |
void t_cpu_i::set_signal_handlers |
( |
| ) |
|
void t_cpu_i::set_used_nCPU |
( |
long |
n | ) |
|
|
inline |
void t_cpu_i::signal_handler |
( |
int |
sig, |
|
|
siginfo_t * |
, |
|
|
void * |
ptr |
|
) |
| |
|
staticprivate |
long t_cpu_i::used_nCPU |
( |
| ) |
const |
|
inline |
void check_data |
( |
const string & |
fpath, |
|
|
const string & |
fname |
|
) |
| |
|
friend |
FILE* open_data |
( |
const string & |
fname, |
|
|
const string & |
mode, |
|
|
access_scheme |
scheme, |
|
|
string * |
rpath |
|
) |
| |
|
friend |
void open_data |
( |
fstream & |
stream, |
|
|
const string & |
fname, |
|
|
ios_base::openmode |
mode, |
|
|
access_scheme |
scheme, |
|
|
string * |
rpath |
|
) |
| |
|
friend |
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
void set_NaN |
( |
double & |
x | ) |
|
|
friend |
void set_NaN |
( |
double |
x[], |
|
|
long |
n |
|
) |
| |
|
friend |
map<string,string> t_cpu_i::checksum_expct |
|
private |
vector<string> t_cpu_i::chSearchPath |
|
private |
vector<string> t_cpu_i::chTraceback |
|
private |
the generated traceback will be stored here to be printed later
Referenced by PrintBacktrace().
int64 t_cpu_i::Double_SNaN_Value |
|
private |
union { ... } t_cpu_i::endian |
int32 t_cpu_i::Float_SNaN_Value |
|
private |
char t_cpu_i::HostName[STDLEN] |
|
private |
bool t_cpu_i::lgPathInitialized |
|
private |
long t_cpu_i::n_avail_CPU |
|
private |
string t_cpu_i::p_chCloudyRoot |
|
private |
the path to the root of the Cloudy installation
Referenced by initPath().
char t_cpu_i::p_chDirSeparator |
|
private |
string t_cpu_i::p_ExecName |
|
private |
vector<string> t_cpu_i::p_exit_status |
|
private |
flag whether we are doing an MPI run or not
Referenced by lgMPI(), and t_cpu_i().
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().
bool t_cpu_i::p_suppressBacktrace |
|
private |
double t_cpu_i::test_double |
|
private |
The documentation for this class was generated from the following files: