diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/libfabric/package.py | 6 |
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)) |