From eda080a372aff36cd2ac2d6cd51cf87267de89e0 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Sat, 7 Nov 2026 21:03:27 -0500 Subject: [PATCH] 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 --- sys-cluster/openmpi/metadata.xml | 1 + .../{openmpi-5.0.9-r1.ebuild => openmpi-5.0.9-r2.ebuild} | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) rename sys-cluster/openmpi/{openmpi-5.0.9-r1.ebuild => openmpi-5.0.9-r2.ebuild} (97%) diff --git a/sys-cluster/openmpi/metadata.xml b/sys-cluster/openmpi/metadata.xml index c51030a3d13cc..7023796e9d70b 100644 --- a/sys-cluster/openmpi/metadata.xml +++ b/sys-cluster/openmpi/metadata.xml @@ -10,6 +10,7 @@ Enable support for contributed package libompitrace Enable PERUSE interface Build the ROMIO MPI-IO component + Enable Unified Communication X library support open-mpi/ompi diff --git a/sys-cluster/openmpi/openmpi-5.0.9-r1.ebuild b/sys-cluster/openmpi/openmpi-5.0.9-r2.ebuild similarity index 97% rename from sys-cluster/openmpi/openmpi-5.0.9-r1.ebuild rename to sys-cluster/openmpi/openmpi-5.0.9-r2.ebuild index 4e75fc57005e0..f00aec6981bda 100644 --- a/sys-cluster/openmpi/openmpi-5.0.9-r1.ebuild +++ b/sys-cluster/openmpi/openmpi-5.0.9-r2.ebuild @@ -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[@]}"