Skip to content

Commit 50e85ce

Browse files
committed
Merge branch 'sg_as_poc' of github.com:vladimirlaz/llvm into sg_as_poc
2 parents 72c8a8f + 1aeccc4 commit 50e85ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/doc/extensions/SubGroupAlgorithms/SYCL_INTEL_sub_group_algorithms.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ The load and store sub-group functions enable developers to assert that all work
135135
|Function|Description
136136

137137
|+template <typename T> T load(sub_group sg, const T *src)+
138-
|Load contiguous data from _src_. Returns one element per work-item, corresponding to the memory location at _src_ + +get_local_id()+. The value of _src_ must be the same for all work-items in the sub-group. The address space information is deduced autmaticaly. Only pointers to global and local address spaces are fully valid. Passing pointer in private address space will cause assertion. Other address spaces are casted to global with potentially undefined behaviour.
138+
|Load contiguous data from _src_. Returns one element per work-item, corresponding to the memory location at _src_ + +get_local_id()+. The value of _src_ must be the same for all work-items in the sub-group. The address space information is deduced automatically. Only pointers to global and local address spaces are valid. Passing a pointer to private address space will cause an assertion. Other address spaces are cast to global with potentially undefined behavior.
139139

140140
|+template <typename T, access::address_space Space> T load(sub_group sg, const multi_ptr<T,Space> src)+
141141
|Load contiguous data from _src_. Returns one element per work-item, corresponding to the memory location at _src_ + +get_local_id()+. The value of _src_ must be the same for all work-items in the sub-group. _Space_ must be +access::address_space::global_space+ or +access::address_space::local_space+.
@@ -144,7 +144,7 @@ The load and store sub-group functions enable developers to assert that all work
144144
|Load contiguous data from _src_. Returns _N_ elements per work-item, corresponding to the _N_ memory locations at _src_ + +i+ * +get_max_local_range()+ + +get_local_id()+ for +i+ between 0 and _N_. The value of _src_ must be the same for all work-items in the sub-group. _Space_ must be +access::address_space::global_space+ or +access::address_space::local_space+.
145145

146146
|+template <typename T> void store(sub_group sg, T *dst, const T& x)+
147-
|Store contiguous data to _dst_. The value of _x_ from each work-item is written to the memory location at _dst_ + +get_local_id()+. The value of _dst_ must be the same for all work-items in the sub-group. The address space information is deduced autmaticaly. Only pointers to global and local address spaces are fully valid. Passing pointer in private address space will cause assertion. Other address spaces are casted to global with potentially undefined behaviour.
147+
|Store contiguous data to _dst_. The value of _x_ from each work-item is written to the memory location at _dst_ + +get_local_id()+. The value of _dst_ must be the same for all work-items in the sub-group. The address space information is deduced automatically. Only pointers to global and local address spaces are valid. Passing a pointer to private address space will cause an assertion. Other address spaces are cast to global with potentially undefined behavior.
148148

149149
|+template <typename T, access::address_space Space> void store(sub_group sg, multi_ptr<T,Space> dst, const T& x)+
150150
|Store contiguous data to _dst_. The value of _x_ from each work-item is written to the memory location at _dst_ + +get_local_id()+. The value of _dst_ must be the same for all work-items in the sub-group. _Space_ must be +access::address_space::global_space+ or +access::address_space::local_space+.

0 commit comments

Comments
 (0)