Ascent: Add variant to disable blt_find_mpi (#30735)

This is needed to find MPI correctly on cray systems and similar.
This commit is contained in:
kwryankrattiger 2022-05-19 12:06:31 -05:00 committed by GitHub
parent c9cfc548da
commit a225a5b276
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -69,6 +69,8 @@ class Ascent(CMakePackage, CudaPackage):
variant('test', default=True, description='Enable Ascent unit tests')
variant("mpi", default=True, description="Build Ascent MPI Support")
# set to false for systems that implicitly link mpi
variant('blt_find_mpi', default=True, description='Use BLT CMake Find MPI logic')
variant("serial", default=True, description="build serial (non-mpi) libraries")
# variants for language support
@ -486,6 +488,10 @@ def hostconfig(self):
cfg.write(cmake_cache_entry("MPIEXEC",
mpiexe_bin))
if "+blt_find_mpi" in spec:
cfg.write(cmake_cache_entry("ENABLE_FIND_MPI", "ON"))
else:
cfg.write(cmake_cache_entry("ENABLE_FIND_MPI", "OFF"))
###################################
# BABELFLOW (also depends on mpi)
###################################