Skip to content

Commit e11380a

Browse files
authored
Clarify p2p native atomic support docs (NVIDIA#4510)
* Clarify p2p native atomic support docs p2pNativeAtomicSupported doesn't exist. Clarifies the appropriate enum name. * Update memory_model.rst
1 parent ceba82d commit e11380a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/libcudacxx/extended_api/memory_model.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ An atomic operation is atomic at the scope it specifies if:
7676
memory <https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#mapped-memory>`__ [1],
7777
**or**
7878
- it affects an object in GPU memory, only GPU threads access it, and
79-
- `p2pNativeAtomicSupported <https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html#group__CUDART__TYPES_1gg2f597e2acceab33f60bd61c41fea0c1b8513982962e4439fa60f2a24348be587>`__ between each accessing GPU and the GPU where the object resides is ``1``, or
79+
- `*val` returned from `cudaDeviceGetP2PAttribute(&val, cudaDevP2PAttrNativeAtomicSupported, srcDev, dstDev) <https://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html#group__CUDART__TYPES_1g2f597e2acceab33f60bd61c41fea0c1b>`__ between each accessing `srcDev` and the GPU where the object resides, `dstDev`, is ``1``, or
8080
- only GPU threads from a single GPU concurrently access it.
8181

8282
.. note::

0 commit comments

Comments
 (0)