Skip to content

Commit a9dcda9

Browse files
sycl_source/kernel.cpp: optimize local memory allocation
1 parent 6cda4e5 commit a9dcda9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl_source/kernel.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ static void bm3d(
385385
) {
386386

387387
#ifdef SYCL_EXT_ONEAPI_LOCAL_MEMORY
388-
float * buffer = *sycl::ext::oneapi::group_local_memory<float[8 * smem_stride]>(it.get_group()).get();
388+
float * buffer = *sycl::ext::oneapi::group_local_memory_for_overwrite<float[8 * smem_stride]>(it.get_group()).get();
389389
#else
390390
float * buffer = buffer_accessor.get_pointer().get();
391391
#endif

0 commit comments

Comments
 (0)