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

Pass alpaka_ENABLE_WERROR from environment to CMake #2107

Closed
wants to merge 1 commit into from

Conversation

j-stephan
Copy link
Member

In #1977 I forgot to ensure that alpaka_ENABLE_WERROR is also passed to CMake in the generation step. This PR fixes this oversight.

SimeonEhrig
SimeonEhrig previously approved these changes Aug 30, 2023
@SimeonEhrig
Copy link
Member

The change looks good. But no test job passed. I believe there is a lot to do 😬

@@ -10,7 +10,6 @@ if(alpaka_ACC_GPU_CUDA_ENABLE AND (CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA"))
if(alpaka_ENABLE_WERROR)
list(APPEND alpaka_DEV_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:--Wreorder>")
list(APPEND alpaka_DEV_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:--Wdefault-stream-launch>")
list(APPEND alpaka_DEV_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:CUDA>:SHELL:--Wmissing-launch-bounds>")
Copy link
Member Author

@j-stephan j-stephan Sep 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed this warning since it warns about an optional CUDA feature (enforcing a compile-time grid / block size) we do not make use of.

@bernhardmgruber
Copy link
Member

Since so many warnings occur in the code generated by nvcc, I wonder why we need to enable -Werror on the host compiler as well. Shouldn't it be enough to just enable --Werror for nvcc for CUDA, and -Werror for CXX? And we just let nvcc generate whatever it wants. I think we just have to fix too much otherwise.

@bernhardmgruber
Copy link
Member

The changeset of this PR is also included in #2163. If that PR gets merged, this PR becomes obsolete.

@j-stephan
Copy link
Member Author

Superseded by #2163.

@j-stephan j-stephan closed this Sep 19, 2023
@j-stephan j-stephan deleted the enable_werror branch September 19, 2023 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants