Got the following error when build from source with GPU on MacOS
torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu(1210): error: expression must have a constant value
To Reproduce
Steps to reproduce the behavior:
Use Mac GPU machine
Build the latest PyTorch from source
Follow the instruction to build torchvision from source
wget https://raw.githubusercontent.com/pytorch/pytorch/master/torch/utils/collect_env.py
# For security purposes, please check the contents of collect_env.py before running it.
python collect_env.py
Collecting environment information...
PyTorch version: 1.8.0a0+eaf5ca0
Is debug build: False
CUDA used to build PyTorch: 10.1
ROCM used to build PyTorch: N/A
OS: macOS 10.13.6 (x86_64)
GCC version: Could not collect
Clang version: Could not collect
CMake version: version 3.14.0
Python version: 3.7 (64-bit runtime)
Is CUDA available: True
CUDA runtime version: 10.1.105
GPU models and configuration: TITAN Xp
Nvidia driver version: 1.1.0
cuDNN version: Probably one of the following:
/usr/local/cuda/lib/libcudnn.7.dylib
/usr/local/cuda/lib/libcudnn.dylib
/usr/local/cuda/lib/libcudnn_static.a
HIP runtime version: N/A
MIOpen runtime version: N/A
🐛 Bug
Got the following error when build from source with GPU on MacOS
torchvision/csrc/ops/cuda/deform_conv2d_kernel.cu(1210): error: expression must have a constant value
To Reproduce
Steps to reproduce the behavior:
MACOSX_DEPLOYMENT_TARGET=10.9 CC=clang CXX=clang++ python setup.py install
Expected behavior
Environment
Please copy and paste the output from our environment collection script (or fill out the checklist below manually).
You can get the script and run it with:
Collecting environment information... PyTorch version: 1.8.0a0+eaf5ca0 Is debug build: False CUDA used to build PyTorch: 10.1 ROCM used to build PyTorch: N/A
OS: macOS 10.13.6 (x86_64) GCC version: Could not collect Clang version: Could not collect CMake version: version 3.14.0
Python version: 3.7 (64-bit runtime) Is CUDA available: True CUDA runtime version: 10.1.105 GPU models and configuration: TITAN Xp Nvidia driver version: 1.1.0 cuDNN version: Probably one of the following: /usr/local/cuda/lib/libcudnn.7.dylib /usr/local/cuda/lib/libcudnn.dylib /usr/local/cuda/lib/libcudnn_static.a HIP runtime version: N/A MIOpen runtime version: N/A
Versions of relevant libraries: [pip3] autotorch==0.0.2 [pip3] numpy==1.16.2 [pip3] numpydoc==1.1.0 [pip3] torch==1.8.0a0+unknown [pip3] torch-encoding==1.2.2b20210127 [conda] autotorch 0.0.2 dev_0
[conda] blas 1.0 mkl
[conda] mkl 2019.4 233
[conda] mkl-include 2020.2 260
[conda] mkl-service 2.3.0 py37hfbe908c_0
[conda] mkl_fft 1.1.0 py37hc64f4ea_0
[conda] mkl_random 1.1.1 py37h959d312_0
[conda] numpy 1.15.2 pypi_0 pypi [conda] numpy-base 1.16.2 py37h6575580_0
[conda] numpydoc 1.1.0 py_0
[conda] torch 1.4.0a0+7404463 pypi_0 pypi [conda] torch-encoding 1.2.2b20210127 dev_0