10static const char xrt_build_version[] =
"2.20.0";
12static const char xrt_build_version_branch[] =
"master";
14static const char xrt_build_version_hash[] =
15 "6771f4d86fa616b8908d86d0999ee802074a32d8";
17static const char xrt_build_version_hash_date[] =
18 "Wed, 30 Apr 2025 16:34:04 -0700";
20static const char xrt_build_version_date_rfc[] =
21 "Thu, 01 May 2025 15:25:03 -0700";
23static const char xrt_build_version_date[] =
"2025-05-01 15:25:03";
25static const char xrt_modified_files[] =
"";
27#define XRT_DRIVER_VERSION "2.20.0,6771f4d86fa616b8908d86d0999ee802074a32d8"
29#define XRT_VERSION(major, minor) ((major << 16) + (minor))
30#define XRT_VERSION_CODE XRT_VERSION(2, 20)
31#define XRT_MAJOR(code) ((code >> 16))
32#define XRT_MINOR(code) (code - ((code >> 16) << 16))
34#define XRT_HEAD_COMMITS 8219
35#define XRT_BRANCH_COMMITS -1
41namespace xrt::version {
43inline void print(std::ostream &output) {
44 output <<
" XRT Build Version: " << xrt_build_version << std::endl;
45 output <<
" Build Version Branch: " << xrt_build_version_branch
47 output <<
" Build Version Hash: " << xrt_build_version_hash << std::endl;
48 output <<
" Build Version Hash Date: " << xrt_build_version_hash_date
50 output <<
" Build Version Date: " << xrt_build_version_date_rfc
53 std::string modified_files(xrt_modified_files);
54 if (modified_files.empty())
57 const std::string &delimiters =
",";
58 std::string::size_type last_pos = 0;
59 int running_index = 1;
60 while (last_pos < modified_files.length() + 1) {
61 if (running_index == 1)
62 output <<
" Current Modified Files: ";
66 output << running_index++ <<
") ";
68 auto pos = modified_files.find_first_of(delimiters, last_pos);
70 if (pos == std::string::npos)
71 pos = modified_files.length();
73 output << modified_files.substr(last_pos, pos - last_pos) << std::endl;