NVIDIA/libcudacxx

fetch_max example is incorrect

ag1548 opened this issue · 0 comments

The example code on this page:

https://nvidia.github.io/libcudacxx/extended_api/synchronization_primitives/atomic/fetch_max.html

is incorrect.

Here, x == 0 and y == 1.