From 817a9323683ce467fa1ea2bc3565251c25469236 Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Thu, 9 Sep 2021 11:25:43 -0700 Subject: [PATCH 1/2] Add FutureWarning of UCX < 1.11.1 deprecation --- ucp/__init__.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ucp/__init__.py b/ucp/__init__.py index a00cf218c..d5c72f2f4 100644 --- a/ucp/__init__.py +++ b/ucp/__init__.py @@ -5,6 +5,7 @@ import logging import os +import warnings from ._version import get_versions as _get_versions from .core import * # noqa @@ -40,3 +41,10 @@ __version__ = _get_versions()["version"] __ucx_version__ = "%d.%d.%d" % get_ucx_version() + +if get_ucx_version() < (1, 11, 1): + warnings.warn( + f"Support for UCX {__ucx_version__} is deprecated, it's highly recommended " + "upgrading to 1.11.1 or newer.", + FutureWarning, + ) From 438826f34b58425ba3bb14543fa69f0acd86180c Mon Sep 17 00:00:00 2001 From: Peter Andreas Entschev Date: Thu, 9 Sep 2021 12:39:19 -0700 Subject: [PATCH 2/2] Add deprecation note to UCX 1.9 docs --- docs/source/install.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/install.rst b/docs/source/install.rst index 778f48407..e45c0a54d 100644 --- a/docs/source/install.rst +++ b/docs/source/install.rst @@ -91,8 +91,8 @@ Instructions for building UCX 1.11.1: make -j install -UCX-1.9 -~~~~~~~ +UCX-1.9 (Deprecated) +~~~~~~~~~~~~~~~~~~~~ Instructions for building ucx 1.9: @@ -131,7 +131,7 @@ As noted above, the UCX conda package no longer builds support for IB/RDMA. To If OFED drivers are not installed on the machine, you can download drivers at directly from `Mellanox `_. For versions older than 5.1 click on, *archive versions*. -Building UCX 1.9 or 1.11 as shown previously should automatically include IB/RDMA support if available in the system. It is possible to explicitly activate those, ensuring the system satisfies all dependencies or fail otherwise, by including the ``--with-rdmacm`` and ``--with-verbs`` build flags. For example: +Building UCX 1.11.1 or 1.9 (deprecated) as shown previously should automatically include IB/RDMA support if available in the system. It is possible to explicitly activate those, ensuring the system satisfies all dependencies or fail otherwise, by including the ``--with-rdmacm`` and ``--with-verbs`` build flags. For example: ::