Skip to content

Commit 15c551d

Browse files
committed
add kernel name for binomial
1 parent 6324b40 commit 15c551d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Libraries/oneMKL/binomial/src/binomial_sycl.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ constexpr int wg_size = 128;
1414

1515
sycl::queue* binomial_queue;
1616

17+
template<typename Type>
18+
class k_binomial; // can be useful for profiling
19+
1720
template<typename DATA_TYPE>
1821
Binomial<DATA_TYPE>::Binomial() {
1922
binomial_queue = new sycl::queue;
@@ -71,7 +74,7 @@ void Binomial<DATA_TYPE>::body() {
7174
binomial_queue->submit([&](sycl::handler& h) {
7275
sycl::local_accessor<DATA_TYPE> slm_call{wg_size + 1, h};
7376

74-
h.parallel_for(
77+
h.parallel_for<k_binomial<DATA_TYPE>>(
7578
sycl::nd_range(sycl::range<1>(opt_n * wg_size),
7679
sycl::range<1>(wg_size)),
7780
[=](sycl::nd_item<1> item)

0 commit comments

Comments
 (0)