diff options
author | Scott McMillan <scott.andrew.mcmillan@gmail.com> | 2021-04-08 03:55:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-08 10:55:32 +0200 |
commit | 2a7f588612802f3f5e6cceb674f919beecd33eea (patch) | |
tree | d779ce3952e3f5750c3941e9bfa76d7e920b9c23 /var | |
parent | e38aac8cb6eee32ef845b8ee087df14dc73e6b36 (diff) | |
download | spack-2a7f588612802f3f5e6cceb674f919beecd33eea.tar.gz spack-2a7f588612802f3f5e6cceb674f919beecd33eea.tar.bz2 spack-2a7f588612802f3f5e6cceb674f919beecd33eea.tar.xz spack-2a7f588612802f3f5e6cceb674f919beecd33eea.zip |
kim-api: support the NVIDIA compiler (#22857)
Co-authored-by: Scott McMillan <smcmillan@nvidia.com>
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/kim-api/package.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/kim-api/package.py b/var/spack/repos/builtin/packages/kim-api/package.py index 566c7acbb1..4d437a9c47 100644 --- a/var/spack/repos/builtin/packages/kim-api/package.py +++ b/var/spack/repos/builtin/packages/kim-api/package.py @@ -39,3 +39,9 @@ class KimApi(CMakePackage): # The Fujitsu compiler requires the '--linkfortran' # option to combine C++ and Fortran programs. patch('fujitsu_add_link_flags.patch', when='%fj') + + def patch(self): + # Remove flags not recognized by the NVIDIA compiler + if self.spec.satisfies('%nvhpc'): + filter_file('-std=gnu', '', + 'examples/simulators/simulator-model-example/CMakeLists.txt') |