Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AShivangi committed Sep 18, 2024
1 parent 47ee0ab commit 2d2b25b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/runtime_src/core/tools/common/tests/TestNPULatency.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ TestNPULatency::run(std::shared_ptr<xrt_core::device> dev)
break;
}

std::vector<xrt::bo> global_args;

// create specified a run and populate with arguments
auto run = xrt::run(testker);
for (const auto& arg : cu.get_args()) {
Expand All @@ -106,6 +108,7 @@ TestNPULatency::run(std::shared_ptr<xrt_core::device> dev)
bo = xrt::bo(working_dev, arg.get_size(), xrt::bo::flags::host_only, testker.group_id(arg_idx));

bo.sync(XCL_BO_SYNC_BO_TO_DEVICE);
global_args.push_back(bo);
run.set_arg(arg_idx, bo);
}
}
Expand Down

0 comments on commit 2d2b25b

Please sign in to comment.