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

Commit 58a2c0d

Browse files
authored
First step to update to SYCL2020 (#523)
* Update namespace to sycl2020 Update included headers to sycl2020 standard * Update device default selector to SYCL2020 * Remove SYCL_VERSION check Removing all pragma that checks that sycl version used by compiler is appropriate * Update access::mode to access_mode * Update ::target to new namespace and target
1 parent b2b084c commit 58a2c0d

File tree

128 files changed

+1016
-1127
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+1016
-1127
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,11 @@ reference specification.
178178

179179
All operations take as their first argument a reference to the SB_Handle, a
180180
`blas::SB_Handle` created with a `sycl::queue`. The last argument for all operators
181-
is a vector of dependencies of type `cl::sycl::event` (empty by default). The return value
181+
is a vector of dependencies of type `sycl::event` (empty by default). The return value
182182
is usually an array of SYCL events (except for some operations that can return a scalar or
183183
a tuple). The containers for the vectors and matrices (and scalars written by
184184
the BLAS operations) can either be `raw usm pointers` or `iterator buffers` that can be
185-
created with a call to `cl::sycl::malloc_device` or `make_sycl_iterator_buffer` respectively.
185+
created with a call to `sycl::malloc_device` or `make_sycl_iterator_buffer` respectively.
186186

187187
The USM support in portBLAS is limited to `device allocated` memory only and we don't support
188188
`shared` or `host` allocations with USM.

benchmark/cublas/blas1/asum.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ void run(benchmark::State& state, cublasHandle_t* cuda_handle_ptr, index_t size,
5252

5353
// Create data
5454
std::vector<scalar_t> v1 = blas_benchmark::utils::random_data<scalar_t>(size);
55-
// We need to guarantee that cl::sycl::half can hold the sum
55+
// We need to guarantee that sycl::half can hold the sum
5656
// of x_v without overflow by making sum(x_v) to be 1.0
5757
std::transform(std::begin(v1), std::end(v1), std::begin(v1),
5858
[=](scalar_t x) { return x / v1.size(); });

benchmark/cublas/blas1/dot.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void run(benchmark::State& state, cublasHandle_t* cuda_handle_ptr, index_t size,
5454
std::vector<scalar_t> v1 = blas_benchmark::utils::random_data<scalar_t>(size);
5555
std::vector<scalar_t> v2 = blas_benchmark::utils::random_data<scalar_t>(size);
5656

57-
// Make sure cl::sycl::half can hold the result of the dot product
57+
// Make sure sycl::half can hold the result of the dot product
5858
std::transform(std::begin(v1), std::end(v1), std::begin(v1),
5959
[=](scalar_t x) { return x / v1.size(); });
6060

benchmark/cublas/blas1/nrm2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void run(benchmark::State& state, cublasHandle_t* cuda_handle_ptr, index_t size,
5454
// Create data
5555
std::vector<scalar_t> v1 = blas_benchmark::utils::random_data<scalar_t>(size);
5656

57-
// We need to guarantee that cl::sycl::half can hold the norm of the vector
57+
// We need to guarantee that sycl::half can hold the norm of the vector
5858
std::transform(std::begin(v1), std::end(v1), std::begin(v1),
5959
[=](scalar_t x) { return x / v1.size(); });
6060

benchmark/cublas/blas3/gemm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static inline void cublas_routine(args_t&&... args) {
3434
CUBLAS_CHECK(cublasSgemm(std::forward<args_t>(args)...));
3535
} else if constexpr (std::is_same_v<scalar_t, double>) {
3636
CUBLAS_CHECK(cublasDgemm(std::forward<args_t>(args)...));
37-
} else if constexpr (std::is_same_v<scalar_t, cl::sycl::half>) {
37+
} else if constexpr (std::is_same_v<scalar_t, sycl::half>) {
3838
CUBLAS_CHECK(cublasHgemm(std::forward<args_t>(args)...));
3939
}
4040
return;

benchmark/cublas/blas3/gemm_batched.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static inline void cublas_routine(args_t&&... args) {
3434
CUBLAS_CHECK(cublasSgemmBatched(std::forward<args_t>(args)...));
3535
} else if constexpr (std::is_same_v<scalar_t, double>) {
3636
CUBLAS_CHECK(cublasDgemmBatched(std::forward<args_t>(args)...));
37-
} else if constexpr (std::is_same_v<scalar_t, cl::sycl::half>) {
37+
} else if constexpr (std::is_same_v<scalar_t, sycl::half>) {
3838
CUBLAS_CHECK(cublasHgemmBatched(std::forward<args_t>(args)...));
3939
}
4040
return;

benchmark/cublas/blas3/gemm_batched_strided.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ static inline void cublas_routine(args_t&&... args) {
3434
CUBLAS_CHECK(cublasSgemmStridedBatched(std::forward<args_t>(args)...));
3535
} else if constexpr (std::is_same_v<scalar_t, double>) {
3636
CUBLAS_CHECK(cublasDgemmStridedBatched(std::forward<args_t>(args)...));
37-
} else if constexpr (std::is_same_v<scalar_t, cl::sycl::half>) {
37+
} else if constexpr (std::is_same_v<scalar_t, sycl::half>) {
3838
CUBLAS_CHECK(cublasHgemmStridedBatched(std::forward<args_t>(args)...));
3939
}
4040
return;

benchmark/cublas/utils.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ struct CudaType {
287287

288288
// When T is sycl::half, use cuda's __cuda as type.
289289
template <typename T>
290-
struct CudaType<T, std::enable_if_t<std::is_same_v<T, cl::sycl::half>>> {
290+
struct CudaType<T, std::enable_if_t<std::is_same_v<T, sycl::half>>> {
291291
using type = __half;
292292
};
293293

benchmark/portblas/blas1/asum.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
4545
// Create data
4646
std::vector<scalar_t> v1 = blas_benchmark::utils::random_data<scalar_t>(size);
4747

48-
// We need to guarantee that cl::sycl::half can hold the sum
48+
// We need to guarantee that sycl::half can hold the sum
4949
// of x_v without overflow by making sum(x_v) to be 1.0
5050
std::transform(std::begin(v1), std::end(v1), std::begin(v1),
5151
[=](scalar_t x) { return x / v1.size(); });
@@ -82,7 +82,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
8282
};
8383
#endif
8484

85-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
85+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
8686
auto event = _asum(sb_handle, size, inx, static_cast<index_t>(1), inr);
8787
sb_handle.wait(event);
8888
return event;

benchmark/portblas/blas1/axpy.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
4242
blas::SB_Handle& sb_handle = *sb_handle_ptr;
4343
auto q = sb_handle.get_queue();
4444

45-
if (std::is_same_v<scalar_t, cl::sycl::half> &&
46-
!q.get_device().has(cl::sycl::aspect::fp16)) {
45+
if (std::is_same_v<scalar_t, sycl::half> &&
46+
!q.get_device().has(sycl::aspect::fp16)) {
4747
state.SkipWithError("Unsupported fp16 (half) on this device.");
4848
}
4949

@@ -90,7 +90,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
9090
};
9191
#endif
9292

93-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
93+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
9494
auto event = _axpy(sb_handle, size, alpha, inx, static_cast<index_t>(1),
9595
iny, static_cast<index_t>(1));
9696
sb_handle.wait(event);

benchmark/portblas/blas1/copy.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
8888
};
8989
#endif
9090

91-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
91+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
9292
auto event =
9393
blas::_copy<blas::SB_Handle, index_t, decltype(x_gpu), decltype(y_gpu),
9494
index_t>(sb_handle, size, x_gpu, incx, y_gpu, incy);

benchmark/portblas/blas1/dot.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
4646
std::vector<scalar_t> v1 = blas_benchmark::utils::random_data<scalar_t>(size);
4747
std::vector<scalar_t> v2 = blas_benchmark::utils::random_data<scalar_t>(size);
4848

49-
// Make sure cl::sycl::half can hold the result of the dot product
49+
// Make sure sycl::half can hold the result of the dot product
5050
std::transform(std::begin(v1), std::end(v1), std::begin(v1),
5151
[=](scalar_t x) { return x / v1.size(); });
5252

@@ -85,7 +85,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
8585
};
8686
#endif
8787

88-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
88+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
8989
auto event = _dot(sb_handle, size, inx, static_cast<index_t>(1), iny,
9090
static_cast<index_t>(1), inr);
9191
sb_handle.wait(event);

benchmark/portblas/blas1/iamax.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
8484
};
8585
#endif
8686

87-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
87+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
8888
auto event = _iamax(sb_handle, size, inx, static_cast<index_t>(1), outI);
8989
sb_handle.wait(event);
9090
return event;

benchmark/portblas/blas1/iamin.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
8383
};
8484
#endif
8585

86-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
86+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
8787
auto event = _iamin(sb_handle, size, inx, static_cast<index_t>(1), outI);
8888
sb_handle.wait(event);
8989
return event;

benchmark/portblas/blas1/nrm2.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
4545
// Create data
4646
std::vector<scalar_t> v1 = blas_benchmark::utils::random_data<scalar_t>(size);
4747

48-
// We need to guarantee that cl::sycl::half can hold the norm of the vector
48+
// We need to guarantee that sycl::half can hold the norm of the vector
4949
std::transform(std::begin(v1), std::end(v1), std::begin(v1),
5050
[=](scalar_t x) { return x / v1.size(); });
5151

@@ -81,7 +81,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
8181
};
8282
#endif
8383

