Skip to content

Commit 19f7b40

Browse files
committed
[tsne][SYCL] Use property_list instead of property value
Fix the initialisation of the reduction object by passing a property list rather than a single property. The latter fails in newer DPC++ versions with: error: no member named 'has_property' in 'sycl::property::reduction::initialize_to_identity'
1 parent 24460aa commit 19f7b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tsne/SYCL/src/kernels/perplexity_search.dp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ void tsnecuda::SearchPerplexity(
254254
// Check if searching is done
255255
myQueue.parallel_for(
256256
sycl::nd_range<1>{NUM_WGS2 * WG_SIZE2, WG_SIZE2}, std::move(e4),
257-
sycl::reduction(all_found, sycl::plus<int>(), sycl::property::reduction::initialize_to_identity{}),
257+
sycl::reduction(all_found, sycl::plus<int>(), {sycl::property::reduction::initialize_to_identity{}}),
258258
[=](sycl::nd_item<1> item, auto& sum) {
259259
int i = item.get_global_id(0);
260260
if (i >= num_points) return;

0 commit comments

Comments
 (0)