sys-cluster/openmpi: move ucx dependency out of cuda to toplevel flag

ucx is variously used in openmpi and isn't actually specific to cuda
suppport. Pass the dedicated ./configure flag for it, and add it as a
top-level USE-dep. Currently it is an automagic dependency.

Signed-off-by: Eli Schwartz <eschwartz@gentoo.org>
This commit is contained in:
Eli Schwartz
2026-11-07 21:36:30 -05:00
parent 3ec340982a
commit eda080a372
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -10,6 +10,7 @@
<flag name="libompitrace">Enable support for contributed package libompitrace</flag>
<flag name="peruse">Enable PERUSE interface</flag>
<flag name="romio">Build the ROMIO MPI-IO component</flag>
<flag name="ucx">Enable Unified Communication X library support</flag>
</use>
<upstream>
<remote-id type="github">open-mpi/ompi</remote-id>
@@ -24,7 +24,7 @@ S="${WORKDIR}/${MY_P}"
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 -arm arm64 -ppc ppc64 -x86"
IUSE="cma cuda fortran peruse romio valgrind
IUSE="cma cuda fortran peruse romio ucx valgrind
${IUSE_OPENMPI_FABRICS} ${IUSE_OPENMPI_RM}"
REQUIRED_USE="
@@ -45,13 +45,13 @@ RDEPEND="
>=virtual/zlib-1.2.8-r1:=
cuda? (
>=dev-util/nvidia-cuda-toolkit-6.5.19-r1:=
sys-cluster/ucx
x11-drivers/nvidia-drivers
)
openmpi_fabrics_ofed? ( sys-cluster/rdma-core )
openmpi_fabrics_knem? ( sys-cluster/knem )
openmpi_rm_pbs? ( sys-cluster/torque )
openmpi_rm_slurm? ( sys-cluster/slurm )
ucx? ( sys-cluster/ucx )
"
DEPEND="${RDEPEND}
valgrind? ( dev-debug/valgrind )"
@@ -133,6 +133,7 @@ src_configure() {
$(use_with openmpi_fabrics_knem knem "${EPREFIX}"/usr)
$(use_with openmpi_rm_pbs tm)
$(use_with openmpi_rm_slurm slurm)
$(use_with ucx)
)
CONFIG_SHELL="${BROOT}"/bin/bash econf "${myconf[@]}"