This is an archive of the discontinued LLVM Phabricator instance.

[NVPTX] Fix barrier.ll LIT test
ClosedPublic

Authored by asavonic on Apr 10 2022, 1:09 PM.

Details

Summary

The second parameter should be a multiple of the warp size (32).

PTX ISA spec, s9.7.12.1. Parallel Synchronization and Communication
Instructions: bar, barrier

barrier.sync{.aligned} a{, b};

Operand b specifies the number of threads participating in the
barrier. If no thread count is specified, all threads in the CTA
participate in the barrier. When specifying a thread count, the value
must be a multiple of the warp size.

Diff Detail

Event Timeline

asavonic created this revision.Apr 10 2022, 1:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2022, 1:09 PM
asavonic requested review of this revision.Apr 10 2022, 1:09 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 10 2022, 1:09 PM
tra accepted this revision.Apr 12 2022, 11:21 AM
This revision is now accepted and ready to land.Apr 12 2022, 11:21 AM
This revision was landed with ongoing or failed builds.Apr 14 2022, 7:08 AM
This revision was automatically updated to reflect the committed changes.