To install the provided
.deb
file for NCCL, you would typically download it and then use the dpkg
utility to install it. However, before you install NCCL, you should also ensure that you have the necessary NVIDIA drivers and CUDA toolkit installed, as NCCL depends on them.Here's a step-by-step guide to install the provided NCCL
.deb
file:- Download the
.deb
file: Usewget
orcurl
to download the.deb
file:
wget <https://developer.download.nvidia.com/compute/machine-learning/nccl/secure/2.18.3/ubuntu2004/x86_64/nccl-local-repo-ubuntu2004-2.18.3-cuda12.0_1.0-1_amd64.deb>
- Install the
.deb
package: Once downloaded, you can use thedpkg
utility to install the package:
sudo dpkg -i nccl-local-repo-ubuntu2004-2.18.3-cuda12.0_1.0-1_amd64.deb
- Add the NCCL repository to your sources:
After installing the
.deb
package, it actually adds a local APT repository on your system for NCCL. You'll need to update your package cache to recognize it:
sudo apt update
- Install NCCL: With the repository added, you can now install NCCL:
sudo apt install libnccl2 libnccl-dev
- Verify Installation: After installation, you can check the installed version to ensure it's installed correctly:
dpkg -l | grep nccl
Remember, this is just for installing NCCL. If you're planning to use NCCL for distributed training with GPUs, ensure you have the necessary NVIDIA drivers and the CUDA toolkit installed. If you need steps for those, let me know!