|
cloudy
trunk
|
#include <cpu.h>

Public Member Functions | |
| t_cpu_i () | |
| bool | big_endian () const |
| bool | little_endian () const |
| sys_float | min_float () const |
| double | min_double () const |
| void | set_signal_handlers () |
| void | setAssertAbort (bool val) |
| bool | lgAssertAbort () const |
| void | set_nCPU (long n) |
| long | nCPU () const |
| bool | lgMPI () const |
| void | set_MPISingleRankMode (bool mode) |
| bool | lgMPISingleRankMode () const |
| void | set_nRANK (long n) |
| long | nRANK () const |
| bool | lgMaster () const |
| bool | lgMPI_talk () const |
| const char * | host_name () const |
| void | printDataPath () const |
| char | chDirSeparator () const |
| bool | firstOpen () const |
| const string & | chExitStatus (exit_type s) const |
Private Member Functions | |
| void | enable_traps () const |
| void | getPathList (const char *fname, vector< string > &PathList, access_scheme scheme) const |
Static Private Member Functions | |
| static void | signal_handler (int sig) |
Private Attributes | |
| union { | |
| char c [4] | |
| int32 i | |
| } | endian |
| sys_float | test_float |
| double | test_double |
| int32 | Float_SNaN_Value |
| int32 | Double_SNaN_Value [2] |
| bool | p_lgAssertAbort |
| long | n_avail_CPU |
| bool | p_lgMPI |
| bool | p_lgMPISingleRankMode |
| long | n_rank |
| char | HostName [STDLEN] |
| vector< string > | chSearchPath |
| char | p_chDirSeparator |
| int | nFileDone |
| vector< string > | p_exit_status |
Friends | |
| FILE * | open_data (const char *fname, const char *mode, access_scheme scheme) |
| void | open_data (fstream &stream, const char *fname, ios_base::openmode mode, access_scheme scheme) |
| 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::t_cpu_i | ( | ) |
Definition at line 68 of file cpu.cpp.
References DEBUG_ENTRY, ES_BAD_ALLOC, ES_BAD_ASSERT, ES_BOTCHES, ES_BUS_ERROR, ES_CLOUDY_ABORT, ES_FAILURE, ES_FP_EXCEPTION, ES_ILLEGAL_INSTRUCTION, ES_OUT_OF_RANGE, ES_SEGFAULT, ES_SUCCESS, ES_TERMINATION_REQUEST, ES_TOP, ES_UNKNOWN_EXCEPTION, ES_UNKNOWN_SIGNAL, ES_USER_INTERRUPT, ES_WARNINGS, t_cpu::i(), ioPrnErr, ioQQQ, ioStdin, lgPrnErr, Split(), SPM_RELAX, and STDLEN.

|
inline |
Definition at line 287 of file cpu.h.
References endian.
Referenced by mie_read_opc(), mie_write_opc(), MyIsnan(), ReadTable(), and SaveDo().
|
inline |
|
inline |
|
private |
Definition at line 289 of file cpu.cpp.
Referenced by signal_handler().
|
inline |
Definition at line 332 of file cpu.h.
Referenced by AbortErrorMessage().
|
private |
Definition at line 524 of file cpu.cpp.
References AS_DATA_LOCAL, AS_DATA_LOCAL_TRY, AS_DATA_ONLY, AS_DATA_ONLY_TRY, AS_DATA_OPTIONAL, AS_LOCAL_DATA, AS_LOCAL_DATA_TRY, AS_LOCAL_ONLY, AS_LOCAL_ONLY_TRY, AS_SILENT_TRY, chSearchPath, cpu, DEBUG_ENTRY, t_cpu::i(), and TotalInsanity().
Referenced by open_data().

|
inline |
Definition at line 329 of file cpu.h.
References HostName, and printDataPath().
Referenced by optimize_phymir().

|
inline |
|
inline |
Definition at line 327 of file cpu.h.
Referenced by cdMain(), lgMPI_talk(), lgOptimize_do(), main(), phymir_state< X, Y, NP, NSTR >::p_process_output(), phymir_state< X, Y, NP, NSTR >::p_wr_state(), and vary_input().
|
inline |
Definition at line 322 of file cpu.h.
References p_lgMPI.
Referenced by cdMain(), load_balance::finalize(), grid_do(), GridGatherInCloudy(), load_balance::init(), lgCheckMonitors(), main(), load_balance::next_job(), and optimize_phymir().
|
inline |
Definition at line 328 of file cpu.h.
References lgMaster(), and lgMPISingleRankMode().
Referenced by cdInit(), cdMain(), cdTalk(), gridXspec(), iter_end_check(), lgOptimize_do(), ParseCommands(), ParsePrint(), and SaveDo().

|
inline |
Definition at line 324 of file cpu.h.
References p_lgMPISingleRankMode.
Referenced by cdMain(), cdPrepareExit(), InitDefaultsPreparse(), lgMPI_talk(), and ParseOptimize().
|
inline |
|
inline |
Definition at line 291 of file cpu.h.
References set_signal_handlers(), and test_double.
Referenced by t_version::t_version().

|
inline |
|
inline |
Definition at line 321 of file cpu.h.
References n_avail_CPU.
Referenced by grid_do(), InitDefaultsPreparse(), main(), optimize_phymir(), phymir_state< X, Y, NP, NSTR >::p_execute_job(), ParseOptimize(), and prt_constants().
|
inline |
Definition at line 326 of file cpu.h.
References n_rank.
Referenced by cdMain(), phymir_state< X, Y, NP, NSTR >::p_execute_job(), and SaveGrid().
| void t_cpu_i::printDataPath | ( | ) | const |
Definition at line 516 of file cpu.cpp.
References t_cpu::i(), and ioQQQ.
Referenced by AbortErrorMessage(), host_name(), and ParsePrint().

|
inline |
|
inline |
| void t_cpu_i::set_signal_handlers | ( | ) |
Definition at line 469 of file cpu.cpp.
References DEBUG_ENTRY.
Referenced by main(), and min_double().
|
inline |
Definition at line 300 of file cpu.h.
References signal_handler().
Referenced by cdMain(), and ParseSet().

|
staticprivate |
Definition at line 504 of file cpu.cpp.
References cpu, enable_traps(), and t_cpu::i().
Referenced by setAssertAbort().

|
friend |
Definition at line 617 of file cpu.cpp.
Referenced by chExitStatus().
|
friend |
|
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
Definition at line 674 of file cpu.cpp.
Referenced by chExitStatus().
|
private |
the default search path to the data files
Definition at line 273 of file cpu.h.
Referenced by getPathList().
|
private |
| union { ... } t_cpu_i::endian |
alias an int32 to 4 chars to test if we are on a big-endian or little-endian CPU the array cpu.endian.c[] is initialized in cdInit()
Referenced by big_endian(), and little_endian().
|
private |
|
private |
the name of the computer, not detected on all systems
Definition at line 271 of file cpu.h.
Referenced by host_name().
|
private |
|
private |
|
private |
Definition at line 276 of file cpu.h.
Referenced by open_data().
|
private |
the directory separator character for this OS
Definition at line 275 of file cpu.h.
Referenced by chDirSeparator().
|
private |
should a failed assert raise SIGABRT so that we can catch it in a debugger?
Definition at line 257 of file cpu.h.
Referenced by lgAssertAbort().
|
private |
|
private |
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
Definition at line 267 of file cpu.h.
Referenced by lgMPISingleRankMode().
|
private |
Definition at line 242 of file cpu.h.
Referenced by min_double().
|
private |
Definition at line 241 of file cpu.h.
Referenced by min_float().
1.8.12