IOR
|
Go to the source code of this file.
Macros | |
#define | MAX_PATHLEN PATH_MAX |
#define | ERROR_LOCATION __LINE__ |
#define | FAIL(...) FailMessage(rank, ERROR_LOCATION, __VA_ARGS__) |
Functions | |
void | FailMessage (int rank, const char *location, char *format,...) |
void * | safeMalloc (uint64_t size) |
void | set_o_direct_flag (int *fd) |
char * | CurrentTimeString (void) |
int | Regex (char *, char *) |
void | ShowFileSystemSize (char *) |
void | DumpBuffer (void *, size_t) |
void | SeedRandGen (MPI_Comm) |
void | SetHints (MPI_Info *, char *) |
void | ShowHints (MPI_Info *) |
char * | HumanReadable (IOR_offset_t value, int base) |
int | QueryNodeMapping (MPI_Comm comm, int print_nodemap) |
int | GetNumNodes (MPI_Comm) |
int | GetNumTasks (MPI_Comm) |
int | GetNumTasksOnNode0 (MPI_Comm) |
void | DelaySecs (int delay) |
void | updateParsedOptions (IOR_param_t *options, options_all_t *global_options) |
size_t | NodeMemoryStringToBytes (char *size_str) |
int64_t | ReadStoneWallingIterations (char *const filename) |
void | StoreStoneWallingIterations (char *const filename, int64_t count) |
void | init_clock (void) |
double | GetTimeStamp (void) |
char * | PrintTimestamp () |
Variables | |
int | rank |
int | rankOffset |
int | verbose |
MPI_Comm | testComm |
MPI_Comm | mpi_comm_world |
FILE * | out_logfile |
FILE * | out_resultfile |
enum OutputFormat_t | outputFormat |
double | wall_clock_deviation |
double | wall_clock_delta |
#define ERROR_LOCATION __LINE__ |
Definition at line 39 of file utilities.h.
#define FAIL | ( | ... | ) | FailMessage(rank, ERROR_LOCATION, __VA_ARGS__) |
Definition at line 42 of file utilities.h.
Referenced by collective_helper(), create_file(), create_remove_directory_tree(), create_remove_dirs(), DecodeDirective(), GetNumTasksOnNode0(), IME_GetFileSize(), mdtest_iteration(), mdtest_read(), mdtest_run(), mdtest_stat(), parse_dirpath(), phase_end(), POSIX_Sync(), QueryNodeMapping(), show_file_system_size(), StoreStoneWallingIterations(), and valid_tests().
#define MAX_PATHLEN PATH_MAX |
Definition at line 33 of file utilities.h.
Referenced by collective_create_remove(), collective_helper(), CompareBuffers(), create_file(), create_remove_directory_tree(), create_remove_dirs(), create_remove_items(), directory_test(), display_freespace(), file_test(), GetNumTasksOnNode0(), GetTestFileName(), mdtest_read(), mdtest_run(), mdtest_stat(), QueryNodeMapping(), remove_file(), show_file_system_size(), and summarize_results().
char* CurrentTimeString | ( | void | ) |
Definition at line 184 of file utilities.c.
Referenced by PrintHeader(), PrintTestEnds(), ShowTestStart(), and TestIoSys().
void DelaySecs | ( | int | delay | ) |
Definition at line 832 of file utilities.c.
References out_logfile, rank, verbose, and VERBOSE_1.
Referenced by mdtest_iteration(), and TestIoSys().
void DumpBuffer | ( | void * | , |
size_t | |||
) |
Definition at line 209 of file utilities.c.
References IOR_format, and out_logfile.
void FailMessage | ( | int | rank, |
const char * | location, | ||
char * | format, | ||
... | |||
) |
Definition at line 77 of file utilities.c.
References errno, out_logfile, PrintTimestamp(), and testComm.
int GetNumNodes | ( | MPI_Comm | ) |
Definition at line 274 of file utilities.c.
References GetNumTasks(), GetNumTasksOnNode0(), MPI_CHECK, numTasks, and rank.
Referenced by InitTests(), and mdtest_run().
int GetNumTasks | ( | MPI_Comm | ) |
Definition at line 311 of file utilities.c.
References MPI_CHECK, and numTasks.
Referenced by GetNumNodes(), and InitTests().
int GetNumTasksOnNode0 | ( | MPI_Comm | ) |
Definition at line 349 of file utilities.c.
References FAIL, hostname, MAX_PATHLEN, MPI_CHECK, out_logfile, rank, size, and verbose.
Referenced by GetNumNodes(), InitTests(), and mdtest_run().
double GetTimeStamp | ( | void | ) |
Definition at line 726 of file utilities.c.
References ERR, NULL, and wall_clock_delta.
Referenced by directory_test(), file_test(), mdtest_iteration(), offset_timers(), test_time_elapsed(), TestIoSys(), TimeDeviation(), updateStoneWallIterations(), and WriteOrRead().
char* HumanReadable | ( | IOR_offset_t | value, |
int | base | ||
) |
Definition at line 845 of file utilities.c.
References BASE_TEN, BASE_TWO, GIBIBYTE, GIGABYTE, MAX_STR, MEBIBYTE, and MEGABYTE.
Referenced by ShowSetup().
void init_clock | ( | void | ) |
Definition at line 775 of file utilities.c.
References TimeDeviation(), and wall_clock_deviation.
Referenced by InitTests(), and mdtest_run().
size_t NodeMemoryStringToBytes | ( | char * | size_str | ) |
Definition at line 89 of file utilities.c.
References ERR, rc, and string_to_bytes().
Referenced by DecodeDirective(), and updateParsedOptions().
char* PrintTimestamp | ( | ) |
Definition at line 780 of file utilities.c.
References NULL, out_logfile, rank, and verbose.
Referenced by FailMessage(), and mdtest_run().
int QueryNodeMapping | ( | MPI_Comm | comm, |
int | print_nodemap | ||
) |
Definition at line 230 of file utilities.c.
References FAIL, MAX_PATHLEN, out_logfile, and rank.
Referenced by InitTests(), and mdtest_run().
int64_t ReadStoneWallingIterations | ( | char *const | filename | ) |
Definition at line 795 of file utilities.c.
References mpi_comm_world, NULL, and rank.
Referenced by file_test(), and TestIoSys().
int Regex | ( | char * | , |
char * | |||
) |
Definition at line 658 of file utilities.c.
Referenced by ShowTestStart().
void* safeMalloc | ( | uint64_t | size | ) |
Definition at line 68 of file utilities.c.
Referenced by AllocResults().
void SeedRandGen | ( | MPI_Comm | ) |
Definition at line 678 of file utilities.c.
References ERR, MPI_CHECK, NULL, and rank.
Referenced by GetOffsetArrayRandom(), and InitTests().
void set_o_direct_flag | ( | int * | fd | ) |
Definition at line 160 of file utilities.c.
References O_DIRECT, and WARN.
Referenced by IME_Open(), POSIX_Create(), and POSIX_Open().
void SetHints | ( | MPI_Info * | , |
char * | |||
) |
Definition at line 454 of file utilities.c.
References environ, ERR, ExtractHint(), MAX_STR, MPI_CHECK, NULL, and WARN.
Referenced by HDF5_Open(), MPIIO_Access(), MPIIO_GetFileSize(), NCMPI_Create(), and NCMPI_Open().
void ShowFileSystemSize | ( | char * | ) |
Definition at line 568 of file utilities.c.
References NULL, out_logfile, out_resultfile, OUTPUT_CSV, OUTPUT_DEFAULT, OUTPUT_JSON, outputFormat, PATH_MAX, and WARN.
Referenced by DisplayFreespace().
void ShowHints | ( | MPI_Info * | ) |
Definition at line 515 of file utilities.c.
References MPI_CHECK, and out_logfile.
Referenced by HDF5_Open(), NCMPI_Create(), and NCMPI_Open().
void StoreStoneWallingIterations | ( | char *const | filename, |
int64_t | count | ||
) |
Definition at line 817 of file utilities.c.
References FAIL, NULL, and rank.
Referenced by file_test(), and ShowTestEnd().
void updateParsedOptions | ( | IOR_param_t * | options, |
options_all_t * | global_options | ||
) |
Definition at line 121 of file utilities.c.
References aiori_select(), airoi_update_module_options(), IOR_param_t::api, IOR_param_t::apiVersion, backend, IOR_param_t::backend, IOR_param_t::backend_options, IOR_param_t::buffer_type, IOR_param_t::dataPacketType, ERR_SIMPLE, ior_aiori::get_version, incompressible, IOR_param_t::incompressibleSeed, IOR_param_t::memoryPerNode, IOR_param_t::memoryPerNodeStr, NodeMemoryStringToBytes(), NULL, offset, out_logfile, IOR_param_t::setTimeStampSignature, IOR_param_t::storeFileOffset, timestamp, and TRUE.
Referenced by mdtest_run(), and ParseCommandLine().
MPI_Comm mpi_comm_world |
Definition at line 61 of file utilities.c.
Referenced by file_hits_histogram(), init_IOR_Param_t(), InitTests(), ior_main(), ior_run(), mdtest_run(), ReadStoneWallingIterations(), TestIoSys(), and TimeDeviation().
FILE* out_logfile |
Definition at line 62 of file utilities.c.
Referenced by CheckFileSize(), CompareBuffers(), CountErrors(), create_remove_directory_tree(), DecodeDirective(), DelaySecs(), DisplayOutliers(), DUMMY_Close(), DUMMY_Create(), DUMMY_Delete(), DUMMY_Fsync(), DUMMY_GetFileSize(), DUMMY_Open(), DUMMY_Xfer(), DumpBuffer(), ExtractHint(), FailMessage(), file_hits_histogram(), file_test(), GetNumTasksOnNode0(), HogMemory(), InitTests(), ior_main(), ior_run(), mdtest_run(), ParseLine(), PrintHeader(), PrintTimestamp(), QueryNodeMapping(), RemoveFile(), ShowFileSystemSize(), ShowHints(), ShowSetup(), ShowTestEnd(), summarize_results(), TestIoSys(), updateParsedOptions(), VerboseMessage(), WriteOrRead(), and WriteTimes().
FILE* out_resultfile |
Definition at line 63 of file utilities.c.
Referenced by DecodeDirective(), ior_main(), ior_run(), PPDouble(), PrintArrayEnd(), PrintArrayNamedStart(), PrintArrayStart(), PrintEndSection(), PrintHeader(), PrintIndent(), PrintKeyVal(), PrintKeyValDouble(), PrintKeyValEnd(), PrintKeyValInt(), PrintKeyValStart(), PrintLongSummaryAllTests(), PrintLongSummaryHeader(), PrintLongSummaryOneOperation(), PrintNamedArrayStart(), PrintNamedSectionStart(), PrintNextToken(), PrintReducedResult(), PrintRemoveTiming(), PrintShortSummary(), PrintStartSection(), PrintTableHeader(), ShowFileSystemSize(), ShowSetup(), and ShowTestStart().
enum OutputFormat_t outputFormat |
Definition at line 64 of file utilities.c.
Referenced by DecodeDirective(), PrintArrayEnd(), PrintArrayNamedStart(), PrintArrayStart(), PrintEndSection(), PrintHeader(), PrintIndent(), PrintKeyVal(), PrintKeyValDouble(), PrintKeyValEnd(), PrintKeyValInt(), PrintKeyValStart(), PrintLongSummaryAllTests(), PrintLongSummaryHeader(), PrintLongSummaryOneOperation(), PrintNamedArrayStart(), PrintNamedSectionStart(), PrintNextToken(), PrintReducedResult(), PrintRemoveTiming(), PrintRepeatStart(), PrintShortSummary(), PrintStartSection(), PrintTableHeader(), ShowFileSystemSize(), and ShowTestStart().
int rank |
Definition at line 57 of file utilities.c.
Referenced by DelaySecs(), GetNumNodes(), GetNumTasksOnNode0(), PrintTimestamp(), QueryNodeMapping(), ReadStoneWallingIterations(), SeedRandGen(), and StoreStoneWallingIterations().
int rankOffset |
Definition at line 58 of file utilities.c.
MPI_Comm testComm |
Definition at line 60 of file utilities.c.
Referenced by FailMessage().
int verbose |
Definition at line 59 of file utilities.c.
Referenced by DelaySecs(), GetNumTasksOnNode0(), and PrintTimestamp().
double wall_clock_delta |
Definition at line 720 of file utilities.c.
Referenced by DisplayOutliers(), GetTimeStamp(), and TimeDeviation().
double wall_clock_deviation |
Definition at line 719 of file utilities.c.
Referenced by init_clock(), and PrintHeader().