From 5b6137d91ada0f7b072094b6872277bec7830bf2 Mon Sep 17 00:00:00 2001 From: Kyle Gerheiser <3209794+kgerheiser@users.noreply.github.com> Date: Fri, 15 Dec 2023 12:51:29 -0800 Subject: libfabric: Add uring variant (#41563) * libfabric: Add uring variant * Remove tcp fabric requirement for uring * Fix style and use spec.satisfies --- var/spack/repos/builtin/packages/libfabric/package.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'var') 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)) -- cgit v1.2.3-70-g09d2