MLIR-AIE
|
Functions | |
void | check_arg_file_exists (po::variables_map &vm_in, std::string name) |
void | add_default_options (po::options_description &desc) |
void | parse_options (int argc, const char *argv[], po::options_description &desc, po::variables_map &vm) |
std::vector< uint32_t > | load_instr_sequence (std::string instr_path) |
std::vector< uint32_t > | load_instr_binary (std::string instr_path) |
void | init_xrt_load_kernel (xrt::device &device, xrt::kernel &kernel, int verbosity, std::string xclbinFileName, std::string kernelNameInXclbin) |
bool | nearly_equal (float a, float b, float epsilon=128 *FLT_EPSILON, float abs_th=FLT_MIN) |
template<typename T > | |
void | print_matrix (const std::vector< T > matrix, int n_cols, int n_printable_rows=10, int n_printable_cols=10, std::ostream &ostream=std::cout, const char col_sep[]=" ", const char elide_sym[]=" ... ", int w=-1) |
void | write_out_trace (char *traceOutPtr, size_t trace_size, std::string path) |
void test_utils::add_default_options | ( | po::options_description & | desc | ) |
Definition at line 33 of file test_utils.cpp.
Referenced by parse_args().
void test_utils::check_arg_file_exists | ( | po::variables_map & | vm_in, |
std::string | name | ||
) |
Definition at line 19 of file test_utils.cpp.
Referenced by parse_options().
void test_utils::init_xrt_load_kernel | ( | xrt::device & | device, |
xrt::kernel & | kernel, | ||
int | verbosity, | ||
std::string | xclbinFileName, | ||
std::string | kernelNameInXclbin | ||
) |
Definition at line 124 of file test_utils.cpp.
Referenced by setup_and_run_aie(), and setup_and_run_aie().
std::vector< uint32_t > test_utils::load_instr_binary | ( | std::string | instr_path | ) |
Definition at line 96 of file test_utils.cpp.
Referenced by setup_and_run_aie(), and setup_and_run_aie().
std::vector< uint32_t > test_utils::load_instr_sequence | ( | std::string | instr_path | ) |
Definition at line 81 of file test_utils.cpp.
bool test_utils::nearly_equal | ( | float | a, |
float | b, | ||
float | epsilon = 128 * FLT_EPSILON , |
||
float | abs_th = FLT_MIN |
||
) |
Definition at line 178 of file test_utils.cpp.
void test_utils::parse_options | ( | int | argc, |
const char * | argv[], | ||
po::options_description & | desc, | ||
po::variables_map & | vm | ||
) |
Definition at line 52 of file test_utils.cpp.
References check_arg_file_exists().
Referenced by parse_args().
void test_utils::print_matrix | ( | const std::vector< T > | matrix, |
int | n_cols, | ||
int | n_printable_rows = 10 , |
||
int | n_printable_cols = 10 , |
||
std::ostream & | ostream = std::cout , |
||
const char | col_sep[] = " " , |
||
const char | elide_sym[] = " ... " , |
||
int | w = -1 |
||
) |
Definition at line 70 of file test_utils.h.
References print_row.
void test_utils::write_out_trace | ( | char * | traceOutPtr, |
size_t | trace_size, | ||
std::string | path | ||
) |
Definition at line 199 of file test_utils.cpp.
Referenced by setup_and_run_aie(), and setup_and_run_aie().