diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/eospac/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/eospac/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/eospac/package.py b/var/spack/repos/builtin/packages/eospac/package.py index 8ea7e5de47..a3737cf12a 100644 --- a/var/spack/repos/builtin/packages/eospac/package.py +++ b/var/spack/repos/builtin/packages/eospac/package.py @@ -108,6 +108,12 @@ class Eospac(Package): # This patch corrects EOSPAC's selection of compiler flags when # compilers are specified using absolute pathnames. patch("cpuinfo_comp_flags_key.patch", when="@:6.4.1,6.4.2beta") + # This patchset corrects EOSPAC's selection of compiler flags when + # intel-classic@2021 is used. + patch("650-ic2021.patch", when="@6.5.0%intel") + patch("642-ic2021.patch", when="@6.4.2%intel") + patch("641-ic2021.patch", when="@6.4.1%intel") + patch("640-ic2021.patch", when="@6.4.0%intel") # GPU offload is only available for version 6.5+ variant("offload", default=False, description="Build GPU offload library instead of standard") @@ -129,6 +135,8 @@ class Eospac(Package): # but gcc@10 flipped to default fno-common if "%gcc@10:" in spec: compilerArgs.append("CFLAGS=-fcommon") + if self.run_tests: + make("check", *compilerArgs) make( "install", "prefix={0}".format(prefix), |