Skip to content

Commit 33acdd9

Browse files
committed
Replaced __spirv_SubgroupShuffleINTEL, __spirv_SubgroupShuffleXorINTEL, __spirv_SubgroupShuffleDownINTEL and __spirv_SubgroupShuffleUpINT with __spirv_GroupNonUniformShuffle... generic versions.
1 parent 73be194 commit 33acdd9

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

sycl/include/sycl/detail/spirv.hpp

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ EnableIfNativeShuffle<T> Shuffle(GroupT g, T x, id<1> local_id) {
875875
convertToOpenCLType(x), LocalId);
876876
} else {
877877
// Subgroup.
878-
return __spirv_SubgroupShuffleINTEL(convertToOpenCLType(x), LocalId);
878+
return __spirv_GroupNonUniformShuffle(__spv::Scope::Subgroup, convertToOpenCLType(x), LocalId);
879879
}
880880
#else
881881
if constexpr (ext::oneapi::experimental::is_user_constructed_group_v<
@@ -912,8 +912,7 @@ EnableIfNativeShuffle<T> ShuffleXor(GroupT g, T x, id<1> mask) {
912912
convertToOpenCLType(x), TargetId);
913913
} else {
914914
// Subgroup.
915-
return __spirv_SubgroupShuffleXorINTEL(convertToOpenCLType(x),
916-
static_cast<uint32_t>(mask.get(0)));
915+
return __spirv_GroupNonUniformShuffleXOR(__spv::Scope::Subgroup, convertToOpenCLType(x), static_cast<uint32_t>(mask.get(0)));
917916
}
918917
#else
919918
if constexpr (ext::oneapi::experimental::is_user_constructed_group_v<
@@ -960,8 +959,7 @@ EnableIfNativeShuffle<T> ShuffleDown(GroupT g, T x, uint32_t delta) {
960959
convertToOpenCLType(x), TargetId);
961960
} else {
962961
// Subgroup.
963-
return __spirv_SubgroupShuffleDownINTEL(convertToOpenCLType(x),
964-
convertToOpenCLType(x), delta);
962+
return __spirv_GroupNonUniformShuffleDown(__spv::Scope::Subgroup, convertToOpenCLType(x), convertToOpenCLType(x), delta);
965963
}
966964
#else
967965
if constexpr (ext::oneapi::experimental::is_user_constructed_group_v<
@@ -1004,8 +1002,7 @@ EnableIfNativeShuffle<T> ShuffleUp(GroupT g, T x, uint32_t delta) {
10041002
convertToOpenCLType(x), TargetId);
10051003
} else {
10061004
// Subgroup.
1007-
return __spirv_SubgroupShuffleUpINTEL(convertToOpenCLType(x),
1008-
convertToOpenCLType(x), delta);
1005+
return __spirv_GroupNonUniformShuffleUp(__spv::Scope::Subgroup, convertToOpenCLType(x), convertToOpenCLType(x), delta);
10091006
}
10101007
#else
10111008
if constexpr (ext::oneapi::experimental::is_user_constructed_group_v<

0 commit comments

Comments
 (0)