84-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
84+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
8585
auto event = _nrm2(sb_handle, size, inx, static_cast<index_t>(1), inr);
8686
sb_handle.wait(event);
8787
return event;

benchmark/portblas/blas1/rotg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
124124
#endif
125125

126126
// Create a utility lambda describing the blas method that we want to run.
127-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
127+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
128128
auto event = _rotg(sb_handle, buf_a, buf_b, buf_c, buf_s);
129129
sb_handle.wait(event);
130130
return event;

benchmark/portblas/blas1/rotm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
116116
};
117117
#endif
118118

119-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
119+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
120120
auto event = _rotm(sb_handle, size, gpu_x_v, static_cast<index_t>(1),
121121
gpu_y_v, static_cast<index_t>(1), gpu_param);
122122
sb_handle.wait(event);

benchmark/portblas/blas1/rotmg.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
135135
#endif
136136

137137
// Create a utility lambda describing the blas method that we want to run.
138-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
138+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
139139
auto event = _rotmg(sb_handle, buf_d1, buf_d2, buf_x1, buf_y1, buf_param);
140140
sb_handle.wait(event);
141141
return event;

benchmark/portblas/blas1/scal.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
4242
blas::SB_Handle& sb_handle = *sb_handle_ptr;
4343
auto q = sb_handle.get_queue();
4444

