summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave <dpgrote@gmail.com>2018-10-30 10:25:32 -0700
committerAxel Huebl <axel.huebl@plasma.ninja>2018-10-30 18:25:32 +0100
commitbe48d41ab1729cce0de084037c689668c0774b55 (patch)
tree9baef4acf9e1fb8404d50804a379cbca9abd7948
parent38a1732c5a8f85203747c96c5414b2ed5fd9696b (diff)
downloadspack-be48d41ab1729cce0de084037c689668c0774b55.tar.gz
spack-be48d41ab1729cce0de084037c689668c0774b55.tar.bz2
spack-be48d41ab1729cce0de084037c689668c0774b55.tar.xz
spack-be48d41ab1729cce0de084037c689668c0774b55.zip
warpx: Fixes for building on NERSC (#9671)
-rw-r--r--var/spack/repos/builtin/packages/warpx/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/warpx/package.py b/var/spack/repos/builtin/packages/warpx/package.py
index 9af8cb79ac..bfbcd7fa3a 100644
--- a/var/spack/repos/builtin/packages/warpx/package.py
+++ b/var/spack/repos/builtin/packages/warpx/package.py
@@ -74,5 +74,11 @@ class Warpx(MakefilePackage):
'TINY_PROFILE = {0}'.format(torf('+tprof')))
makefile.filter('EBASE .*', 'EBASE = warpx')
+ def setup_environment(self, spack_env, run_env):
+ # --- Fool the compiler into using the "unknown" configuration.
+ # --- With this, it will use the spack provided mpi.
+ spack_env.set('HOSTNAME', 'unknown')
+ spack_env.set('NERSC_HOST', 'unknown')
+
def install(self, spec, prefix):
make('WarpxBinDir = {0}'.format(prefix.bin), 'all')