Skip to content

Commit d1f84b6

Browse files
rebleCompute-Runtime-Automation
authored andcommitted
Align kernel operation for submit graph in sycl
Signed-off-by: Pablo Reble <[email protected]>
1 parent a743626 commit d1f84b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/benchmarks/graph_api_benchmark/implementations/sycl/submit_graph_sycl.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ static TestResult run([[maybe_unused]] const SubmitGraphArguments &arguments, St
5151
// Create kernel
5252
int kernelOperationsCount = static_cast<int>(arguments.kernelExecutionTime);
5353
[[maybe_unused]] const auto eat_time = [=]([[maybe_unused]] auto u) {
54-
volatile int value = 1u;
55-
for (int i = 0; i < kernelOperationsCount; i++) {
56-
value /= 2;
57-
value *= 2;
54+
if (kernelOperationsCount > 4) {
55+
volatile int value = kernelOperationsCount;
56+
while (--value)
57+
;
5858
}
5959
};
6060

0 commit comments

Comments
 (0)