Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
one
spconv
Commits
eb6fa7c2
Commit
eb6fa7c2
authored
Jan 19, 2023
by
yan.yan
Browse files
fix windows cuda script
parent
42c7cdad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
tools/install_windows_cuda.ps1
tools/install_windows_cuda.ps1
+17
-2
No files found.
tools/install_windows_cuda.ps1
View file @
eb6fa7c2
...
...
@@ -10,15 +10,30 @@ $CUDA_KNOWN_URLS = @{
"11.2"
=
"https://developer.download.nvidia.com/compute/cuda/11.2.2/network_installers/cuda_11.2.2_win10_network.exe"
;
"11.3"
=
"https://developer.download.nvidia.com/compute/cuda/11.3.1/network_installers/cuda_11.3.1_win10_network.exe"
;
"11.4"
=
"https://developer.download.nvidia.com/compute/cuda/11.4.2/network_installers/cuda_11.4.2_win10_network.exe"
;
"11.5"
=
"https://developer.download.nvidia.com/compute/cuda/11.5.0/network_installers/cuda_11.5.0_win10_network.exe"
;
"11.6"
=
"https://developer.download.nvidia.com/compute/cuda/11.6.2/network_installers/cuda_11.6.2_windows_network.exe"
"11.6"
=
"https://developer.download.nvidia.com/compute/cuda/11.6.2/network_installers/cuda_11.6.2_windows_network.exe"
;
"11.7"
=
"https://developer.download.nvidia.com/compute/cuda/11.7.1/network_installers/cuda_11.7.1_windows_network.exe"
;
"11.8"
=
"https://developer.download.nvidia.com/compute/cuda/11.8.0/network_installers/cuda_11.8.0_windows_network.exe"
;
"12.0"
=
"https://developer.download.nvidia.com/compute/cuda/12.0.0/network_installers/cuda_12.0.0_windows_network.exe"
;
}
# cuda_runtime.h is in nvcc <= 10.2, but cudart >= 11.0
# @todo - make this easier to vary per CUDA version.
# $CUDA_PACKAGES_IN = @(
# "nvcc";
# "visual_studio_integration";
# "curand_dev";
# "nvrtc_dev";
# "cudart";
# )
## -------------------
## Select CUDA version
## -------------------
# Get the cuda version from the environment as env:cuda.
$CUDA_VERSION_FULL
=
$
env
:
cuda
# Make sure CUDA_VERSION_FULL is set and valid, otherwise error.
if
((
$CUDA_VERSION_FULL
-eq
"10.2"
)
-or
(
$CUDA_VERSION_FULL
-eq
"11.0"
)
-or
(
$CUDA_VERSION_FULL
-eq
"11.1"
)
-or
(
$CUDA_VERSION_FULL
-eq
"11.2"
)){
$CUDA_PACKAGES_IN
=
@(
...
...
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