Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions src/runtime_src/core/include/xrt/xrt_hw_context.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,13 @@ class hw_context : public detail::pimpl<hw_context_impl>
XRT_API_EXPORT
hw_context(const xrt::device& device, const cfg_param_type& cfg_param, access_mode mode);

/**
* hw_context() - Constructor for default shared access mode
*/
hw_context(const xrt::device& device, const cfg_param_type& cfg_param)
: hw_context{device, cfg_param, access_mode::shared}
{}

/**
* hw_context() - Constructor with Experimental configuration type and access control
*
Expand All @@ -124,6 +131,13 @@ class hw_context : public detail::pimpl<hw_context_impl>
hw_context(const xrt::device& device, const cfg_type& cfg, access_mode mode);

/**
* hw_context() - Constructor for default shared access mode
*/
hw_context(const xrt::device& device, const cfg_type& cfg)
: hw_context{device, cfg, access_mode::shared}
{}

/**
* hw_context() - Constructor with Elf file
*
* @param device
Expand All @@ -143,6 +157,13 @@ class hw_context : public detail::pimpl<hw_context_impl>
hw_context(const xrt::device& device, const xrt::elf& elf,
const cfg_param_type& cfg_param, access_mode mode);

/**
* hw_context() - Constructor for default shared access mode
*/
hw_context(const xrt::device& device, const xrt::elf& elf, const cfg_param_type& cfg_param)
: hw_context{device, elf, cfg_param, access_mode::shared}
{}

/**
* hw_context() - Constructor with Elf file and Experimental configuration type
*
Expand All @@ -162,6 +183,12 @@ class hw_context : public detail::pimpl<hw_context_impl>
hw_context(const xrt::device& device, const xrt::elf& elf,
const cfg_type& cfg, access_mode mode);

/**
* hw_context() - Constructor for default shared access mode
*/
hw_context(const xrt::device& device, const xrt::elf& elf, const cfg_type& cfg)
: hw_context{device, elf, cfg, access_mode::shared}
{}

/**
* hw_context() - Constructor with Elf file with implied qos and mode
Expand Down
Loading