Skip to content
MooreThreadsPublic

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17,541 Commits

Folders and files

Repository files navigation


MTUCX

MTUCX is a Moore Threads build of Unified Communication X (UCX) with MUSA support. It keeps the UCX API and adds MUSA memory hooks, MUSA copy and IPC transports, MUSA Fabric VMM support when the toolkit and driver expose the required APIs, and MUSA-aware configuration.

MTUCX is derived from UCX. API names and environment variables from that project are unchanged.

The MTUCX GitHub repository uses master as its default branch, following upstream UCX. The current code reports UCX API version 1.20.0. MIXL must use a matching MTUCX build; an unrelated upstream UCX installation is not a supported substitute for the MUSA backend or the cross-OS Fabric probe.

Dependencies and support

Required dependencies

  • A supported Moore Threads GPU
  • MUSA Driver and MUSA Toolkit
  • Autotools, a C compiler, pkg-config, and the MUSA MTML development package (mtml.h and libmtml)
  • RDMA development packages when InfiniBand or RoCE transports are enabled: libibverbs and librdmacm

Install the MUSA Toolkit and driver from the official documentation before building MTUCX:

The public build examples use MUSA_HOME=/usr/local/musa.

Optional dependencies

  • GDRCopy: used by the MUSA GDRCopy transport. MTUCX builds and runs without it.

Platforms

MTUCX is supported on Linux. Validation on S5000 with MUSA 5.3.0 covered MUSA memory hooks, musa_copy, and cross-OS MUSA Fabric over MTLink through MIXL. GDRCopy and GPU RDMA require separate validation for the target environment.

Build from source

Clone MTUCX and build from its master branch:

git clone --branch master https://github.com/MooreThreads/mtucx.git
cd mtucx
export MUSA_HOME=/usr/local/musa
export MTUCX_PREFIX="$PWD/install"

./autogen.sh
./contrib/configure-release \
    --prefix="$MTUCX_PREFIX" \
    --enable-mt \
    --enable-devel-headers \
    --with-musa="${MUSA_HOME}"
make -j"$(nproc)"
make install

MUSA is optional at configure time. --with-musa accepts an installation prefix, and the default detection mode is guess. Use --without-musa to build the upstream transports without MUSA. Use --with-gdrcopy=<gdrcopy install> only when the optional MUSA GDRCopy transport is required.

The default upstream installation prefix is /usr; the example above uses a local prefix so it does not require root. LICENSE, License.txt, NOTICE, and THIRD_PARTY_NOTICES are installed under <prefix>/share/doc/mtucx/.

Minimal verification

After installation, make the selected build visible and list the available UCX devices:

export LD_LIBRARY_PATH="$MTUCX_PREFIX/lib:$MTUCX_PREFIX/lib/ucx:/usr/local/musa/lib:${LD_LIBRARY_PATH}"
"$MTUCX_PREFIX/bin/ucx_info" -d

A MUSA-enabled build reports the MUSA transports that the installed toolkit supports. The expected MUSA entries are musa_cpy/musa_copy and musa_ipc/musa_ipc; the latter is an intra-node transport unless Fabric VMM support is enabled and validated on the target system.

The configure step enables HAVE_MUSA_FABRIC only when the MUSA headers expose the Fabric handle and export/import declarations. Check the generated result before using Fabric:

grep -E '^#define HAVE_MUSA(_FABRIC)? ' config.h || true

For a local MUSA memory smoke test, run the source-tree hook program and the MUSA perftest (they are not installed as public commands):

LD_LIBRARY_PATH="$MTUCX_PREFIX/lib:$MTUCX_PREFIX/lib/ucx:/usr/local/musa/lib" \
  test/apps/test_musa_hook_dynamic
UCX_TLS=self,musa_copy \
  "$MTUCX_PREFIX/bin/ucx_perftest" -l -t tag_lat -m musa,musa -n 100 -w 10 -s 1024

Cross-OS Fabric is an opt-in integration test and cannot be validated by the single-process commands above. It requires two independent OSes in one Fabric domain, matching MTUCX builds, MUSA Fabric VMM support, and an independent TCP control path. Build and run the standalone probe described in test/apps/musa_fabric/README.md; treat a successful musa_copy or same-host IPC transfer as insufficient evidence of cross-OS Fabric support.

Examples

examples/uct_hello_world.c exercises the UCT API. Build the examples with the normal UCX example target after configuration:

make -C examples

Contributing

Use GitHub Issues for bug reports, installation problems, performance issues, and feature requests. Do not disclose vulnerability details or sensitive information in a public issue.

License

MTUCX modifications are licensed under the BSD-3-Clause License. Read License.txt, LICENSE, and NOTICE.

Third-party components included by upstream UCX are unchanged. Their names, copyright holders, and license terms remain in THIRD_PARTY_NOTICES and are not restated here.

