Skip to content

Commit

Permalink
do not reinstall NCCL if one already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
yhtang committed Oct 9, 2023
1 parent aa30e4b commit aebca02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/container/install-nccl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export DEBIAN_FRONTEND=noninteractive
export TZ=America/Los_Angeles

# If NCCL is already installed, don't reinstall it. Print a message and exit
if ![[ dpkg -s libnccl2 libnccl-dev ]]; then
if dpkg -s libnccl2 libnccl-dev &> /dev/null; then
echo "NCCL is already installed. Skipping installation."
exit 0
fi
Expand Down

0 comments on commit aebca02

Please sign in to comment.