Skip to content

Force-define _CCCL_ATOMIC_UNSAFE_AUTOMATIC_STORAGE for CUDA <13.1#816

Open
PointKernel wants to merge 1 commit into
NVIDIA:devfrom
PointKernel:fix-atomic-storage-unsafe-storage-bypass
Open

Force-define _CCCL_ATOMIC_UNSAFE_AUTOMATIC_STORAGE for CUDA <13.1#816
PointKernel wants to merge 1 commit into
NVIDIA:devfrom
PointKernel:fix-atomic-storage-unsafe-storage-bypass

Conversation

@PointKernel
Copy link
Copy Markdown
Member

Closes #804

This PR enables _CCCL_ATOMIC_UNSAFE_AUTOMATIC_STORAGE for CUDA < 13.1. This works around an nvcc __cuda_is_local/isspacep.local miscompile that causes atomic storage test failures in release builds. The guard is removed automatically on CUDA 13.1+, where the issue is fixed.

@PointKernel PointKernel requested a review from sleeepyjack as a code owner May 27, 2026 00:29
@PointKernel PointKernel added the type: bug Something isn't working label May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG]: atomic_storage_test fails in Release builds on CUDA < 13.1

1 participant