IOR
|
Go to the source code of this file.
Macros | |
#define | MAX_PATHLEN PATH_MAX |
#define | ERROR_LOCATION __func__ |
Functions | |
void * | safeMalloc (uint64_t size) |
void | set_o_direct_flag (int *fd) |
void | update_write_memory_pattern (uint64_t item, char *buf, size_t bytes, int buff_offset, int rank) |
void | generate_memory_pattern (char *buf, size_t bytes, int buff_offset, int rank) |
int | verify_memory_pattern (int item, char *buffer, size_t bytes, int buff_offset, int pretendRank) |
char * | CurrentTimeString (void) |
int | Regex (char *, char *) |
void | ShowFileSystemSize (char *filename, const struct ior_aiori *backend, void *backend_options) |
void | DumpBuffer (void *, size_t) |
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, MPI_Comm com) |
void | StoreStoneWallingIterations (char *const filename, int64_t count) |
void | init_clock (MPI_Comm com) |
double | GetTimeStamp (void) |
char * | PrintTimestamp () |
unsigned long | GetProcessorAndCore (int *chip, int *core) |
void * | aligned_buffer_alloc (size_t size, ior_memory_flags type) |
void | aligned_buffer_free (void *buf, ior_memory_flags type) |
Variables | |
int | rank |
int | rankOffset |
int | verbose |
MPI_Comm | testComm |
FILE * | out_resultfile |
enum OutputFormat_t | outputFormat |
#define ERROR_LOCATION __func__ |
Definition at line 32 of file utilities.h.
#define MAX_PATHLEN PATH_MAX |
Definition at line 31 of file utilities.h.
Referenced by collective_create_remove(), collective_helper(), CompareData(), compute_histogram(), create_file(), create_remove_directory_tree(), create_remove_dirs(), create_remove_items(), directory_test(), end_phase(), file_test(), file_test_create(), GetNumTasksOnNode0(), GetTestFileName(), mdtest_read(), mdtest_run(), mdtest_stat(), QueryNodeMapping(), remove_file(), rename_dir_test(), run_benchmark(), run_cleanup(), run_precreate(), show_file_system_size(), and ShowTestStart().
void* aligned_buffer_alloc | ( | size_t | size, |
ior_memory_flags | type | ||
) |
Definition at line 924 of file utilities.c.
References ERR, IOR_MEMORY_TYPE_GPU_DEVICE_ONLY, IOR_MEMORY_TYPE_GPU_MANAGED, and safeMalloc().
Referenced by mdtest_read(), mdtest_run(), run_benchmark(), run_precreate(), WriteOrRead(), and XferBuffersSetup().
void aligned_buffer_free | ( | void * | buf, |
ior_memory_flags | type | ||
) |
Definition at line 973 of file utilities.c.
Referenced by mdtest_read(), mdtest_run(), run_benchmark(), run_precreate(), WriteOrRead(), and XferBuffersFree().
char* CurrentTimeString | ( | void | ) |
Definition at line 241 of file utilities.c.
Referenced by PrintHeader(), PrintTestEnds(), ShowTestStart(), and TestIoSys().
void DelaySecs | ( | int | delay | ) |
Definition at line 828 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 266 of file utilities.c.
References IOR_format, and out_logfile.
void generate_memory_pattern | ( | char * | buf, |
size_t | bytes, | ||
int | buff_offset, | ||
int | rank | ||
) |
Definition at line 86 of file utilities.c.
Referenced by mdtest_run(), run_benchmark(), and run_precreate().
int GetNumNodes | ( | MPI_Comm | ) |
Definition at line 331 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 368 of file utilities.c.
References MPI_CHECK, and numTasks.
Referenced by GetNumNodes(), and InitTests().
int GetNumTasksOnNode0 | ( | MPI_Comm | ) |
Definition at line 406 of file utilities.c.
References FAIL, MAX_PATHLEN, MPI_CHECK, out_logfile, rank, and verbose.
Referenced by GetNumNodes(), InitTests(), and mdtest_run().
unsigned long GetProcessorAndCore | ( | int * | chip, |
int * | core | ||
) |
Definition at line 911 of file utilities.c.
Referenced by GetTestFileName(), and HumanReadable().
double GetTimeStamp | ( | void | ) |
Definition at line 731 of file utilities.c.
Referenced by add_timed_result(), directory_test(), file_test(), md_workbench_run(), mdtest_iteration(), mdw_wait(), offset_timers(), run_benchmark(), run_cleanup(), run_precreate(), test_time_elapsed(), TestIoSys(), TimeDeviation(), updateStoneWallIterations(), and WriteOrRead().
char* HumanReadable | ( | IOR_offset_t | value, |
int | base | ||
) |
Definition at line 841 of file utilities.c.
References BASE_TEN, BASE_TWO, GetProcessorAndCore(), GIBIBYTE, GIGABYTE, MAX_STR, MEBIBYTE, MEGABYTE, and NULL.
Referenced by ShowSetup().
void init_clock | ( | MPI_Comm | com | ) |
Definition at line 772 of file utilities.c.
Referenced by InitTests(), md_workbench_run(), and mdtest_run().
size_t NodeMemoryStringToBytes | ( | char * | size_str | ) |
Definition at line 146 of file utilities.c.
References ERR, rc, and string_to_bytes().
Referenced by DecodeDirective(), and updateParsedOptions().
char* PrintTimestamp | ( | ) |
Definition at line 776 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 287 of file utilities.c.
References FAIL, MAX_PATHLEN, out_logfile, and rank.
Referenced by InitTests(), and mdtest_run().
int64_t ReadStoneWallingIterations | ( | char *const | filename, |
MPI_Comm | com | ||
) |
Definition at line 791 of file utilities.c.
Referenced by file_test(), and TestIoSys().
int Regex | ( | char * | , |
char * | |||
) |
Definition at line 688 of file utilities.c.
References ERR.
void* safeMalloc | ( | uint64_t | size | ) |
Definition at line 125 of file utilities.c.
Referenced by aligned_buffer_alloc(), AllocResults(), createGlobalOptions(), GetOffsetArrayRandom(), mdtest_run(), parse_dirpath(), POSIX_Create(), POSIX_Open(), StoreRankInformation(), and summarize_results().
void set_o_direct_flag | ( | int * | fd | ) |
Definition at line 217 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 511 of file utilities.c.
References environ, ERR, ExtractHint(), MAX_STR, MPI_CHECK, NULL, and WARN.
Referenced by HDF5_Open(), MPIIO_Access(), MPIIO_GetFileSize(), MPIIO_Open(), NCMPI_Create(), and NCMPI_Open().
void ShowFileSystemSize | ( | char * | filename, |
const struct ior_aiori * | backend, | ||
void * | backend_options | ||
) |
Definition at line 625 of file utilities.c.
References ior_aiori_statfs::f_bfree, ior_aiori_statfs::f_blocks, ior_aiori_statfs::f_bsize, ior_aiori_statfs::f_ffree, ior_aiori_statfs::f_files, out_logfile, out_resultfile, OUTPUT_CSV, OUTPUT_DEFAULT, OUTPUT_JSON, outputFormat, ior_aiori::statfs, and WARN.
Referenced by mdtest_run(), and ShowTestStart().
void ShowHints | ( | MPI_Info * | ) |
Definition at line 572 of file utilities.c.
References MPI_CHECK, and out_logfile.
Referenced by HDF5_Open(), MPIIO_Open(), NCMPI_Create(), and NCMPI_Open().
void StoreStoneWallingIterations | ( | char *const | filename, |
int64_t | count | ||
) |
Definition at line 813 of file utilities.c.
References FAIL, NULL, and rank.
Referenced by file_test_create(), and ShowTestEnd().
void update_write_memory_pattern | ( | uint64_t | item, |
char * | buf, | ||
size_t | bytes, | ||
int | buff_offset, | ||
int | rank | ||
) |
Definition at line 78 of file utilities.c.
Referenced by create_file(), run_benchmark(), and run_precreate().
void updateParsedOptions | ( | IOR_param_t * | options, |
options_all_t * | global_options | ||
) |
Definition at line 178 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, 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 ParseCommandLine().
int verify_memory_pattern | ( | int | item, |
char * | buffer, | ||
size_t | bytes, | ||
int | buff_offset, | ||
int | pretendRank | ||
) |
Definition at line 100 of file utilities.c.
Referenced by create_file(), mdtest_read(), and run_benchmark().
FILE* out_resultfile |
Definition at line 73 of file utilities.c.
Referenced by DecodeDirective(), ior_main(), ior_run(), mdtest_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 74 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(), PrintTestEnds(), ShowFileSystemSize(), ShowSetup(), and ShowTestStart().
int rank |
Definition at line 68 of file utilities.c.
Referenced by DelaySecs(), GetNumNodes(), GetNumTasksOnNode0(), PrintTimestamp(), QueryNodeMapping(), ReadStoneWallingIterations(), and StoreStoneWallingIterations().
int rankOffset |
Definition at line 69 of file utilities.c.
MPI_Comm testComm |
Definition at line 71 of file utilities.c.
Referenced by FailMessage().
int verbose |
Definition at line 70 of file utilities.c.
Referenced by DelaySecs(), GetNumTasksOnNode0(), and PrintTimestamp().