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

Commit

Permalink
Rephrase barrier docs to use 'parity' more
Browse files Browse the repository at this point in the history
  • Loading branch information
wmaxey committed Jul 29, 2021
1 parent f1e2562 commit c18427d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/extended_api/synchronization_primitives/barrier.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ It has the same interface and semantics as [`cuda::std::barrier`], with the

| [`cuda::barrier::init`] | Initialize a `cuda::barrier`. `(friend function)` |
| [`cuda::device::barrier_native_handle`] | Get the native handle to a `cuda::barrier`. `(function template)` |
| [`cuda::barrier::wait_parity/try_wait_parity`] | Wait on a `specific` phase of the barrier |
| [`cuda::barrier::wait_parity/try_wait_parity`] | Wait on or check the parity of the barrier. |

## NVCC `__shared__` Initialization Warnings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ __host__ __device__ void cuda::std::barrier::wait_parity(bool phase);
__host__ __device__ bool cuda::std::barrier::try_wait_parity(bool phase);
```

`barrier::wait_parity` stalls execution while the barrier is not at the specified phase.
`barrier::try_wait_parity` queries the the state of the barrier against the specified phase.
`barrier::wait_parity` stalls execution while the barrier is not at the specified parity.
`barrier::try_wait_parity` returns true if the parity of the barrier matches the given parity.

## Return Value

Expand Down

0 comments on commit c18427d

Please sign in to comment.