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-scatter
Commits
9a3812b4
Commit
9a3812b4
authored
Apr 23, 2020
by
rusty1s
Browse files
windows fixes
parent
4fe701b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
script/cuda.sh
script/cuda.sh
+4
-3
script/torch.sh
script/torch.sh
+2
-2
No files found.
script/cuda.sh
View file @
9a3812b4
...
@@ -36,14 +36,14 @@ fi
...
@@ -36,14 +36,14 @@ fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
$IDX
"
=
"cu92"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
$IDX
"
=
"cu92"
]
;
then
export
CUDA_SHORT
=
9.2
export
CUDA_SHORT
=
9.2
export
CUDA_URL
=
https://developer.
download.
nvidia.com/compute/cuda/
${
CUDA_SHORT
}
/Prod2/local_installers2
export
CUDA_URL
=
https://developer.nvidia.com/compute/cuda/
${
CUDA_SHORT
}
/Prod2/local_installers2
export
CUDA_FILE
=
cuda_
${
CUDA_SHORT
}
.148_win10
export
CUDA_FILE
=
cuda_
${
CUDA_SHORT
}
.148_win10
export
TOOLKIT
=
"cudatoolkit=
${
CUDA_SHORT
}
"
export
TOOLKIT
=
"cudatoolkit=
${
CUDA_SHORT
}
"
fi
fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
$IDX
"
=
"cu101"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
$IDX
"
=
"cu101"
]
;
then
export
CUDA_SHORT
=
10.1
export
CUDA_SHORT
=
10.1
export
CUDA_URL
=
https://developer.
download.
nvidia.com/compute/cuda/
${
CUDA_SHORT
}
/Prod/local_installers
export
CUDA_URL
=
https://developer.nvidia.com/compute/cuda/
${
CUDA_SHORT
}
/Prod/local_installers
export
CUDA_FILE
=
cuda_
${
CUDA_SHORT
}
.105_418.96_win10.exe
export
CUDA_FILE
=
cuda_
${
CUDA_SHORT
}
.105_418.96_win10.exe
export
TOOLKIT
=
"cudatoolkit=
${
CUDA_SHORT
}
"
export
TOOLKIT
=
"cudatoolkit=
${
CUDA_SHORT
}
"
fi
fi
...
@@ -81,7 +81,8 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${IDX}" != "cpu" ]; then
...
@@ -81,7 +81,8 @@ if [ "${TRAVIS_OS_NAME}" = "linux" ] && [ "${IDX}" != "cpu" ]; then
fi
fi
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
IDX
}
"
!=
"cpu"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
IDX
}
"
!=
"cpu"
]
;
then
# Install NVIDIA drivers
# 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"
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"
7z x
"/tmp/gpu_driver_dlls.zip"
-o
"/c/Windows/System32"
...
...
script/torch.sh
View file @
9a3812b4
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
# Fix "member may not be initialized" error on Windows: https://github.com/pytorch/pytorch/issues/27958
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
IDX
}
"
!=
"cpu"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"windows"
]
&&
[
"
${
IDX
}
"
!=
"cpu"
]
;
then
sed
-i
.bak
-e
's/constexpr/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/
jit
/script/module.h
sed
-i
.bak
-e
's/constexpr/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/
api
/script/module.h
sed
-i
.bak
-e
's/constexpr/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/
jit
/argument_spec.h
sed
-i
.bak
-e
's/constexpr/const/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/torch/csrc/
runtime
/argument_spec.h
sed
-i
.bak
-e
's/return \*(this->value)/return \*((type\*)this->value)/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
sed
-i
.bak
-e
's/return \*(this->value)/return \*((type\*)this->value)/g'
/c/tools/miniconda3/envs/test/lib/site-packages/torch/include/pybind11/cast.h
fi
fi
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