Skip to content

Commit 24471bc

Browse files
authored
[SYCL] Fix sub_group::broadcast (#1482)
Previous refactoring of GroupBroadcast broke sub_group::broadcast. Wasn't picked up by tests because sub_group::broadcast is deprecated. Signed-off-by: John Pennycook <[email protected]>
1 parent 256dc08 commit 24471bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/intel/sub_group.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ struct sub_group {
178178
template <typename T>
179179
__SYCL_EXPORT_DEPRECATED("Use sycl::intel::broadcast instead.")
180180
EnableIfIsScalarArithmetic<T> broadcast(T x, id<1> local_id) const {
181-
return detail::spirv::GroupBroadcast<__spv::Scope::Subgroup>(x, local_id);
181+
return detail::spirv::GroupBroadcast<sub_group>(x, local_id);
182182
}
183183

184184
template <typename T, class BinaryOperation>

0 commit comments

Comments
 (0)