From a90200528fc8fefbd1d04b62f64db1e925596b8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Bederi=C3=A1n?= Date: Wed, 5 Jul 2023 04:48:58 -0300 Subject: [PATCH] hcoll: ucx version requirements (#38665) --- var/spack/repos/builtin/packages/hcoll/package.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/var/spack/repos/builtin/packages/hcoll/package.py b/var/spack/repos/builtin/packages/hcoll/package.py index e11d738e22..b9f666c56e 100644 --- a/var/spack/repos/builtin/packages/hcoll/package.py +++ b/var/spack/repos/builtin/packages/hcoll/package.py @@ -14,8 +14,23 @@ class Hcoll(Package): homepage = "https://www.mellanox.com/products/fca" has_code = False + # To get the version number + # grep HCOLL_VERNO_STRING path/include/hcoll/api/hcoll_version.h + version("4.8.3221") # HPC-X 2.14/2.15, UCX 1.15 + version("4.8.3220") # HPC-X 2.13, UCX 1.14 + version("4.8.3217") # HPC-X 2.12, UCX 1.14 + version("4.7.3208") # HPC-X 2.11, UCX 1.13 + version("4.7.3202") # HPC-X 2.10, UCX 1.12 + version("4.7.3199") # HPC-X 2.9, UCX 1.11 version("3.9.1927") + # ucx throws warnings when running alongside the wrong version of hcoll + requires("ucx@1.15", when="@4.8.3221") + requires("ucx@1.14", when="@4.8.3217:4.8.3220") + requires("ucx@1.13", when="@4.7.3208") + requires("ucx@1.12", when="@4.7.3202") + requires("ucx@1.11", when="@4.7.3199") + # HCOLL needs to be added as an external package to SPACK. For this, the # config file packages.yaml needs to be adjusted: #