Skip to content

Commit 2ab781c

Browse files
authored
Add CUDA 11.2 support to manywheels scripts (#617)
1 parent e19785a commit 2ab781c

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,7 @@ node_modules
7878

7979
# mypy
8080
**/.mypy_cache/
81+
82+
# Mac directory meta
83+
.DS_Store
84+
*/**/.DS_Store

manywheel/build.sh

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ cuda_version_nodot=$(echo $CUDA_VERSION | tr -d '.')
5252

5353
TORCH_CUDA_ARCH_LIST="3.7;5.0;6.0;7.0"
5454
case ${CUDA_VERSION} in
55+
11.2)
56+
TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST};7.5;8.0;8.6"
57+
EXTRA_CAFFE2_CMAKE_FLAGS+=("-DATEN_NO_TEST=ON")
58+
;;
5559
11.1)
5660
TORCH_CUDA_ARCH_LIST="5.0;7.0;8.0;8.6" # removing some to prevent bloated binary size
5761
EXTRA_CAFFE2_CMAKE_FLAGS+=("-DATEN_NO_TEST=ON")
@@ -207,7 +211,7 @@ DEPS_SONAME=(
207211
)
208212
elif [[ $CUDA_VERSION == "11.1" ]]; then
209213
DEPS_LIST=(
210-
"/usr/local/cuda/lib64/libcudart.so.11.0" # CUDA 11.1 usues libcudart11.0 for backwards compat
214+
"/usr/local/cuda/lib64/libcudart.so.11.0" # CUDA 11.1 uses libcudart11.0 for backwards compat
211215
"/usr/local/cuda/lib64/libnvToolsExt.so.1"
212216
"/usr/local/cuda/lib64/libnvrtc.so.11.1"
213217
"/usr/local/cuda/lib64/libnvrtc-builtins.so"
@@ -221,6 +225,22 @@ DEPS_SONAME=(
221225
"libnvrtc-builtins.so"
222226
"libgomp.so.1"
223227
)
228+
elif [[ $CUDA_VERSION == "11.2" ]]; then
229+
DEPS_LIST=(
230+
"/usr/local/cuda/lib64/libcudart.so.11.2.72"
231+
"/usr/local/cuda/lib64/libnvToolsExt.so.1"
232+
"/usr/local/cuda/lib64/libnvrtc.so.11.2"
233+
"/usr/local/cuda/lib64/libnvrtc-builtins.so"
234+
"$LIBGOMP_PATH"
235+
)
236+
237+
DEPS_SONAME=(
238+
"libcudart.so.11.2.72"
239+
"libnvToolsExt.so.1"
240+
"libnvrtc.so.11.2"
241+
"libnvrtc-builtins.so"
242+
"libgomp.so.1"
243+
)
224244
else
225245
echo "Unknown cuda version $CUDA_VERSION"
226246
exit 1

manywheel/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ for rocm_version in 3.7 3.8 3.9 3.10 4.0; do
1616
)
1717
done
1818

19-
for cuda_version in 9.2 10.1 10.2 11.0 11.1; do
19+
for cuda_version in 9.2 10.1 10.2 11.0 11.1 11.2; do
2020
(
2121
set -x
2222
DOCKER_BUILDKIT=1 docker build \

0 commit comments

Comments
 (0)