45-
if (std::is_same_v<scalar_t, cl::sycl::half> &&
46-
!q.get_device().has(cl::sycl::aspect::fp16)) {
45+
if (std::is_same_v<scalar_t, sycl::half> &&
46+
!q.get_device().has(sycl::aspect::fp16)) {
4747
state.SkipWithError("Unsupported fp16 (half) on this device.");
4848
}
4949

@@ -84,7 +84,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
8484
};
8585
#endif
8686

87-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
87+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
8888
auto event = _scal(sb_handle, size, alpha, in, static_cast<index_t>(1));
8989
sb_handle.wait(event);
9090
return event;

benchmark/portblas/blas1/sdsdot.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t size,
8484
};
8585
#endif
8686

87-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
87+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
8888
auto event = _sdsdot(sb_handle, size, sb, inx, static_cast<index_t>(1), iny,
8989
static_cast<index_t>(1), inr);
9090
sb_handle.wait(event);

benchmark/portblas/blas2/gbmv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, int ti,
104104
};
105105
#endif
106106

107-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
107+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
108108
auto event = _gbmv(sb_handle, *t_str, m, n, kl, ku, alpha, m_a_gpu, lda,
109109
v_x_gpu, incX, beta, v_y_gpu, incY);
110110
sb_handle.wait(event);

benchmark/portblas/blas2/gemv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, int ti,
104104
};
105105
#endif
106106

107-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
107+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
108108
auto event = _gemv(sb_handle, *t_str, m, n, alpha, m_a_gpu, m, v_x_gpu,
109109
incX, beta, v_y_gpu, incY);
110110
sb_handle.wait(event);

benchmark/portblas/blas2/ger.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, index_t m,
102102

103103
#endif
104104

