summaryrefslogtreecommitdiff
path: root/torch/lib
diff options
context:
space:
mode:
authorpeterjc123 <peter_jiachen@163.com>2017-11-12 13:14:05 +0800
committerSoumith Chintala <soumith@gmail.com>2017-11-12 00:14:05 -0500
commitea4432b3c250b4bda6ed208e42c637d32ae8f627 (patch)
treee8c198d0fddb32a3d05049f83cf1a0c2d2153993 /torch/lib
parent73431f087b48560ab4b65f8814809fc019061223 (diff)
downloadpytorch-ea4432b3c250b4bda6ed208e42c637d32ae8f627.tar.gz
pytorch-ea4432b3c250b4bda6ed208e42c637d32ae8f627.tar.bz2
pytorch-ea4432b3c250b4bda6ed208e42c637d32ae8f627.zip
Fix CUDA builds for Windows (#3650)
* Fix CUDA builds for Windows 1. CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS has a limitation, the maximum number of exported functions cannot exceed 65535. So it can't be used. 2. Specify static on an inline function to prevent linking errors. * cancel CMAKE version limitation
Diffstat (limited to 'torch/lib')
-rw-r--r--torch/lib/build_libs.bat2
1 files changed, 0 insertions, 2 deletions
diff --git a/torch/lib/build_libs.bat b/torch/lib/build_libs.bat
index 6e1b3df913..c4ddac74b9 100644
--- a/torch/lib/build_libs.bat
+++ b/torch/lib/build_libs.bat
@@ -91,7 +91,6 @@ goto:eof
-DTHCUNN_SO_VERSION=1 ^
-DNO_CUDA=%NO_CUDA% ^
-Dnanopb_BUILD_GENERATOR=0 ^
- -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE ^
-DCMAKE_BUILD_TYPE=Release
%MAKE_COMMAND%
@@ -110,7 +109,6 @@ goto:eof
-DNO_CUDA=%NO_CUDA% ^
-DCUDNN_INCLUDE_DIR="%CUDNN_INCLUDE_DIR%" ^
-DCUDNN_LIB_DIR="%CUDNN_LIB_DIR%" ^
- -DCMAKE_WINDOWS_EXPORT_ALL_SYMBOLS=TRUE ^
-DCMAKE_BUILD_TYPE=Release
%MAKE_COMMAND%