diff options
author | ArutyunovG <arutyunovg@yandex.ru> | 2018-11-16 12:06:21 -0800 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-11-16 12:16:28 -0800 |
commit | 8e91da4cb3d645b178b515bab54331c917340cd5 (patch) | |
tree | 055fe2360dd23e2c0435ee3769b83e9596699167 /caffe2/utils | |
parent | 2c21de2007b3185231abfd41ffb49ce632f52f04 (diff) | |
download | pytorch-8e91da4cb3d645b178b515bab54331c917340cd5.tar.gz pytorch-8e91da4cb3d645b178b515bab54331c917340cd5.tar.bz2 pytorch-8e91da4cb3d645b178b515bab54331c917340cd5.zip |
Windows shared build (#13550)
Summary:
Hi guys,
I'd like to build Caffe2 with more supported options in Windows with Microsoft Visual Studios.
This is the first pull request.
Running scripts/build_windows_shared.bat is able to build Caffe2 with both CMAKE_BUILD_TYPE=Debug and CMAKE_BUILD_TYPE=Release with Visual Studio 14 2015.
CUDA is 9.0, cudnn is 7.0.5, glog, gflags and lmdb are supported on my system.
Python is 3.5, Detectron works from python interface as well.
It was even possible to debug detectron code and step into caffe2_gpu.dll with pdbs built.
What is disappointing, that c10/experimental ops don't build with this Visual Studio generator, I added special option INCLUDE_EXPERIMENTAL_C10_OPS (default ON) to deal with it in build_windows_shared.bat.
After this pull request the next step is to add Visual Studio 2017 support in the script.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/13550
Reviewed By: ezyang
Differential Revision: D13042597
Pulled By: orionr
fbshipit-source-id: f313f909f599cd582a1d000eff766eef3a9fc4fc
Diffstat (limited to 'caffe2/utils')
-rw-r--r-- | caffe2/utils/fatal_signal_asan_no_sig_test.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/caffe2/utils/fatal_signal_asan_no_sig_test.cc b/caffe2/utils/fatal_signal_asan_no_sig_test.cc index a56539a1f1..c02e6a90d3 100644 --- a/caffe2/utils/fatal_signal_asan_no_sig_test.cc +++ b/caffe2/utils/fatal_signal_asan_no_sig_test.cc @@ -102,7 +102,7 @@ bool forkAndPipe( })); \ int keyPhraseCount = 0; \ std::string keyPhrase = \ - std::string(name) + "(" + caffe2::to_string(signum) + "), Thread"; \ + std::string(name) + "(" + c10::to_string(signum) + "), Thread"; \ size_t loc = 0; \ while ((loc = stderrBuffer.find(keyPhrase, loc)) != std::string::npos) { \ keyPhraseCount += 1; \ |