Skip to content

package magma: Remove -W args from CMakeLists.txt#20516

Merged
alalazo merged 1 commit intospack:developfrom
jkelling:magma_cmake_remove_Wargs
Jan 6, 2021
Merged

package magma: Remove -W args from CMakeLists.txt#20516
alalazo merged 1 commit intospack:developfrom
jkelling:magma_cmake_remove_Wargs

Conversation

@jkelling
Copy link
Copy Markdown
Contributor

The cmake buildsystem of magma (2.5.x) explicitly adds -Wno-unused-function to CXXFLAGS and CFLAGS. The -W* are compiler specific, but the compiler is not checked. For me this broke installing it using NVHP/PGI.

As compiler warnings are usually not interesting for spack users (who could also add them if needed), this PR adds a patch to the magma which removes the offending lines.

Copy link
Copy Markdown
Member

@adamjstewart adamjstewart left a comment

Choose a reason for hiding this comment

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

@stomov @luszczek can you review this?

@luszczek
Copy link
Copy Markdown
Contributor

I would only suggest to make this specific to NVHPC compiler. Otherwise this patch would increase the number of warnings for the GCC compilers used by earlier CUDA releases. Something like this: when='@2.5.0:2.5.99%[email protected]:20.11'

Copy link
Copy Markdown
Member

@alalazo alalazo left a comment

Choose a reason for hiding this comment

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

Can you address @luszczek comment?

@jkelling
Copy link
Copy Markdown
Contributor Author

jkelling commented Jan 4, 2021

I would only suggest to make this specific to NVHPC compiler. Otherwise this patch would increase the number of warnings for the GCC compilers used by earlier CUDA releases. Something like this: when='@2.5.0:2.5.99%[email protected]:20.11'

Sure I could limit this to NVHPC, but I think the current version should not increase the number of warnings, as -Wall is removed, too. I do not think, that running with -Wall is useful for spack users in general.

@jkelling jkelling force-pushed the magma_cmake_remove_Wargs branch from f934aa2 to 47a9a8f Compare January 4, 2021 15:30
@jkelling
Copy link
Copy Markdown
Contributor Author

jkelling commented Jan 4, 2021

Updated to apply patch only for nvhpc (all versions)

@jkelling jkelling force-pushed the magma_cmake_remove_Wargs branch from 47a9a8f to 26812c2 Compare January 4, 2021 15:47
@alalazo alalazo closed this Jan 6, 2021
@alalazo alalazo reopened this Jan 6, 2021
@alalazo alalazo merged commit 8956c8c into spack:develop Jan 6, 2021
loulawrence pushed a commit to loulawrence/spack that referenced this pull request Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants