SYCLomatic icon indicating copy to clipboard operation
SYCLomatic copied to clipboard

question about __syncwarp(mask)

Open jinz2014 opened this issue 11 months ago • 2 comments

Is "mask" missing when migrating __syncwarp(mask) ?

// void __syncwarp(unsigned mask=0xffffffff)


void a(unsigned mask, const sycl::nd_item<3> &item_ct1) {
   sycl::group_barrier(item_ct1.get_sub_group());
}

jinz2014 avatar Mar 15 '24 16:03 jinz2014

@jinz2014 #1. there is no mapping for __syncwarp when mask is not FULLMASK. #2. Then is no impact on function correctness, maybe have negative impact on performance. #3. When the mapping is available in SYCL side, we will plan to refine the migration.

Thanks.

tomflinda avatar Mar 18 '24 03:03 tomflinda

Okay

jinz2014 avatar Mar 18 '24 14:03 jinz2014