updates to conduit and ascent packages (#7040)
* Remove variants disabling blas and lapack for py-numpy, issues building these have been resolved * For CMake greater than 3.10, FindMPI changed, so use MPIEXE_EXECUTABLE instead of MPIEXE for 3.10 and newer
This commit is contained in:
parent
ef270615f0
commit
e4ba199fc1
2 changed files with 18 additions and 10 deletions
|
@ -97,9 +97,7 @@ class Ascent(Package):
|
||||||
# causes duplicate state issues when running compiled python modules.
|
# causes duplicate state issues when running compiled python modules.
|
||||||
depends_on("python+shared")
|
depends_on("python+shared")
|
||||||
extends("python", when="+python")
|
extends("python", when="+python")
|
||||||
# TODO: blas and lapack are disabled due to build
|
depends_on("py-numpy", when="+python", type=('build', 'run'))
|
||||||
# issues Cyrus experienced on OSX 10.11.6
|
|
||||||
depends_on("py-numpy~blas~lapack", when="+python", type=('build', 'run'))
|
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# MPI
|
# MPI
|
||||||
|
@ -298,8 +296,14 @@ def create_host_config(self, spec, prefix, py_site_pkgs_dir=None):
|
||||||
spec['mpi'].mpifc))
|
spec['mpi'].mpifc))
|
||||||
mpiexe_bin = join_path(spec['mpi'].prefix.bin, 'mpiexec')
|
mpiexe_bin = join_path(spec['mpi'].prefix.bin, 'mpiexec')
|
||||||
if os.path.isfile(mpiexe_bin):
|
if os.path.isfile(mpiexe_bin):
|
||||||
cfg.write(cmake_cache_entry("MPIEXEC",
|
# starting with cmake 3.10, FindMPI expects MPIEXEC_EXECUTABLE
|
||||||
mpiexe_bin))
|
# vs the older versions which expect MPIEXEC
|
||||||
|
if self.spec["cmake"].satisfies('@3.10:'):
|
||||||
|
cfg.write(cmake_cache_entry("MPIEXEC_EXECUTABLE",
|
||||||
|
mpiexe_bin))
|
||||||
|
else:
|
||||||
|
cfg.write(cmake_cache_entry("MPIEXEC",
|
||||||
|
mpiexe_bin))
|
||||||
else:
|
else:
|
||||||
cfg.write(cmake_cache_entry("ENABLE_MPI", "OFF"))
|
cfg.write(cmake_cache_entry("ENABLE_MPI", "OFF"))
|
||||||
|
|
||||||
|
|
|
@ -97,9 +97,7 @@ class Conduit(Package):
|
||||||
# causes duplicate state issues when running compiled python modules.
|
# causes duplicate state issues when running compiled python modules.
|
||||||
depends_on("python+shared")
|
depends_on("python+shared")
|
||||||
extends("python", when="+python")
|
extends("python", when="+python")
|
||||||
# TODO: blas and lapack are disabled due to build
|
depends_on("py-numpy", when="+python", type=('build', 'run'))
|
||||||
# issues Cyrus experienced on OSX 10.11.6
|
|
||||||
depends_on("py-numpy~blas~lapack", when="+python", type=('build', 'run'))
|
|
||||||
|
|
||||||
#######################
|
#######################
|
||||||
# I/O Packages
|
# I/O Packages
|
||||||
|
@ -311,8 +309,14 @@ def create_host_config(self, spec, prefix, py_site_pkgs_dir=None):
|
||||||
spec['mpi'].mpifc))
|
spec['mpi'].mpifc))
|
||||||
mpiexe_bin = join_path(spec['mpi'].prefix.bin, 'mpiexec')
|
mpiexe_bin = join_path(spec['mpi'].prefix.bin, 'mpiexec')
|
||||||
if os.path.isfile(mpiexe_bin):
|
if os.path.isfile(mpiexe_bin):
|
||||||
cfg.write(cmake_cache_entry("MPIEXEC",
|
# starting with cmake 3.10, FindMPI expects MPIEXEC_EXECUTABLE
|
||||||
mpiexe_bin))
|
# vs the older versions which expect MPIEXEC
|
||||||
|
if self.spec["cmake"].satisfies('@3.10:'):
|
||||||
|
cfg.write(cmake_cache_entry("MPIEXEC_EXECUTABLE",
|
||||||
|
mpiexe_bin))
|
||||||
|
else:
|
||||||
|
cfg.write(cmake_cache_entry("MPIEXEC",
|
||||||
|
mpiexe_bin))
|
||||||
else:
|
else:
|
||||||
cfg.write(cmake_cache_entry("ENABLE_MPI", "OFF"))
|
cfg.write(cmake_cache_entry("ENABLE_MPI", "OFF"))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue