summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorSatish Balay <balay@mcs.anl.gov>2022-10-26 15:04:22 -0500
committerGitHub <noreply@github.com>2022-10-26 13:04:22 -0700
commit5d0ae001a1184a7cf4cea3e2043b39fcc278dae6 (patch)
tree17de36600a60765e03a8e8dcd18528743ec2eea4 /var
parentbfc23f456046cc0bc870069b9d208587077f1e58 (diff)
downloadspack-5d0ae001a1184a7cf4cea3e2043b39fcc278dae6.tar.gz
spack-5d0ae001a1184a7cf4cea3e2043b39fcc278dae6.tar.bz2
spack-5d0ae001a1184a7cf4cea3e2043b39fcc278dae6.tar.xz
spack-5d0ae001a1184a7cf4cea3e2043b39fcc278dae6.zip
slepc: fix for slepc+cuda ^petsc+kokkos+cuda ^kokkos+cuda+wrapper (#33529)
kokkos wrappers modify mpicxx - breaking slepc build.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/slepc/package.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/slepc/package.py b/var/spack/repos/builtin/packages/slepc/package.py
index 3fc5a5c170..bd8fa1e4ed 100644
--- a/var/spack/repos/builtin/packages/slepc/package.py
+++ b/var/spack/repos/builtin/packages/slepc/package.py
@@ -113,12 +113,20 @@ class Slepc(Package, CudaPackage, ROCmPackage):
when="@3.13.0:+blopex",
)
+ def revert_kokkos_nvcc_wrapper(self):
+ # revert changes by kokkos-nvcc-wrapper
+ if self.spec.satisfies("^kokkos+cuda+wrapper"):
+ env["MPICH_CXX"] = env["CXX"]
+ env["OMPI_CXX"] = env["CXX"]
+ env["MPICXX_CXX"] = env["CXX"]
+
def install(self, spec, prefix):
# set SLEPC_DIR for installation
# Note that one should set the current (temporary) directory instead
# its symlink in spack/stage/ !
os.environ["SLEPC_DIR"] = os.getcwd()
+ self.revert_kokkos_nvcc_wrapper()
if self.spec.satisfies("%cce"):
filter_file(
" flags = l",
@@ -158,7 +166,7 @@ class Slepc(Package, CudaPackage, ROCmPackage):
python("configure", "--prefix=%s" % prefix, *options)
- make("MAKE_NP=%s" % make_jobs, parallel=False)
+ make("V=1 MAKE_NP=%s" % make_jobs, parallel=False)
if self.run_tests:
make("test", parallel=False)