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

Support the NVHPC compiler #110

Merged
merged 1 commit into from
Feb 10, 2024
Merged

Conversation

bernhardmgruber
Copy link
Contributor

Hi! I was trying to build ROOT with Nvidia's NVHPC compiler. I got stuck quite soon because your library specifies the flag -fstack-protector-all, which is not known to this compiler. This PR therefore creates an additional config in ReleaseDebugAutoFlags.cmake, similar to your exception for MSVC, where this flag is removed.

This compiler does not support the -fstack-protector-all flag, which is therefore removed from ReleaseDebugAutoFlags.cmake.
@mpatrascoiu
Copy link
Contributor

Hello,

Thank you for your contribution!
Looks good to me! Merging to devel branch.

Cheers,
Mihai

@mpatrascoiu mpatrascoiu merged commit 3c0bdaa into cern-fts:devel Feb 10, 2024
@mpatrascoiu
Copy link
Contributor

Just to add to my previous comment. This change would allow starting the compilation process with NVHPC compiler, but there's no guarantee it would work all the way to the end.

Probably future problems will be discovered.

@bernhardmgruber
Copy link
Contributor Author

Just to add to my previous comment. This change would allow starting the compilation process with NVHPC compiler, but there's no guarantee it would work all the way to the end.

Right. We have found some issues with NVHPC when compiling the LLVM inside ROOT, but this has been reported to NVIDIA and a newer compiler version may solve it.

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.

2 participants