File tree 1 file changed +2
-7
lines changed
device/sycl/src/clusterization
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -254,8 +254,8 @@ class ccl_kernel {
254
254
unsigned char adjc[MAX_CELLS_PER_THREAD];
255
255
256
256
// It seems that sycl runs into undefined behaviour when calling
257
- // any_of_group when some threads have already run into a return. So can
258
- // only do this after running the FastSV algorithm .
257
+ // group synchronisation functions when some threads have already run
258
+ // into a return. As such, we cannot use returns in this kernel .
259
259
260
260
#pragma unroll
261
261
for (index_t tst = 0; tst < MAX_CELLS_PER_THREAD; ++tst) {
@@ -295,11 +295,6 @@ class ccl_kernel {
295
295
296
296
item.barrier();
297
297
298
- // Now that we can use return, check if any work needs to be done
299
- if (tid >= size) {
300
- return;
301
- }
302
-
303
298
/*
304
299
* Count the number of clusters by checking how many cells have
305
300
* themself assigned as a parent.
You can’t perform that action at this time.
0 commit comments