NVIDIA / NVIDIA/cccl

[BUG]: `<cuda/std/barrier>` shouldn't include `<cuda/barrier>`

Open
#71 2 comments 1 reaction 0 assignees View on GitHub
breaking libcu++
Dominant language
C++
Stars
2.5k
Forks
487
Avg merge
2d 7h
Merged PRs (30d)
296

Description

`` currently includes [`<__cuda/barrier>`](https://github.com/NVIDIA/libcudacxx/blob/9d14ca711b2fda04df9ce44728c9eed2578acdf1/include/cuda/std/detail/libcxx/include/barrier#L487), meaning including `` will always inject `cuda::barrier` into the `cuda::` namespace even for host-only compilation.

Ideally, it should not do this. Instead, `` should include `<__cuda/barrier>` after `"std/barrier"` here: https://github.com/NVIDIA/libcudacxx/blob/9d14ca711b2fda04df9ce44728c9eed2578acdf1/include/cuda/barrier#L14

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.