warpx: Fixes for building on NERSC (#9671)
This commit is contained in:
parent
38a1732c5a
commit
be48d41ab1
@ -74,5 +74,11 @@ def torf(s):
|
|||||||
'TINY_PROFILE = {0}'.format(torf('+tprof')))
|
'TINY_PROFILE = {0}'.format(torf('+tprof')))
|
||||||
makefile.filter('EBASE .*', 'EBASE = warpx')
|
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):
|
def install(self, spec, prefix):
|
||||||
make('WarpxBinDir = {0}'.format(prefix.bin), 'all')
|
make('WarpxBinDir = {0}'.format(prefix.bin), 'all')
|
||||||
|
Loading…
Reference in New Issue
Block a user