Skip to content

Commit

Permalink
openmpi: improve pmix component
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 6, 2024
1 parent 83637cc commit 287224e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions recipes/openmpi/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,13 +117,14 @@ def yes_no(v):

tc = AutotoolsToolchain(self)
tc.configure_args += [
"--with-pic" if self.options.get_safe("fPIC") else "--without-pic",
f"--enable-mpi-fortran={self.options.fortran}",
f"--with-hwloc={root('hwloc')}",
f"--with-libevent={root('libevent')}",
f"--with-libnl={root('libnl') if not is_apple_os(self) else 'no'}",
f"--with-ofi={root('libfabric') if self.options.get_safe('with_libfabric') else 'no'}",
f"--with-zlib={root('zlib')}",
"--with-pic" if self.options.get_safe("fPIC", True) else "--without-pic",
"--with-pmix=internal",
"--disable-wrapper-rpath",
"--disable-wrapper-runpath",
"--exec-prefix=/",
Expand All @@ -137,7 +138,6 @@ def yes_no(v):
"--with-lsf=no", # LSF
"--with-lustre=no", # Lustre
"--with-memkind=no", # memkind
"--with-pmix=internal", # PMIx
"--with-portals4=no", # Portals4
"--with-psm2=no", # PSM2
"--with-pvfs2=no", # Pvfs2
Expand Down Expand Up @@ -249,7 +249,12 @@ def package_info(self):
self.cpp_info.components["ompi"].libs = ["mpi"]

if Version(self.version) >= "5.0":
self.cpp_info.components["ompi"].libs.extend(["pmix", "prrte"])
self.cpp_info.components["pmix"].set_property("pkg_config_name", "pmix")
self.cpp_info.components["pmix"].libs = ["pmix"]
self.cpp_info.components["prrte"].set_property("pkg_config_name", "prrte")
self.cpp_info.components["prrte"].libs = ["prrte"]
self.cpp_info.components["prrte"].requires = ["pmix"]
self.cpp_info.components["ompi"].requires = ["pmix"]
main_component = self.cpp_info.components["ompi"]
else:
self.cpp_info.components["orte"].set_property("pkg_config_name", "orte")
Expand Down

0 comments on commit 287224e

Please sign in to comment.