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

NVIDIA C++ compiler -cuda option triggers incompatible redefiniton of BOOST_COMPILER #428

Open
olupton opened this issue Apr 28, 2022 · 0 comments

Comments

@olupton
Copy link

olupton commented Apr 28, 2022

Passing the -cuda option to nvc++ makes it define the __CUDACC__ macro, which in turn leads to a warning from Boost:

"config/include/boost/config/compiler/pgi.hpp", line 12: warning: incompatible redefinition of macro "BOOST_COMPILER" (declared at line 11 of "config/include/boost/config/compiler/nvcc.hpp")
  #define BOOST_COMPILER "PGI compiler version " BOOST_STRINGIZE(BOOST_COMPILER_VERSION)
          ^

(tested with today's develop, c11afa5, and the 1.78 release).

nvc++ also defines macros such as __PGI and __NVCOMPILER.

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

No branches or pull requests

1 participant