-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Description
Issue description
The error LINK : fatal error LNK1189: library limit of 65535 objects exceeded occurred when linking caffe2 using Visual Studio 2015.
Code example
set "VS150COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\VC\Auxiliary\Build"
set CMAKE_GENERATOR=Visual Studio 15 2017 Win64
set DISTUTILS_USE_SDK=1
REM The following line is needed for Python 2.7, but the support for it is very experimental.
set MSSdk=1
call "%VS150COMNTOOLS%\vcvarsall.bat" x64 -vcvars_ver=14.11
python setup.py installSystem Info
PyTorch or Caffe2: PyTorch
PyTorch version: 0.4.0
Is debug build: No
CUDA used to build PyTorch: 9.0
OS: Microsoft Windows 10 Pro
GCC version: (Rev2, Built by MSYS2 project) 7.1.0
CMake version: version 3.8.1
Python version: 3.6
Is CUDA available: Yes
CUDA runtime version: 9.0.176
GPU models and configuration: GPU 0: GeForce GTX 1070
Nvidia driver version: 398.36
cuDNN version: Probably one of the following:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v9.0\bin\cudnn64_7.dll
Versions of relevant libraries:
[pip] numpy (1.13.3)
[pip] torch (0.4.0)
[pip] torchfile (0.1.0)
[pip] torchnet (0.0.1)
[pip] torchtext (0.2.1)
[pip] torchvision (0.1.9)
[pip] warpctc-pytorch (0.1)
[conda] torchfile 0.1.0
[conda] torchnet 0.0.1
[conda] torchtext 0.2.1
[conda] torchvision 0.1.9
[conda] warpctc-pytorch 0.1