Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- (Optional) Configure the virtual environment if needed.
pip install virtualenv virtualenv Horovod source Horovod/bin/activate
- Go to the installation directory.
cd /path/to/HOROVOD
- Install TensorFlow.
pip install tensorflow-2.4.1-cp37-cp37m-manylinux_2_24_aarch64.whl --trusted-host mirrors.tools.huawei.com -i http://mirrors.tools.huawei.com/pypi/simple
- Update NumPy.
pip install -U numpy --trusted-host mirrors.tools.huawei.com -i http://mirrors.tools.huawei.com/pypi/simple python3 -c "import tensorflow as tf; print(tf.__version__); print(tf.sysconfig.get_include()); print(' '.join(tf.sysconfig.get_link_flags())); print(' '.join(tf.sysconfig.get_compile_flags()))"If the following information is displayed, the update is successful:

- Install PyTorch.
git clone --depth=1 --recursive https://github.com/pytorch/pytorch cd pytorch pip install pyyaml --trusted-host mirrors.tools.huawei.com -i http://mirrors.tools.huawei.com/pypi/simple python setup.py install
- Install the dependencies.
pip install pytest ninja mock --trusted-host mirrors.tools.huawei.com -i http://mirrors.tools.huawei.com/pypi/simple
- Install Horovod.
HOROVOD_WITH_PYTORCH=1 HOROVOD_WITH_TENSORFLOW=1 HOROVOD_WITH_MPI=1 pip install --no-cache-dir git+https://github.com/horovod/horovod.git@master --trusted-host mirrors.tools.huawei.com -i http://mirrors.tools.huawei.com/pypi/simple
Parent topic: Horovod 0.25.0 Porting Guide (Kylin V10)