Skip to content

Commit fb4e7c8

Browse files
committed
cuda 10.1 fixups
Signed-off-by: Edward Z. Yang <[email protected]>
1 parent 7579f7a commit fb4e7c8

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

packaging/pkg_helpers.bash

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ setup_cuda() {
5252

5353
# Now work out the CUDA settings
5454
case "$CU_VERSION" in
55+
cu101)
56+
export CUDA_HOME=/usr/local/cuda-10.1/
57+
export FORCE_CUDA=1
58+
# Hard-coding gencode flags is temporary situation until
59+
# https://github.com/pytorch/pytorch/pull/23408 lands
60+
export NVCC_FLAGS="-gencode=arch=compute_35,code=sm_35 -gencode=arch=compute_50,code=sm_50 -gencode=arch=compute_60,code=sm_60 -gencode=arch=compute_70,code=sm_70 -gencode=arch=compute_75,code=sm_75 -gencode=arch=compute_50,code=compute_50"
61+
;;
5562
cu100)
5663
export CUDA_HOME=/usr/local/cuda-10.0/
5764
export FORCE_CUDA=1

packaging/wheel/linux_manywheel.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ "$#" -ne 1 ]; then
88
fi
99
export CUVER="$1" # cu92 cu100 cpu
1010

11-
if [[ "$CUVER" == "cu100" ]]; then
11+
if [[ "$CUVER" == "cu101" ]]; then
1212
cu_suffix=""
1313
else
1414
cu_suffix="+$CUVER"

0 commit comments

Comments
 (0)