Skip to content

Commit

Permalink
[k8s] sky local up gpu support - ignore if ldconfig.real already ex…
Browse files Browse the repository at this point in the history
…ists (#3509)

ignore if ldconfig.real already exists
  • Loading branch information
romilbhardwaj authored May 6, 2024
1 parent 015061e commit 2ff95bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sky/utils/kubernetes/create_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ if $ENABLE_GPUS; then
echo "Enabling GPU support..."
# Run patch for missing ldconfig.real
# https://github.com/NVIDIA/nvidia-docker/issues/614#issuecomment-423991632
docker exec -ti skypilot-control-plane ln -s /sbin/ldconfig /sbin/ldconfig.real
docker exec -ti skypilot-control-plane /bin/bash -c '[ ! -f /sbin/ldconfig.real ] && ln -s /sbin/ldconfig /sbin/ldconfig.real || echo "/sbin/ldconfig.real already exists"'

echo "Installing NVIDIA GPU operator..."
# Install the NVIDIA GPU operator
Expand Down

0 comments on commit 2ff95bb

Please sign in to comment.