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

nvcc compiler warnings with CUDA 11.7 #757

Closed
turnef opened this issue Jul 21, 2022 · 0 comments · Fixed by #851
Closed

nvcc compiler warnings with CUDA 11.7 #757

turnef opened this issue Jul 21, 2022 · 0 comments · Fixed by #851

Comments

@turnef
Copy link

turnef commented Jul 21, 2022

Inclusion of CLI11.hpp in CUDA code results in nvcc emitting these compiler warnings as of the CUDA 11.7 release:

CLI/CLI11.hpp(1027): warning #20236-D: pragma "diag_suppress" is deprecated, use "nv_diag_suppress" instead
CLI/CLI11.hpp(1032): warning #20236-D: pragma "diag_default" is deprecated, use "nv_diag_default" instead

The specific lines from CLI11.hpp that produce the warnings:

// NVCC warns about narrowing conversions here
#ifdef __CUDACC__
#pragma diag_suppress 2361
#endif
        TT { std::declval<CC>() }
#ifdef __CUDACC__
#pragma diag_default 2361
#endif

Simply prefixing the pragma directives with nv_ as the warning text suggests eliminates them which is easy to do in a locally deployed copy of the header. NVIDIA's documentation states that the deprecated forms of the pragma directives may be removed in a future release of CUDA.

I figured you might want to know this was happening. Thanks.

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

Successfully merging a pull request may close this issue.

1 participant