forked from skypilot-org/skypilot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Performance] Speed up Azure A10 instance creation (skypilot-org#4205)
* Use date instead of timestamp in skypilot image names * Speed up Azure A10 VM creation * disable nouveau and use smaller instance * address comments * address comments * add todo
- Loading branch information
1 parent
30136b7
commit 83fade9
Showing
12 changed files
with
69 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
sky/clouds/service_catalog/images/provisioners/cuda-azure-grid.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/bin/bash | ||
|
||
sudo apt update | ||
sudo apt install -y build-essential | ||
|
||
echo "Installing GRID driver..." | ||
GRID_DRIVER_URL="https://download.microsoft.com/download/8/d/a/8da4fb8e-3a9b-4e6a-bc9a-72ff64d7a13c/NVIDIA-Linux-x86_64-535.161.08-grid-azure.run" | ||
GRID_DRIVER_FILE="NVIDIA-Linux-x86_64-535.161.08-grid-azure.run" | ||
|
||
wget -nv $GRID_DRIVER_URL -O $GRID_DRIVER_FILE | ||
sudo chmod +x $GRID_DRIVER_FILE | ||
sudo sh $GRID_DRIVER_FILE --silent --disable-nouveau | ||
|
||
echo "Set vGPU Licensing Daemon config..." | ||
sudo cp /etc/nvidia/gridd.conf.template /etc/nvidia/gridd.conf | ||
sudo sed -i '/^FeatureType=0/s/^/# /' /etc/nvidia/gridd.conf | ||
echo "IgnoreSP=FALSE" | sudo tee -a /etc/nvidia/gridd.conf | ||
echo "EnableUI=FALSE" | sudo tee -a /etc/nvidia/gridd.conf | ||
|
||
echo "Installing CUDA toolkit..." | ||
CUDA_TOOLKIT_URL="https://developer.download.nvidia.com/compute/cuda/12.2.0/local_installers/cuda_12.2.0_535.54.03_linux.run" | ||
CUDA_TOOLKIT_FILE="cuda_12.2.0_535.54.03_linux.run" | ||
wget -nv $CUDA_TOOLKIT_URL -O $CUDA_TOOLKIT_FILE | ||
sudo sh $CUDA_TOOLKIT_FILE --silent --toolkit --override | ||
|
||
# Set environment variables | ||
echo 'export PATH=$PATH:/usr/local/cuda-12.2/bin' >> ~/.bashrc | ||
echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-12.2/lib64' >> ~/.bashrc | ||
source ~/.bashrc | ||
|
||
# Verify installations | ||
rm -f NVIDIA-Linux-x86_64-535.161.08-grid-azure.run cuda_12.2.0_535.54.03_linux.run | ||
nvidia-smi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
sky/clouds/service_catalog/images/skypilot-gcp-cpu-ubuntu.pkr.hcl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters