[libspirv] Align subgroup builtins and generic wrappers with downstream#21437
Open
wenju-he wants to merge 5 commits intointel:syclfrom
Open
[libspirv] Align subgroup builtins and generic wrappers with downstream#21437wenju-he wants to merge 5 commits intointel:syclfrom
wenju-he wants to merge 5 commits intointel:syclfrom
Conversation
Changes * use __ATOMIC_SEQ_CST for SequentiallyConsistent semantics mapping. * add GroupOperation::ClusteredReduce and the non-uniform overload without ClusterSize. * route __spirv_BuiltInSubgroupSize through __clc_get_sub_group_size. * delete amdgcn-amdhsa/workitem/get_sub_group_size.cl which is the same as the generic get_sub_group_size.cl. * clang-format include order. llvm-diff shows no change to nvptx64-nvidia-cuda/libspirv.bc.
…v_AtomicFlagTestAndSet"" This reverts commit f74832c.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
llvm-diff shows that only __spirv_AtomicFlagClear and __spirv_AtomicFlagTestAndSet
changed in nvptx64-nvidia-cuda/libspirv.bc, with lowering switched from
llvm.nvvm.atomic.exch to atomicrmw xchg. To preserve previous behavior,
we should override __clc_atomic_flag_clear and __clc_atomic_flag_test_and_set
for NVPTX; this is left for future work.