Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit 7c600d3

Browse files
authored
Fix benchmarks to wait on correct event (#477)
Wait on the relevant event or vector of events for the operator rather than waiting for all the events in the queue.
1 parent dd1c388 commit 7c600d3

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

benchmark/portblas/blas2/ger.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t m,
105105
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
106106
auto event = _ger(sb_handle, m, n, alpha, v_x_gpu, incX, v_y_gpu, incY,
107107
m_a_gpu, lda);
108-
sb_handle.wait();
108+
sb_handle.wait(event);
109109
return event;
110110
};
111111

benchmark/portblas/blas2/symv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
105105
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
106106
auto event = _symv(sb_handle, *uplo_str, n, alpha, m_a_gpu, lda, v_x_gpu,
107107
incX, beta, v_y_gpu, incY);
108-
sb_handle.wait();
108+
sb_handle.wait(event);
109109
return event;
110110
};
111111

benchmark/portblas/blas2/syr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
9696
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
9797
auto event =
9898
_syr(sb_handle, *uplo_str, n, alpha, v_x_gpu, incX, m_a_gpu, lda);
99-
sb_handle.wait();
99+
sb_handle.wait(event);
100100
return event;
101101
};
102102

benchmark/portblas/blas2/syr2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
106106
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
107107
auto event = _syr2(sb_handle, *uplo_str, n, alpha, v_x_gpu, incX, v_y_gpu,
108108
incY, m_a_gpu, lda);
109-
sb_handle.wait();
109+
sb_handle.wait(event);
110110
return event;
111111
};
112112

benchmark/portblas/blas2/trmv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
9999
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
100100
auto event = _trmv(sb_handle, *uplo_str, *t_str, *diag_str, n, m_a_gpu, lda,
101101
v_x_gpu, incX);
102-
sb_handle.wait();
102+
sb_handle.wait(event);
103103
return event;
104104
};
105105

0 commit comments

Comments
 (0)