105-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
105+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
106106
auto event = _ger(sb_handle, m, n, alpha, v_x_gpu, incX, v_y_gpu, incY,
107107
m_a_gpu, lda);
108108
sb_handle.wait(event);

benchmark/portblas/blas2/sbmv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
103103
};
104104
#endif
105105

106-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
106+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
107107
auto event = _sbmv(sb_handle, *uplo_str, n, k, alpha, m_a_gpu, lda, v_x_gpu,
108108
incX, beta, v_y_gpu, incY);
109109
sb_handle.wait(event);

benchmark/portblas/blas2/spmv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
101101
};
102102
#endif
103103

104-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
104+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
105105
auto event = _spmv(sb_handle, *uplo_str, n, alpha, m_a_gpu, v_x_gpu, incX,
106106
beta, v_y_gpu, incY);
107107
sb_handle.wait(event);

benchmark/portblas/blas2/spr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr, char uplo,
9292
};
9393
#endif
9494

95-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
95+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
9696
auto event = blas::_spr<blas::SB_Handle, index_t, scalar_t,
9797
decltype(v_x_gpu), index_t, decltype(m_a_gpu)>(
9898
sb_handle, uplo, size, alpha, v_x_gpu, incX, m_a_gpu);

benchmark/portblas/blas2/spr2.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, char uplo,
9999
};
100100
#endif
101101

102-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
102+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
103103
auto event = blas::_spr2(sb_handle, uplo, n, alpha, v_x_gpu, incX, v_y_gpu,
104104
incY, m_a_gpu);
105105
sb_handle.wait(event);

benchmark/portblas/blas2/symv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
102102
};
103103
#endif
104104

105-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
105+
auto blas_method_def = [&]() -> std::vector<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);
108108
sb_handle.wait(event);

benchmark/portblas/blas2/syr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
9393

9494
#endif
9595

96-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
96+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
9797
auto event =
9898
_syr(sb_handle, *uplo_str, n, alpha, v_x_gpu, incX, m_a_gpu, lda);
9999
sb_handle.wait(event);

benchmark/portblas/blas2/syr2.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
103103

104104
#endif
105105

106-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
106+
auto blas_method_def = [&]() -> std::vector<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);
109109
sb_handle.wait(event);

benchmark/portblas/blas2/tbmv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
9595
};
9696
#endif
9797

98-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
98+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
9999
auto event = _tbmv(sb_handle, *uplo_str, *t_str, *diag_str, n, k, m_a_gpu,
100100
lda, v_x_gpu, incX);
101101
sb_handle.wait(event);

benchmark/portblas/blas2/tbsv.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
};
107107
#endif
108108

109-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
109+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
110110
auto event = _tbsv(sb_handle, *uplo_str, *t_str, *diag_str, n, k, m_a_gpu,
111111
lda, v_x_gpu, incX);
112112
sb_handle.wait(event);

benchmark/portblas/blas2/tpmv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
9292
};
9393
#endif
9494

95-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
95+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
9696
auto event = _tpmv(sb_handle, *uplo_str, *t_str, *diag_str, n, m_a_gpu,
9797
v_x_gpu, incX);
9898
sb_handle.wait(event);

benchmark/portblas/blas2/tpsv.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
};
107107
#endif
108108

109-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
109+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
110110
auto event = _tpsv(sb_handle, *uplo_str, *t_str, *diag_str, n, m_a_gpu,
111111
v_x_gpu, incX);
112112
sb_handle.wait(event);

benchmark/portblas/blas2/trmv.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
};
9797
#endif
9898

99-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
99+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
100100
auto event = _trmv(sb_handle, *uplo_str, *t_str, *diag_str, n, m_a_gpu, lda,
101101
v_x_gpu, incX);
102102
sb_handle.wait(event);

benchmark/portblas/blas2/trsv.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ void run(benchmark::State& state, blas::SB_Handle* sb_handle_ptr,
104104
};
105105
#endif
106106

107-
auto blas_method_def = [&]() -> std::vector<cl::sycl::event> {
107+
auto blas_method_def = [&]() -> std::vector<sycl::event> {
108108
auto event = _trsv(sb_handle, *uplo_str, *t_str, *diag_str, n, m_a_gpu, lda,
109109
v_x_gpu, incX);
110110
sb_handle.wait(event);

0 commit comments

Comments
 (0)