From 5191bc5d09f3728aa24622ec07933022e5bed8dd Mon Sep 17 00:00:00 2001 From: gonzalobg <65027571+gonzalobg@users.noreply.github.com> Date: Fri, 24 Nov 2023 09:39:50 +0100 Subject: [PATCH] Update barrier_arrive_tx.md docs (#1147) --- .../synchronization_primitives/barrier/barrier_arrive_tx.md | 4 ++-- .../synchronization_primitives/barrier/barrier_expect_tx.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/barrier/barrier_arrive_tx.md b/libcudacxx/docs/extended_api/synchronization_primitives/barrier/barrier_arrive_tx.md index f29bc3e7e37..8a0f2f10b61 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/barrier/barrier_arrive_tx.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/barrier/barrier_arrive_tx.md @@ -16,7 +16,7 @@ cuda::device::barrier_arrive_tx( ptrdiff_t transaction_count_update); ``` -Arrives at a barrier in shared memory, updating both the arrival count and +Arrives at a barrier in shared memory, decrementing the arrival count and incrementing the expected transaction count. ## Preconditions @@ -29,7 +29,7 @@ transaction count. ## Effects * This function constructs an arrival_token object associated with the phase - synchronization point for the current phase. Then, decrements the expected + synchronization point for the current phase. Then, decrements the arrival count by `arrive_count_update` and increments the expected transaction count by `transaction_count_update`. * This function executes atomically. The call to this function strongly diff --git a/libcudacxx/docs/extended_api/synchronization_primitives/barrier/barrier_expect_tx.md b/libcudacxx/docs/extended_api/synchronization_primitives/barrier/barrier_expect_tx.md index f029b99e922..9cf1735da15 100644 --- a/libcudacxx/docs/extended_api/synchronization_primitives/barrier/barrier_expect_tx.md +++ b/libcudacxx/docs/extended_api/synchronization_primitives/barrier/barrier_expect_tx.md @@ -14,7 +14,7 @@ void cuda::device::barrier_expect_tx( ptrdiff_t transaction_count_update); ``` -Updates the expected transaction count of a barrier in shared memory. +Increments the expected transaction count of a barrier in shared memory. ## Preconditions