Skip to content

Commit

Permalink
Param size changes and turbo addition
Browse files Browse the repository at this point in the history
Signed-off-by: Akshay Tondak <[email protected]>
  • Loading branch information
Akshay Tondak authored and Akshay Tondak committed Dec 10, 2024
1 parent 843caaf commit 034ee33
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
#include "TestValidateUtilities.h"
namespace xq = xrt_core::query;

static constexpr size_t param_size = 0x100;
static constexpr size_t inter_size = 0x100;
static constexpr size_t mc_size = 0x100;

// Constructor for BO_set
// BO_set is a collection of all the buffer objects so that the operations on all buffers can be done from a single object
// Parameters:
Expand All @@ -24,10 +28,10 @@ namespace xq = xrt_core::query;
BO_set::BO_set(const xrt::device& device, const xrt::kernel& kernel, const std::string& dpu_instr, size_t buffer_size)
: buffer_size(buffer_size),
bo_ifm (device, buffer_size, XRT_BO_FLAGS_HOST_ONLY, kernel.group_id(1)),
bo_param (device, buffer_size, XRT_BO_FLAGS_HOST_ONLY, kernel.group_id(2)),
bo_param (device, param_size, XRT_BO_FLAGS_HOST_ONLY, kernel.group_id(2)),
bo_ofm (device, buffer_size, XRT_BO_FLAGS_HOST_ONLY, kernel.group_id(3)),
bo_inter (device, buffer_size, XRT_BO_FLAGS_HOST_ONLY, kernel.group_id(4)),
bo_mc (device, buffer_size, XRT_BO_FLAGS_HOST_ONLY, kernel.group_id(7))
bo_inter (device, inter_size, XRT_BO_FLAGS_HOST_ONLY, kernel.group_id(4)),
bo_mc (device, mc_size, XRT_BO_FLAGS_HOST_ONLY, kernel.group_id(7))
{
if (dpu_instr.empty()) {
// Create a no-op instruction if no instruction file is provided
Expand Down
2 changes: 1 addition & 1 deletion src/runtime_src/core/tools/xbutil2/OO_Performance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ OO_Performance::OO_Performance( const std::string &_longName, bool _isHidden )
;

m_optionsHidden.add_options()
("mode", boost::program_options::value<decltype(m_action)>(&m_action)->required(), "Action to perform: default, powersaver, balanced, performance") //to-do: add turbo mode back to help!
("mode", boost::program_options::value<decltype(m_action)>(&m_action)->required(), "Action to perform: default, powersaver, balanced, performance, turbo")
;

m_positionalOptions.
Expand Down

0 comments on commit 034ee33

Please sign in to comment.