-
-
Notifications
You must be signed in to change notification settings - Fork 230
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
Support nvc++ compiler #215
Comments
nvc is pgi-based compiler, use |
@bernhardmgruber have you tried configuring to use the |
@grafikrobot I have not tried it yet due to lack of time, sorry :S I assume I need to figure out whether vcpkg can (and should) pass |
Add support for nvc++ as CXX compiler when building boost, by specifying `toolset pgi` when invoking b2. Related discussion: bfgroup/b2#215 Fixes: microsoft#34068
Add support for nvc++ as CXX compiler when building boost, by specifying `toolset pgi` when invoking b2. Related discussion: bfgroup/b2#215 Fixes: microsoft#34068
Hey! I finally hat some time to come back to this. It was indeed an issue with vcpkg, which passed With Corresponding PR to vcpkg: microsoft/vcpkg#34072 Thx a lot for your help! |
* [boost-build] Support nvc++ Add support for nvc++ as CXX compiler when building boost, by specifying `toolset pgi` when invoking b2. Related discussion: bfgroup/b2#215 Fixes: #34068 * Update boost-modular-build-helper.json --------- Co-authored-by: jim wang <[email protected]>
* [boost-build] Support nvc++ Add support for nvc++ as CXX compiler when building boost, by specifying `toolset pgi` when invoking b2. Related discussion: bfgroup/b2#215 Fixes: microsoft#34068 * Update boost-modular-build-helper.json --------- Co-authored-by: jim wang <[email protected]>
Describe your use case
nvc++
is a C++20 compiler by NVIDIA, which is shipped as part of their HPC SDK. It's main feature is automatic offloading of calls to the C++17 parallel STL to NVIDIA GPUs. Otherwise, it performs like an ordinary C++20 compiler.Unfortunately, the command line parameters of
nvc++
are different from other mainstream compilers like gcc. This ultimately leads to boost build failures in downstream projects usingnvc++
asCXX
. Specifically, when I install boost viaCXX=nvc++ ./vcpkg install boost-atomic
, I get build errors like:nvc++-Error-Unknown switch: -fno-inline
(full build log at the bottom). It seems to me the offending flags are injected byb2
.If a project of yours is blocked on this feature, please, mention it explicitly.
I am blocked in my project because vcpkg fails to install boost in manifest mode when
nvc++
is used as CXX compiler: alpaka-group/llama#700.Describe the solution you'd like
I would like to kindly ask to add support for
nvc++
as CXX compiler tob2
, so future versions of boost could be built with this C++ compiler.Additional context
Build failure when installing
boost-atomic
viavcpkg
usingCXX=nvc++ ./vcpkg install boost-atomic
:Log file:
The text was updated successfully, but these errors were encountered: