|
MLIR-AIE 1.4.5.dev
|
#include "cxxopts.hpp"#include "test_utils.h"#include "xrt/xrt_bo.h"#include "xrt/xrt_device.h"#include "xrt/xrt_hw_context.h"#include "xrt/xrt_kernel.h"#include <cstring>#include <fstream>#include <iostream>#include <sstream>#include <tuple>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| struct | args |
| struct | InBuf< T > |
| struct | OutBuf< T > |
Functions | |
| struct args | parse_args (int argc, const char *argv[]) |
| uint32_t | getParity (uint32_t n) |
| uint32_t | create_ctrl_pkt (int operation, int beats, int addr, int ctrl_pkt_read_id=28) |
| template<typename T> | |
| InBuf< T > | make_in (int volume, void(*init)(T *, int)) |
| template<typename T> | |
| OutBuf< T > | make_out (int volume, void(*init)(T *, int)) |
| template<typename Verify, typename TOut, typename... TIns> | |
| int | setup_and_run_aie (Verify verify_results, std::tuple< InBuf< TIns >... > inputs, OutBuf< TOut > output, struct args myargs, bool enable_ctrl_pkts=false, int num_trailing_params=0) |
| uint32_t create_ctrl_pkt | ( | int | operation, |
| int | beats, | ||
| int | addr, | ||
| int | ctrl_pkt_read_id = 28 ) |
Definition at line 74 of file xrt_test_wrapper.h.
References getParity().
Referenced by setup_and_run_aie().
| uint32_t getParity | ( | uint32_t | n | ) |
Definition at line 63 of file xrt_test_wrapper.h.
Referenced by create_ctrl_pkt().
| InBuf< T > make_in | ( | int | volume, |
| void(* | init )(T *, int) ) |
Definition at line 104 of file xrt_test_wrapper.h.
| OutBuf< T > make_out | ( | int | volume, |
| void(* | init )(T *, int) ) |
Definition at line 117 of file xrt_test_wrapper.h.
| struct args parse_args | ( | int | argc, |
| const char * | argv[] ) |
Definition at line 39 of file xrt_test_wrapper.h.
References test_utils::add_default_options(), args::do_verify, args::instr, args::kernel, args::n_iterations, args::n_warmup_iterations, parse_args(), test_utils::parse_options(), args::trace_file, args::trace_size, args::verbosity, and args::xclbin.
| int setup_and_run_aie | ( | Verify | verify_results, |
| std::tuple< InBuf< TIns >... > | inputs, | ||
| OutBuf< TOut > | output, | ||
| struct args | myargs, | ||
| bool | enable_ctrl_pkts = false, | ||
| int | num_trailing_params = 0 ) |
Definition at line 135 of file xrt_test_wrapper.h.
References create_ctrl_pkt(), args::do_verify, OutBuf< T >::init, test_utils::init_xrt_load_kernel(), args::instr, args::kernel, test_utils::load_instr_binary(), args::n_iterations, args::n_warmup_iterations, args::trace_file, args::trace_size, args::verbosity, OutBuf< T >::volume, test_utils::write_out_trace(), and args::xclbin.