c++cmake

Why ucx/libucx can not be found by cmake?


I'm compiling https://github.com/NVIDIA/TensorRT-LLM/ from source in a Ubuntu 20.04 docker and encounter such an error:

CMake Warning at CMakeLists.txt:549 (find_package): By not providing "Finducx.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "ucx", but
CMake did not find one.

Could not find a package configuration file provided by "ucx" with any of
the following names:

ucxConfig.cmake                                                                                                                                                                                                
ucx-config.cmake

I tried install libucx/ libucx-dev by apt,

apt update
apt install libucx-dev

but the apt gives me:

E: Unable to locate package libucx-dev

So How to install libucx in docker so that cmake could find it? (My cmake version is 3.22


Solution

  • As others said, there is no official libucx-dev on ubuntu 20.04. But one can follow the steps in openucx.readthedocs.io/en/master/running.html to build it from src and install.