Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Some CUDA experimental memory resource headers do not properly warn if the enable macro is not defined #4096

Open
brycelelbach opened this issue Mar 11, 2025 · 0 comments
Assignees

Comments

@brycelelbach
Copy link
Contributor

If you #include <cuda/experimental/memory_resource.cuh> and do not define LIBCUDACXX_ENABLE_EXPERIMENTAL_MEMORY_RESOURCE you do not get a clear diagnostic about what is wrong because some headers, like https://github.com/NVIDIA/cccl/blob/main/cudax/include/cuda/experimental/__memory_resource/device_memory_resource.cuh are not properly guarded with a preprocessor diagnostic. An example of the diagnostic can be found here: https://github.com/NVIDIA/cccl/blob/main/cudax/include/cuda/experimental/__memory_resource/any_resource.cuh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Todo
Development

No branches or pull requests

2 participants