|
MLIR-AIE
|
Functions | |
| void | check_arg_file_exists (const cxxopts::ParseResult &result, std::string name) |
| void | add_default_options (cxxopts::Options &options) |
| void | parse_options (int argc, const char *argv[], cxxopts::Options &options, cxxopts::ParseResult &result) |
| 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 | ( | cxxopts::Options & | options | ) |
Definition at line 32 of file test_utils.cpp.
References cxxopts::Options::add_options().
Referenced by parse_args().
| void test_utils::check_arg_file_exists | ( | const cxxopts::ParseResult & | result, |
| std::string | name | ||
| ) |
Definition at line 21 of file test_utils.cpp.
References cxxopts::ParseResult::count().
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 177 of file test_utils.cpp.
| void test_utils::parse_options | ( | int | argc, |
| const char * | argv[], | ||
| cxxopts::Options & | options, | ||
| cxxopts::ParseResult & | result | ||
| ) |
Definition at line 53 of file test_utils.cpp.
References check_arg_file_exists(), cxxopts::ParseResult::count(), cxxopts::Options::help(), cxxopts::Options::parse(), and cxxopts::exceptions::exception::what().
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 69 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 198 of file test_utils.cpp.
Referenced by setup_and_run_aie(), and setup_and_run_aie().