Skip to content

Commit 2755dea

Browse files
committed
Turning off ATen tests for CUDA9.2
1 parent adcb783 commit 2755dea

File tree

2 files changed

+18
-14
lines changed

2 files changed

+18
-14
lines changed

manywheel/build.sh

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,31 +18,30 @@ export USE_STATIC_NCCL=1
1818
export ATEN_STATIC_CUDA=1
1919
export USE_CUDA_STATIC_LINK=1
2020

21+
# Keep an array of cmake variables to add to
22+
if [[ -z "$CMAKE_ARGS" ]]; then
23+
CMAKE_ARGS=()
24+
fi
25+
26+
# Determine CUDA version and architectures to build for
2127
CUDA_VERSION=$(nvcc --version|tail -n1|cut -f5 -d" "|cut -f1 -d",")
28+
echo "CUDA $CUDA_VERSION Detected"
2229

2330
export TORCH_CUDA_ARCH_LIST="3.5;5.0+PTX"
2431
if [[ $CUDA_VERSION == "8.0" ]]; then
25-
echo "CUDA 8.0 Detected"
2632
export TORCH_CUDA_ARCH_LIST="$TORCH_CUDA_ARCH_LIST;6.0;6.1"
2733
elif [[ $CUDA_VERSION == "9.0" ]]; then
28-
echo "CUDA $CUDA_VERSION Detected"
2934
export TORCH_CUDA_ARCH_LIST="$TORCH_CUDA_ARCH_LIST;6.0;7.0"
3035
elif [[ $CUDA_VERSION == "9.2" ]]; then
31-
echo "CUDA $CUDA_VERSION Detected"
3236
export TORCH_CUDA_ARCH_LIST="$TORCH_CUDA_ARCH_LIST;6.0;6.1;7.0"
33-
fi
34-
echo $TORCH_CUDA_ARCH_LIST
35-
36-
if [[ $CUDA_VERSION == "8.0" ]]; then
37-
WHEELHOUSE_DIR="wheelhouse80"
38-
elif [[ $CUDA_VERSION == "9.0" ]]; then
39-
WHEELHOUSE_DIR="wheelhouse90"
40-
elif [[ $CUDA_VERSION == "9.2" ]]; then
41-
WHEELHOUSE_DIR="wheelhouse92"
37+
# ATen tests can't build with CUDA 9.2 and the old compiler used here
38+
CMAKE_ARGS+=("-DATEN_NO_TEST=ON")
4239
else
4340
echo "unknown cuda version $CUDA_VERSION"
4441
exit 1
4542
fi
43+
echo $TORCH_CUDA_ARCH_LIST
44+
WHEELHOUSE_DIR="wheelhouse${CUDA_VERSION:0:1}{CUDA_VERSION:2:1}"
4645

4746
# Build for given Python versions, or for all in /opt/python if none given
4847
if [[ -z "$DESIRED_PYTHON" ]]; then
@@ -90,7 +89,7 @@ for PYDIR in "${python_installations[@]}"; do
9089
else
9190
pip install numpy==1.11
9291
fi
93-
time python setup.py bdist_wheel -d $WHEELHOUSE_DIR
92+
time CMAKE_ARGS=${CMAKE_ARGS[@]} python setup.py bdist_wheel -d $WHEELHOUSE_DIR
9493
done
9594

9695
popd

manywheel/build_cpu.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ export NO_CUDA=1
1313
export CMAKE_LIBRARY_PATH="/opt/intel/lib:/lib:$CMAKE_LIBRARY_PATH"
1414
export CMAKE_INCLUDE_PATH="/opt/intel:$CMAKE_INCLUDE_PATH"
1515

16+
# Keep an array of cmake variables to add to
17+
if [[ -z "$CMAKE_ARGS" ]]; then
18+
CMAKE_ARGS=()
19+
fi
20+
1621
WHEELHOUSE_DIR="wheelhousecpu"
1722

1823
rm -rf /usr/local/cuda*
@@ -62,7 +67,7 @@ for PYDIR in "${python_installations[@]}"; do
6267
else
6368
pip install numpy==1.11
6469
fi
65-
time python setup.py bdist_wheel -d $WHEELHOUSE_DIR
70+
time CMAKE_ARGS=${CMAKE_ARGS[@]} python setup.py bdist_wheel -d $WHEELHOUSE_DIR
6671
done
6772

6873
popd

0 commit comments

Comments
 (0)