Skip to content

Commit

Permalink
build error fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
aktondak committed Feb 3, 2025
1 parent 64dd641 commit 440d721
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/runtime_src/core/common/query_requests.h
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ struct xrt_smi_lists : request
static const char* name() { return "xrt_smi_lists"; }

virtual std::any
get(const device*) const override = 0;
get(const device*, const std::any& req_type) const override = 0;

// formatting of individual items for the vector
static std::string
Expand Down
6 changes: 3 additions & 3 deletions src/runtime_src/core/edge/user/device_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -708,15 +708,15 @@ struct xrt_smi_lists
using result_type = std::any;

static result_type
user(const xrt_core::device* /*device*/, xrt_key_type key)
get(const xrt_core::device* /*device*/, key_type key)
{
throw xrt_core::query::no_such_key(key, "Not implemented");
}

static result_type
user(const xrt_core::device* /*device*/, xrt_key_type key, const std::any& reqType)
get(const xrt_core::device* /*device*/, key_type key, const std::any& reqType)
{
if (key != xrt_key_type::xrt_smi_lists)
if (key != key_type::xrt_smi_lists)
throw xrt_core::query::no_such_key(key, "Not implemented");

const auto xrt_smi_lists_type = std::any_cast<xrt_core::query::xrt_smi_lists::type>(reqType);
Expand Down
6 changes: 6 additions & 0 deletions src/runtime_src/core/edge/user/smi.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,10 @@ class smi_edge : public xrt_core::smi::smi_base {

/* This API can be device specific since this is used by the shim*/
std::string get_smi_config();

const xrt_core::smi::tuple_vector&
get_validate_tests();

const xrt_core::smi::tuple_vector&
get_examine_reports();
} // namespace shim_edge::smi
6 changes: 3 additions & 3 deletions src/runtime_src/core/pcie/linux/device_linux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -936,15 +936,15 @@ struct xrt_smi_lists
using result_type = std::any;

static result_type
user(const xrt_core::device* /*device*/, xrt_key_type key)
get(const xrt_core::device* /*device*/, key_type key)
{
throw xrt_core::query::no_such_key(key, "Not implemented");
}

static result_type
user(const xrt_core::device* /*device*/, xrt_key_type key, const std::any& reqType)
get(const xrt_core::device* /*device*/, key_type key, const std::any& reqType)
{
if (key != xrt_key_type::xrt_smi_lists)
if (key != key_type::xrt_smi_lists)
throw xrt_core::query::no_such_key(key, "Not implemented");

const auto xrt_smi_lists_type = std::any_cast<xrt_core::query::xrt_smi_lists::type>(reqType);
Expand Down
4 changes: 2 additions & 2 deletions src/runtime_src/core/pcie/linux/smi.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ class smi_pcie : public xrt_core::smi::smi_base {
std::string
get_smi_config();

std::vector<std::string>
const xrt_core::smi::tuple_vector&
get_validate_tests();

std::vector<std::string>
const xrt_core::smi::tuple_vector&
get_examine_reports();
} // namespace shim_pcie::smi
2 changes: 1 addition & 1 deletion src/runtime_src/core/tools/xbutil2/SubCmdValidate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -727,5 +727,5 @@ SubCmdValidate::getTestList(const xrt_core::smi::tuple_vector& tests) const
}
}

return std::move(matchedTests);
return matchedTests;
}

0 comments on commit 440d721

Please sign in to comment.