Upstream UCX documentation

The sections below retain the upstream UCX build and project documentation.

Unified Communication X

Unified Communication X (UCX) is an award winning, optimized production proven-communication framework for modern, high-bandwidth and low-latency networks.

UCX exposes a set of abstract communication primitives that utilize the best of available hardware resources and offloads. These include RDMA (InfiniBand and RoCE), TCP, GPUs, shared memory, and network atomic operations.

Please visit our documentation site for more details.

Please review our "Membership Voluntary Consensus Standard" and "Export Compliant Contribution Submissions" policies.



Using UCX

Release Builds

Building UCX is typically a combination of running "configure" and "make". If using a release tarball execute the following commands to install the UCX system from within the directory at the top of the tree:

$ ./contrib/configure-release --prefix=/where/to/install
$ make -j8
$ make install

If directly cloning the git repository use:

$ ./autogen.sh
$ ./contrib/configure-release --prefix=/where/to/install
$ make -j8
$ make install

NOTE: Compiling support for various networks or other specific hardware may require additional command line flags when running configure.

Developer Builds

$ ./autogen.sh
$ ./contrib/configure-devel --prefix=$PWD/install-debug

*** NOTE: Developer builds of UCX typically include a large performance penalty at run-time because of extra debugging code.

Build RPM package

$ contrib/buildrpm.sh -s -b

Build DEB package

$ dpkg-buildpackage -us -uc

Build Doxygen documentation

$ make docs

OpenMPI and OpenSHMEM installation with UCX

Wiki page

MPICH installation with UCX

Wiki page

UCX Performance Test

Start server:

$ ./src/tools/perf/ucx_perftest -c 0

Connect client:

$ ./src/tools/perf/ucx_perftest <server-hostname> -t tag_lat -c 1

NOTE the -c flag sets CPU affinity. If running both >commands on same host, make sure you set the affinity to different CPU cores.

Running internal unit tests

$ make -C test/gtest test

Known issues

  • UCX version 1.8.0 has a bug that may cause data corruption when TCP transport is used in conjunction with shared memory transport. It is advised to upgrade to UCX version 1.9.0 and above. UCX versions released before 1.8.0 don't have this bug.

  • UCX may hang with glibc versions 2.25-2.29 due to known bugs in the pthread_rwlock functions. When such hangs occur, one of the UCX threads gets stuck in pthread_rwlock_rdlock (which is called by ucs_rcache_get), even though no other thread holds the lock. A related issue is reported in glibc Bug 23844. If this issue occurs, it is advised to use glibc version provided with your OS distribution or build glibc from source using versions less than 2.25 or greater than 2.29.

  • Due to compatibility flaw when using UCX with rdma-core v22 setting UCX_DC_MLX5_RX_INLINE=0 is unsupported and will make DC transport unavailable. This issue is fixed in rdma-core v24 and backported to rdma-core-22.4-2.el7 rpm. See ucx issue 5749 for more details.


Architecture

Component Role Description
UCP Protocol Implements high-level abstractions such as tag-matching, streams, connection negotiation and establishment, multi-rail, and handling different memory types
UCT Transport Implements low-level communication primitives such as active messages, remote memory access, and atomic operations
UCS Services A collection of data structures, algorithms, and system utilities for common use
UCM Memory Intercepts memory allocation and release events, used by the memory registration cache

Supported Transports

NOTE: UCX >= 1.12.0 requires rdma-core >= 28.0 or MLNX_OFED >= 5.0 for Infiniband and RoCE transports support.


Supported CPU Architectures


Licenses

UCX is licensed as:


Our Community


Contributor Agreement and Guidelines

In order to contribute to UCX, please sign up with an appropriate Contributor Agreement.

All contributors have to comply with "Membership Voluntary Consensus Standard" and "Export Compliant Contribution Submissions" policies.

Follow these instructions when submitting contributions and changes.

Publications

To reference UCX in a publication, please use the following entry:

@inproceedings{shamis2015ucx,
  title={UCX: an open source framework for HPC network APIs and beyond},
  author={Shamis, Pavel and Venkata, Manjunath Gorentla and Lopez, M Graham and Baker, Matthew B and Hernandez, Oscar and Itigin, Yossi and Dubman, Mike and Shainer, Gilad and Graham, Richard L and Liss, Liran and others},
  booktitle={2015 IEEE 23rd Annual Symposium on High-Performance Interconnects},
  pages={40--43},
  year={2015},
  organization={IEEE}
}

To reference the UCX website:

@misc{openucx-website,
    title = {{The Unified Communication X Library}},
    key = {{{The Unified Communication X Library}},
    howpublished = {{\url{http://www.openucx.org}}}
}

About

No description, website, or topics provided.

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages