Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions libdevice/nativecpu_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,13 @@ __spirv_MemoryBarrier(uint32_t Memory, uint32_t Semantics) {
template <> \
__SYCL_CONVERGENT__ DEVICE_EXTERNAL Type \
__spirv_SubgroupBlockReadINTEL<Type>(const OCL_GLOBAL PType *Ptr) noexcept { \
return *Ptr; \
return Ptr[__spirv_SubgroupLocalInvocationId()]; \
} \
template <> \
__SYCL_CONVERGENT__ DEVICE_EXTERNAL void \
__spirv_SubgroupBlockWriteINTEL<Type>(PType OCL_GLOBAL * ptr, \
Type v) noexcept { \
*(Type *)ptr = v; \
((Type*)ptr)[__spirv_SubgroupLocalInvocationId()] = v; \
}

#define DefSubgroupBlockINTEL_vt(Type, VT_name) \
Expand Down
Loading