Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Commit

Permalink
Docs: update tightened condition on arrive
Browse files Browse the repository at this point in the history
  • Loading branch information
ogiroux authored Sep 24, 2020
1 parent 73b3728 commit 5d7b818
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/api/synchronization_library/barrier.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ An object of type `barrier` shall not be accessed concurrently by CPU and GPU th
(Note, for objects of scopes other than `thread_scope_system` this is a data-race, and thefore also prohibited regardless of memory characteristics.)
Under Compute Capability 8 or above, when an object of type `barrier<thread_scope_block>` is placed in `__shared__` memory, the member function `arrive` performs a reduction of the arrival count among [coalesced](https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#coalesced-group-cg) threads followed by the arrival operation in one thread. Programs shall ensure that this transformation would not introduce errors, for example relative to the requirements of `[thread.barrier.class]` paragraph 12 in N4860.
Under Compute Capability 6 or prior, an object of type `barrier` may not be used.
## Implementation-Defined Behavior
Expand Down

0 comments on commit 5d7b818

Please sign in to comment.