Build and Installation#
Obtain Source Code#
git clone https://github.com/flagos-ai/FlagCX.git
cd FlagCX
git submodule update --init --recursive
Installation#
Option A — Pythonic Installation (pip install):
pip install . -v --no-build-isolation
Option B — C++ library (make):
make <backend>=1 -j$(nproc)
where <backend> is one of:
USE_NVIDIA: NVIDIA GPU supportUSE_ILUVATAR_COREX: Iluvatar Corex supportUSE_CAMBRICON: Cambricon supportUSE_METAX: MetaX supportUSE_MUSA: Moore Threads supportUSE_KUNLUNXIN: Kunlunxin supportUSE_DU: Hygon supportUSE_ASCEND: Huawei Ascend supportUSE_AMD: AMD supportUSE_TSM: TsingMicro supportUSE_ENFLAME: Enflame supportUSE_GLOO: GLOO supportUSE_MPI: MPI support
Note that Option A also supports <backend>=1, allowing users to explicitly specify the backend. Otherwise, it will be selected automatically.
The default installation path is set to build/, you can manually set BUILDDIR environment variable to customize the build path.
You may also specify DEVICE_HOME and/or CCL_HOME to indicate the installation paths of the device runtime and installation path
of the communication libraries respectively.