#include <boost/program_options.hpp>
#include <cfloat>
#include <cmath>
#include <cstdint>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include "xrt/xrt_device.h"
#include "xrt/xrt_kernel.h"
Go to the source code of this file.
|
void | test_utils::check_arg_file_exists (po::variables_map &vm_in, std::string name) |
|
void | test_utils::add_default_options (po::options_description &desc) |
|
void | test_utils::parse_options (int argc, const char *argv[], po::options_description &desc, po::variables_map &vm) |
|
std::vector< uint32_t > | test_utils::load_instr_sequence (std::string instr_path) |
|
std::vector< uint32_t > | test_utils::load_instr_binary (std::string instr_path) |
|
void | test_utils::init_xrt_load_kernel (xrt::device &device, xrt::kernel &kernel, int verbosity, std::string xclbinFileName, std::string kernelNameInXclbin) |
|
bool | test_utils::nearly_equal (float a, float b, float epsilon=128 *FLT_EPSILON, float abs_th=FLT_MIN) |
|
template<typename T > |
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) |
|
void | test_utils::write_out_trace (char *traceOutPtr, size_t trace_size, std::string path) |
|
◆ print_row
#define print_row |
( |
|
what | ) |
|
Value: for (int col = 0; col < n_printable_cols / 2; col++) { \
ostream << std::right << std::setw(w) << (what); \
ostream << std::setw(0) << col_sep; \
} \
if (elide_cols) { \
ostream << std::setw(0) << elide_sym; \
} \
for (
int col = n_printable_cols / 2 + 1;
col < n_printable_cols;
col++) { \
ostream << std::right << std::setw(w) << (what); \
ostream << std::setw(0) << col_sep; \
}