-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build
pyg_lib==0.1.0
wheels (part 2) (#152)
- Loading branch information
Showing
6 changed files
with
126 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
case ${1} in | ||
cu117) | ||
export FORCE_CUDA=1 | ||
export PATH=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.7/bin:${PATH} | ||
;; | ||
cu116) | ||
export FORCE_CUDA=1 | ||
export PATH=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.3/bin:${PATH} | ||
;; | ||
cu115) | ||
export FORCE_CUDA=1 | ||
export PATH=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.3/bin:${PATH} | ||
;; | ||
cu113) | ||
export FORCE_CUDA=1 | ||
export PATH=/c/Program\ Files/NVIDIA\ GPU\ Computing\ Toolkit/CUDA/v11.3/bin:${PATH} | ||
;; | ||
*) | ||
;; | ||
esac |
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,40 @@ | ||
#!/bin/bash | ||
|
||
# Install NVIDIA drivers, see: | ||
# https://github.com/pytorch/vision/blob/master/packaging/windows/internal/cuda_install.bat#L99-L102 | ||
curl -k -L "https://drive.google.com/u/0/uc?id=1injUyo3lnarMgWyRcXqKg4UGnN0ysmuq&export=download" --output "/tmp/gpu_driver_dlls.zip" | ||
7z x "/tmp/gpu_driver_dlls.zip" -o"/c/Windows/System32" | ||
|
||
case ${1} in | ||
cu117) | ||
CUDA_SHORT=11.7 | ||
CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.1/local_installers | ||
CUDA_FILE=cuda_${CUDA_SHORT}.1_516.94_windows.exe | ||
;; | ||
cu116) | ||
CUDA_SHORT=11.3 | ||
CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.0/local_installers | ||
CUDA_FILE=cuda_${CUDA_SHORT}.0_465.89_win10.exe | ||
;; | ||
cu115) | ||
CUDA_SHORT=11.3 | ||
CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.0/local_installers | ||
CUDA_FILE=cuda_${CUDA_SHORT}.0_465.89_win10.exe | ||
;; | ||
cu113) | ||
CUDA_SHORT=11.3 | ||
CUDA_URL=https://developer.download.nvidia.com/compute/cuda/${CUDA_SHORT}.0/local_installers | ||
CUDA_FILE=cuda_${CUDA_SHORT}.0_465.89_win10.exe | ||
;; | ||
*) | ||
echo "Unrecognized CUDA_VERSION=${1}" | ||
exit 1 | ||
;; | ||
esac | ||
|
||
curl -k -L "${CUDA_URL}/${CUDA_FILE}" --output "${CUDA_FILE}" | ||
echo "" | ||
echo "Installing from ${CUDA_FILE}..." | ||
PowerShell -Command "Start-Process -FilePath \"${CUDA_FILE}\" -ArgumentList \"-s nvcc_${CUDA_SHORT} cuobjdump_${CUDA_SHORT} nvprune_${CUDA_SHORT} cupti_${CUDA_SHORT} cublas_dev_${CUDA_SHORT} cudart_${CUDA_SHORT} cufft_dev_${CUDA_SHORT} curand_dev_${CUDA_SHORT} cusolver_dev_${CUDA_SHORT} cusparse_dev_${CUDA_SHORT} thrust_${CUDA_SHORT} npp_dev_${CUDA_SHORT} nvrtc_dev_${CUDA_SHORT} nvml_dev_${CUDA_SHORT}\" -Wait -NoNewWindow" | ||
echo "Done!" | ||
rm -f "${CUDA_FILE}" |
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 @@ | ||
#!/bin/bash |
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