Repository navigation
Fix __nv_atomic_load guard from compiler to target based - #7983
Conversation
There was a problem hiding this comment.
Don't we also need to guard the headers here?
This comment has been minimized.
This comment has been minimized.
|
i am confused why was the bug disappearing without the extra arch check before? @davebayer |
Because you had a typo in your implementation and instead of |
so the bug reappeared after we fixed the double underscore thingy? |
| #endif | ||
|
|
||
| // The new __nv_atomic builtins are available when __CUDACC_DEVICE_ATOMIC_BUILTINS__ is defined | ||
| #if defined(__CUDACC_DEVICE_ATOMIC_BUILTINS__) && _CCCL_PTX_ARCH() >= 600 && !_CCCL_COMPILER(MSVC) |
There was a problem hiding this comment.
Q: Why do we need to exclude MSVC here? I had to exclude it only in warpspeed scan because of compiler bugs. It should not generally be disabled IMO.
There was a problem hiding this comment.
I believe for now the appropriate bugfix is to just fix the condition with the macro and then individually enable it for MSVC in a followup PR
There was a problem hiding this comment.
Fine. But we should not forget to enable the built-in atomics for MSVC where they work.
There was a problem hiding this comment.
i definitely copied over because of mighty legacy reasons that I wasn't aware
I believe so, but I haven't tested it |
🥳 CI Workflow Results🟩 Finished in 3h 16m: Pass: 100%/298 | Total: 9d 00h | Max: 3h 16m | Hits: 84%/371333See results here. |
This PR updates CCCL to 3.4.0 (latest on main). Comparison of CCCL commits: NVIDIA/cccl@09094af...33895cb Notable PRs included: - NVIDIA/cccl#7787 - NVIDIA/cccl#7983 - NVIDIA/cccl#8152 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) URL: #990
This PR updates CCCL to 3.4.0 (latest on main). Comparison of CCCL commits: NVIDIA/cccl@09094af...33895cb Notable PRs included: - NVIDIA/cccl#7787 - NVIDIA/cccl#7983 - NVIDIA/cccl#8152 Authors: - Bradley Dice (https://github.com/bdice) Approvers: - Vyas Ramasubramani (https://github.com/vyasr) URL: rapidsai#990
fixes #7982
We used a rather modern atomic for our new cub::FindIf agent but we guarded it with merit to the compiler support. That does not suffice though as one might compile for
NVCC 12.9onsm_50which will throw as per the tracking issue.We shift to using
__CUDACC_DEVICE_ATOMIC_BUILTINS__which is a flag dedicated to atomic support instead.