Skip to content

Commit c983b05

Browse files
author
Yihan Wang
authored
[SYCLomatic] Remove explicit template argument list (#740)
Signed-off-by: Wang, Yihan <yihan.wang@intel.com>
1 parent 48da65e commit c983b05

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

help_function/src/onedpl_test_group_load.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,10 +199,10 @@ template <dpct::group::load_algorithm T> bool test_group_load_standalone() {
199199
int thread_data[4];
200200
auto *d_r =
201201
dacc_read.get_multi_ptr<sycl::access::decorated::yes>().get();
202-
if (T == dpct::group::load_algorithm::BLOCK_LOAD_DIRECT) {
203-
dpct::group::load_blocked<4, int>(item, d_r, thread_data);
202+
if constexpr (T == dpct::group::load_algorithm::BLOCK_LOAD_DIRECT) {
203+
dpct::group::load_blocked(item, d_r, thread_data);
204204
} else {
205-
dpct::group::load_striped<4, int>(item, d_r, thread_data);
205+
dpct::group::load_striped(item, d_r, thread_data);
206206
}
207207
// Write thread_data of each work item at index to the global buffer
208208
int global_index =

0 commit comments

Comments
 (0)