Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
torch-sparse
Commits
09a90659
Commit
09a90659
authored
Mar 11, 2022
by
rusty1s
Browse files
[ci skip]
parent
b0ff709e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
53 additions
and
1 deletion
+53
-1
.github/workflows/building.yml
.github/workflows/building.yml
+2
-1
.github/workflows/cuda/cu115-Linux-env.sh
.github/workflows/cuda/cu115-Linux-env.sh
+8
-0
.github/workflows/cuda/cu115-Linux.sh
.github/workflows/cuda/cu115-Linux.sh
+15
-0
.github/workflows/cuda/cu115-Windows-env.sh
.github/workflows/cuda/cu115-Windows-env.sh
+8
-0
.github/workflows/cuda/cu115-Windows.sh
.github/workflows/cuda/cu115-Windows.sh
+20
-0
No files found.
.github/workflows/building.yml
View file @
09a90659
...
@@ -13,7 +13,8 @@ jobs:
...
@@ -13,7 +13,8 @@ jobs:
os
:
[
ubuntu-18.04
,
macos-10.15
,
windows-2019
]
os
:
[
ubuntu-18.04
,
macos-10.15
,
windows-2019
]
python-version
:
[
'
3.7'
,
'
3.8'
,
'
3.9'
,
'
3.10'
]
python-version
:
[
'
3.7'
,
'
3.8'
,
'
3.9'
,
'
3.10'
]
torch-version
:
[
1.10.0
,
1.11.0
]
torch-version
:
[
1.10.0
,
1.11.0
]
cuda-version
:
[
'
cpu'
,
'
cu102'
,
'
cu113'
,
'
cu115'
]
cuda-version
:
[
'
cu115'
]
# cuda-version: ['cpu', 'cu102', 'cu113', 'cu115']
exclude
:
exclude
:
-
torch-version
:
1.10.0
-
torch-version
:
1.10.0
cuda-version
:
'
cu115'
cuda-version
:
'
cu115'
...
...
.github/workflows/cuda/cu115-Linux-env.sh
0 → 100644
View file @
09a90659
#!/bin/bash
CUDA_HOME
=
/usr/local/cuda-11.5
LD_LIBRARY_PATH
=
${
CUDA_HOME
}
/lib64:
${
LD_LIBRARY_PATH
}
PATH
=
${
CUDA_HOME
}
/bin:
${
PATH
}
export
FORCE_CUDA
=
1
export
TORCH_CUDA_ARCH_LIST
=
"3.5;5.0+PTX;6.0;7.0;7.5;8.0;8.6"
.github/workflows/cuda/cu115-Linux.sh
0 → 100755
View file @
09a90659
#!/bin/bash
OS
=
ubuntu1804
wget
-nv
https://developer.download.nvidia.com/compute/cuda/repos/
${
OS
}
/x86_64/cuda-
${
OS
}
.pin
sudo mv
cuda-
${
OS
}
.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget
-nv
https://developer.download.nvidia.com/compute/cuda/11.5.2/local_installers/cuda-repo-
${
OS
}
-11-5-local_11
.5.2-495.29.05-1_amd64.deb
sudo
dpkg
-i
cuda-repo-
${
OS
}
-11-5-local_11
.5.2-495.29.05-1_amd64.deb
sudo
apt-key add /var/cuda-repo-
${
OS
}
-11-5-local
/7fa2af80.pub
sudo
apt-get
-qq
update
sudo
apt
install
cuda-nvcc-11-5 cuda-libraries-dev-11-5
sudo
apt clean
rm
-f
https://developer.download.nvidia.com/compute/cuda/11.5.2/local_installers/cuda-repo-
${
OS
}
-11-5-local_11
.5.2-495.29.05-1_amd64.deb
.github/workflows/cuda/cu115-Windows-env.sh
0 → 100644
View file @
09a90659
#!/bin/bash
CUDA_HOME
=
/c/Program
\
Files/NVIDIA
\
GPU
\
Computing
\
Toolkit/CUDA/v11.3
PATH
=
${
CUDA_HOME
}
/bin:
$PATH
PATH
=
/c/Program
\
Files
\ \(
x86
\)
/Microsoft
\
Visual
\
Studio/2017/BuildTools/MSBuild/15.0/Bin:
$PATH
export
FORCE_CUDA
=
1
export
TORCH_CUDA_ARCH_LIST
=
"6.0+PTX"
.github/workflows/cuda/cu115-Windows.sh
0 → 100755
View file @
09a90659
#!/bin/bash
# TODO We currently use CUDA 11.3 to build CUDA 11.5 Windows wheels
# 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"
export
CUDA_SHORT
=
11.3
export
CUDA_URL
=
https://developer.download.nvidia.com/compute/cuda/
${
CUDA_SHORT
}
.0/local_installers
export
CUDA_FILE
=
cuda_
${
CUDA_SHORT
}
.0_465.89_win10.exe
# Install CUDA:
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
}
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment