Skip to content

Conversation

@alifarazz
Copy link

When compiling NVSHMEM using GCC 15.2.1 and CUDA 13.0 (nvcc release 13.0, V13.0.88), I get the following warning:

...
/usr/include/c++/15.2.1/cstdbool:50:6: warning: #warning "<cstdbool> is deprecated in C++17, remove the #include" [-Wcpp]
   50 | #    warning "<cstdbool> is deprecated in C++17, remove the #include"
      |      ^~~~~
...

This PR fixes the warning by putting cstdbool behind a preprocessor macro, in files that include it. cstdbool was deprecated in C++17 and removed in C++20 1.

Footnotes

  1. https://en.cppreference.com/w/cpp/header/cstdbool.html

cstdbool header was deprecated in C++17 and removed in C++20.
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 this pull request may close these issues.

1 participant