Skip to content

Commit

Permalink
Add FutureWarning of UCX < 1.11.1 deprecation (#779)
Browse files Browse the repository at this point in the history
* Add FutureWarning of UCX < 1.11.1 deprecation

* Add deprecation note to UCX 1.9 docs
  • Loading branch information
pentschev authored Nov 22, 2021
1 parent 6e0f28f commit fbd6071
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ Instructions for building UCX 1.11.1:
make -j install


UCX-1.9
~~~~~~~
UCX-1.9 (Deprecated)
~~~~~~~~~~~~~~~~~~~~

Instructions for building ucx 1.9:

Expand Down Expand Up @@ -133,7 +133,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 <https://www.mellanox.com/products/infiniband-drivers/linux/mlnx_ofed>`_. 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:

::

Expand Down
8 changes: 8 additions & 0 deletions ucp/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import logging
import os
import warnings

logger = logging.getLogger("ucx")

Expand Down Expand Up @@ -41,3 +42,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,
)

0 comments on commit fbd6071

Please sign in to comment.