summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Gerheiser <3209794+kgerheiser@users.noreply.github.com>2023-12-15 12:51:29 -0800
committerGitHub <noreply@github.com>2023-12-15 12:51:29 -0800
commit5b6137d91ada0f7b072094b6872277bec7830bf2 (patch)
treedfa3ef72811b80153ad82142223159fef8b77996
parentb7edcbecd7adc4f7db670392499295bfcf6bdab1 (diff)
downloadspack-5b6137d91ada0f7b072094b6872277bec7830bf2.tar.gz
spack-5b6137d91ada0f7b072094b6872277bec7830bf2.tar.bz2
spack-5b6137d91ada0f7b072094b6872277bec7830bf2.tar.xz
spack-5b6137d91ada0f7b072094b6872277bec7830bf2.zip
libfabric: Add uring variant (#41563)
* libfabric: Add uring variant * Remove tcp fabric requirement for uring * Fix style and use spec.satisfies
-rw-r--r--var/spack/repos/builtin/packages/libfabric/package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/libfabric/package.py b/var/spack/repos/builtin/packages/libfabric/package.py
index adde5fad85..6a4b178016 100644
--- a/var/spack/repos/builtin/packages/libfabric/package.py
+++ b/var/spack/repos/builtin/packages/libfabric/package.py
@@ -99,6 +99,8 @@ class Libfabric(AutotoolsPackage):
variant("debug", default=False, description="Enable debugging")
+ variant("uring", default=False, when="@1.17.0:", description="Enable uring support")
+
# For version 1.9.0:
# headers: fix forward-declaration of enum fi_collective_op with C++
patch(
@@ -119,6 +121,7 @@ class Libfabric(AutotoolsPackage):
depends_on("ucx", when="@1.18.0: fabrics=ucx")
depends_on("uuid", when="fabrics=opx")
depends_on("numactl", when="fabrics=opx")
+ depends_on("liburing@2.1:", when="+uring")
depends_on("m4", when="@main", type="build")
depends_on("autoconf", when="@main", type="build")
@@ -191,6 +194,9 @@ class Libfabric(AutotoolsPackage):
else:
args.append("--with-kdreg=no")
+ if self.spec.satisfies("+uring"):
+ args.append("--with-uring=yes")
+
for fabric in [f if isinstance(f, str) else f[0].value for f in self.fabrics]:
if "fabrics=" + fabric in self.spec:
args.append("--enable-{0}=yes".format(fabric))