pytorch / pytorch

Tensors and Dynamic neural networks in Python with strong GPU acceleration
https://pytorch.org
Other
84.02k stars 22.65k forks source link

windows10,build python,TARGET_PDB_FILE is allowed only for targets with linker created artifacts. #16292

Closed 1yus2yus3 closed 5 years ago

1yus2yus3 commented 5 years ago

this is build log,please help me,thanks!

Using third party subdirectory Eigen. -- Setting Python to -- Setting Python's include dir to D:\Program Files\Python27\include from distutils.sysconfig -- Setting Python's library to D:\Program Files\Python27\Lib -- Found PythonInterp: D:/Program Files/Python27/python.exe (found suitable version "2.7.15", minimum required is "2.7") -- Found PythonLibs: D:\Program Files\Python27\Lib (found suitable version "2.7.15rc1", minimum required is "2.7") -- Found NumPy: D:/Program Files/Python27/lib/site-packages/numpy/core/include (found version "1.16.0") -- NumPy ver. 1.16.0 found (include: D:/Program Files/Python27/lib/site-packages/numpy/core/include) -- Could NOT find pybind11 (missing: pybind11_DIR) -- Found pybind11: D:/Program Files/Python27/include -- System pybind11 found -- pybind11 include dirs: D:/Program Files/Python27/include -- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS) -- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS) -- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND) CMake Warning at cmake/Dependencies.cmake:653 (message): Not compiling with MPI. Suppress this warning with -DUSE_MPI=OFF Call Stack (most recent call first): CMakeLists.txt:219 (include)

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0 (found version "10.0") -- Caffe2: CUDA detected: 10.0 -- Caffe2: CUDA nvcc is: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/bin/nvcc.exe -- Caffe2: CUDA toolkit directory: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0 -- Caffe2: Header version is: 10.0 -- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include -- Found cuDNN: v7.4.2 (include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include, library: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudnn.lib) -- Added CUDA NVCC flags for: -gencode;arch=compute_50,code=sm_50 CMake Warning at cmake/Dependencies.cmake:792 (message): NCCL is currently only supported under Linux. Call Stack (most recent call first): CMakeLists.txt:219 (include)

-- Could NOT find CUB (missing: CUB_INCLUDE_DIR) CMake Warning at cmake/Dependencies.cmake:812 (message): Gloo can only be used on Linux. Call Stack (most recent call first): CMakeLists.txt:219 (include)

CMake Warning at cmake/Dependencies.cmake:932 (message): Metal is only used in ios builds. Call Stack (most recent call first): CMakeLists.txt:219 (include)

-- -- **** Summary **** -- CMake version : 3.13.3 -- CMake command : D:/Program Files/Python27/Lib/site-packages/cmake/data/bin/cmake.exe -- System : Windows -- C++ compiler : d:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- C++ compiler version : 19.14.26433.0 -- CXX flags : /DWIN32 /D_WINDOWS /W3 /GR /EHsc -- Build type : Release -- Compile definitions : -- CMAKE_PREFIX_PATH : -- CMAKE_INSTALL_PREFIX : C:/Program Files/Caffe2 -- CMAKE_MODULE_PATH : E:/pytorch/cmake/Modules;E:/pytorch/cmake/public/../Modules_CUDA_fix

-- ONNX version : 1.3.0 -- ONNX NAMESPACE : onnx_c2 -- ONNX_BUILD_TESTS : OFF -- ONNX_BUILD_BENCHMARKS : OFF -- ONNX_USE_LITE_PROTO : OFF -- ONNXIFI_DUMMY_BACKEND : OFF

-- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_ONNX_PYTHON : OFF -- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor -- Removing -DNDEBUG from compile flags -- Found OpenMP_C: -openmp (found version "2.0") -- Found OpenMP_CXX: -openmp (found version "2.0") -- Found OpenMP: TRUE (found version "2.0") -- Compiling with OpenMP support -- MAGMA not found. Compiling without MAGMA support -- Could not find hardware support for NEON on this machine. -- No OMAP3 processor on this machine. -- No OMAP4 processor on this machine. -- Looking for cpuid.h -- Looking for cpuid.h - not found -- Performing Test NO_GCC_EBX_FPIC_BUG -- Performing Test NO_GCC_EBX_FPIC_BUG - Failed -- Performing Test C_HAS_AVX_1 -- Performing Test C_HAS_AVX_1 - Success -- Performing Test C_HAS_AVX2_1 -- Performing Test C_HAS_AVX2_1 - Success -- Performing Test CXX_HAS_AVX_1 -- Performing Test CXX_HAS_AVX_1 - Success -- Performing Test CXX_HAS_AVX2_1 -- Performing Test CXX_HAS_AVX2_1 - Success -- AVX compiler support found -- AVX2 compiler support found -- Performing Test HAS_C11_ATOMICS -- Performing Test HAS_C11_ATOMICS - Failed -- Performing Test HAS_MSC_ATOMICS -- Performing Test HAS_MSC_ATOMICS - Success -- Performing Test HAS_GCC_ATOMICS -- Performing Test HAS_GCC_ATOMICS - Failed -- Atomics: using MSVC intrinsics -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_sequential - mkl_core] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_sequential - mkl_core] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md - pthread] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md - pthread] -- Library mkl_intel: not found -- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread] -- Library mkl_intel_lp64: not found -- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread] -- Library mkl_intel: not found -- Checking for [mkl - guide - pthread - m] -- Library mkl: not found -- MKL library not found -- Checking for [Accelerate] -- Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND -- Checking for [vecLib] -- Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND -- Checking for [openblas] -- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND -- Checking for [openblas - pthread] -- Library openblas: BLAS_openblas_LIBRARY-NOTFOUND -- Checking for [libopenblas] -- Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND -- Checking for [goto2 - gfortran] -- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND -- Checking for [goto2 - gfortran - pthread] -- Library goto2: BLAS_goto2_LIBRARY-NOTFOUND -- Checking for [acml - gfortran] -- Library acml: BLAS_acml_LIBRARY-NOTFOUND -- Checking for [ptf77blas - atlas - gfortran] -- Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND -- Checking for [blas] -- Library blas: BLAS_blas_LIBRARY-NOTFOUND -- Cannot find a library with BLAS API. Not using BLAS. -- LAPACK requires BLAS -- Cannot find a library with LAPACK API. Not using LAPACK. -- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0 (found suitable version "10.0", minimum required is "5.5") disabling ROCM because NOT USE_ROCM is set -- MIOpen not found. Compiling without MIOpen support disabling MKLDNN because USE_MKLDNN is not set -- Performing Test C_HAS_THREAD -- Performing Test C_HAS_THREAD - Success -- don't use NUMA -- NCCL operators skipped due to no CUDA support -- Excluding ideep operators as we are not using ideep -- Excluding image processing operators due to no opencv -- Excluding video processing operators due to no opencv -- MPI operators skipped due to no MPI support -- Include Observer library -- ++++++++++++Using Lib/site-packages as python relative installation path -- ++++++++++++++++Lib/site-packages CMake Warning at CMakeLists.txt:411 (message): Generated cmake files are only fully tested if one builds with system glog, gflags, and protobuf. Other settings may generate files that are not well tested.

CMake Warning at CMakeLists.txt:462 (message): Generated cmake files are only available when building shared libs.

-- -- **** Summary **** -- General: -- CMake version : 3.13.3 -- CMake command : D:/Program Files/Python27/Lib/site-packages/cmake/data/bin/cmake.exe -- System : Windows -- C++ compiler : d:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx86/x64/cl.exe -- C++ compiler version : 19.14.26433.0 -- BLAS : MKL -- CXX flags : /DWIN32 /D_WINDOWS /W3 /GR /EHsc -openmp /MP /bigobj -- Build type : Release -- Compile definitions : ONNX_NAMESPACE=onnx_c2;_CRT_SECURE_NO_DEPRECATE=1;USE_MSC_ATOMICS=1 -- CMAKE_PREFIX_PATH : -- CMAKE_INSTALL_PREFIX : C:/Program Files/Caffe2

-- TORCH_VERSION : 1.0.0 -- CAFFE2_VERSION : 1.0.0 -- BUILD_ATEN_MOBILE : OFF -- BUILD_ATEN_ONLY : OFF -- BUILD_BINARY : OFF -- BUILD_CUSTOM_PROTOBUF : ON -- Protobuf compiler : -- Protobuf includes : -- Protobuf libraries : -- BUILD_DOCS : OFF -- BUILD_PYTHON : ON -- Python version : 2.7.15 -- Python executable : D:/Program Files/Python27/python.exe -- Pythonlibs version : 2.7.15rc1 -- Python library : D:\Program Files\Python27\Lib -- Python includes : D:\Program Files\Python27\include -- Python site-packages: Lib/site-packages -- BUILD_CAFFE2_OPS : ON -- BUILD_SHARED_LIBS : OFF -- BUILD_TEST : OFF -- USE_ASAN : OFF -- USE_CUDA : ON -- CUDA static link : OFF -- USE_CUDNN : ON -- CUDA version : 10.0 -- cuDNN version : 7.4.2 -- CUDA root directory : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0 -- CUDA library : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cuda.lib -- cudart library : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudart_static.lib -- cublas library : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cublas.lib -- cufft library : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cufft.lib -- curand library : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/curand.lib -- cuDNN library : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudnn.lib -- nvrtc : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/nvrtc.lib -- CUDA include path : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include -- NVCC executable : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/bin/nvcc.exe -- CUDA host compiler : $(VCInstallDir)Tools/MSVC/$(VCToolsVersion)/bin/Host$(Platform)/$(PlatformTarget) -- USE_TENSORRT : OFF -- USE_ROCM : OFF -- USE_EIGEN_FOR_BLAS : ON -- USE_FBGEMM : OFF -- USE_FFMPEG : OFF -- USE_GFLAGS : OFF -- USE_GLOG : OFF -- USE_LEVELDB : OFF -- USE_LITE_PROTO : OFF -- USE_LMDB : OFF -- USE_METAL : OFF -- USE_MKL : OFF -- USE_MKLDNN : OFF -- USE_NCCL : OFF -- USE_NNPACK : OFF -- USE_NUMPY : ON -- USE_OBSERVERS : ON -- USE_OPENCL : OFF -- USE_OPENCV : OFF -- USE_OPENMP : OFF -- USE_PROF : OFF -- USE_QNNPACK : OFF -- USE_REDIS : OFF -- USE_ROCKSDB : OFF -- USE_ZMQ : OFF -- USE_DISTRIBUTED : ON -- USE_MPI : OFF -- USE_GLOO : OFF -- USE_GLOO_IBVERBS : OFF -- Public Dependencies : Threads::Threads -- Private Dependencies : cpuinfo;fp16;aten_op_header_gen;onnxifi_loader -- Configuring done WARNING: Target "caffe2_pybind11_state" requests linking to directory "D:\Program Files\Python27\Lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe2_pybind11_state" requests linking to directory "D:\Program Files\Python27\Lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe2_pybind11_state" requests linking to directory "D:\Program Files\Python27\Lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe2_pybind11_state" requests linking to directory "D:\Program Files\Python27\Lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe2_pybind11_state_gpu" requests linking to directory "D:\Program Files\Python27\Lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe2_pybind11_state_gpu" requests linking to directory "D:\Program Files\Python27\Lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe2_pybind11_state_gpu" requests linking to directory "D:\Program Files\Python27\Lib". Targets may link only to libraries. CMake is dropping the item. WARNING: Target "caffe2_pybind11_state_gpu" requests linking to directory "D:\Program Files\Python27\Lib". Targets may link only to libraries. CMake is dropping the item. CMake Error: Error evaluating generator expression:

$<TARGET_PDB_FILE:caffe2_observers>

TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

CMake Error: Error evaluating generator expression:

$<TARGET_PDB_FILE:caffe2_observers>

TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

CMake Error: Error evaluating generator expression:

$<TARGET_PDB_FILE:caffe2_observers>

TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

CMake Error: Error evaluating generator expression:

$<TARGET_PDB_FILE:caffe2_observers>

TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

-- Generating done CMake Warning: Manually-specified variables were not used by the project:

USE_CUB

-- Build files have been written to: E:/pytorch/build "Caffe2 building failed"

rathaROG commented 5 years ago

Any solution? I've got the same problem.


**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.6
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'

C:\Windows\System32>cd C:\DEV\envforcoffe\pytorch

C:\DEV\envforcoffe\pytorch>caffe2env\Scripts\activate

(caffe2env) C:\DEV\envforcoffe\pytorch>scripts\build_windows.bat
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Requirement already satisfied: pyyaml in c:\dev\envforcoffe\pytorch\caffe2env\lib\site-packages (3.13)
CAFFE2_ROOT=C:\DEV\envforcoffe\pytorch\scripts\..
CMAKE_GENERATOR="Visual Studio 15 2017 Win64"
CMAKE_BUILD_TYPE=Release
-- The CXX compiler identification is MSVC 19.16.27026.1
-- The C compiler identification is MSVC 19.16.27026.1
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Not forcing any particular BLAS to be found
-- Performing Test COMPILER_WORKS
-- Performing Test COMPILER_WORKS - Success
-- Performing Test SUPPORT_GLIBCXX_USE_C99
-- Performing Test SUPPORT_GLIBCXX_USE_C99 - Success
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED
-- Performing Test CAFFE2_EXCEPTION_PTR_SUPPORTED - Success
-- std::exception_ptr is supported.
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE
-- Performing Test CAFFE2_IS_NUMA_AVAILABLE - Failed
-- NUMA is not available
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING
-- Performing Test CAFFE2_NEED_TO_TURN_OFF_DEPRECATION_WARNING - Failed
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX2_EXTENSIONS - Success
-- Current compiler supports avx2 extension. Will build perfkernels.
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS
-- Performing Test CAFFE2_COMPILER_SUPPORTS_AVX512_EXTENSIONS - Success
-- Current compiler supports avx512f extension. Will build fbgemm.
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_SUPPORTS_HIDDEN_INLINE_VISIBILITY - Failed
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC
-- Performing Test COMPILER_SUPPORTS_RDYNAMIC - Failed
-- Building using own protobuf under third_party per request.
-- Use custom protobuf build.
-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- Caffe2 protobuf include directory: $<BUILD_INTERFACE:C:/DEV/envforcoffe/pytorch/third_party/protobuf/src>$<INSTALL_INTERFACE:include>
-- The BLAS backend of choice:MKL
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of void*
-- Check size of void* - done
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md - pthread]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md - pthread]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
CMake Warning at cmake/Dependencies.cmake:97 (message):
  MKL could not be found.  Defaulting to Eigen
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)

-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md - pthread]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
--   Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
CMake Warning at cmake/Dependencies.cmake:166 (message):
  Target platform "Windows" is not supported in QNNPACK.  Supported platforms
  are Android, iOS, Linux, and macOS.  Turn this warning off by
  USE_QNNPACK=OFF.
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)

CMake Warning at cmake/Dependencies.cmake:418 (message):
  NUMA is currently only supported under Linux.
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)

-- OpenCV found (C:/DEV/opencv/v345/build/x64/vc15/lib)
-- Downloading PSimd to C:/DEV/envforcoffe/pytorch/build/confu-srcs/psimd (define PSIMD_SOURCE_DIR to avoid it)
-- Configuring done
-- Generating done
-- Build files have been written to: C:/DEV/envforcoffe/pytorch/build/confu-deps/psimd-download
Microsoft (R) Build Engine version 15.9.21+g9802d43bc3 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.

Build started 1/25/2019 10:24:29 PM.
Project "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\ALL_BUILD.vcxproj" on node 1 (default targets).
Project "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\ALL_BUILD.vcxproj" (1) is building "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\ZERO_CHECK.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "x64\Debug\ZERO_CHECK\".
  Creating directory "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\".
InitializeBuildStatus:
  Creating "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Checking Build System
  CMake does not need to re-run because C:/DEV/envforcoffe/pytorch/build/confu-deps/psimd-download/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\unsuccessfulbuild".
  Touching "x64\Debug\ZERO_CHECK\ZERO_CHECK.tlog\ZERO_CHECK.lastbuildstate".
Done Building Project "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\ZERO_CHECK.vcxproj" (default targets).
Project "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\ALL_BUILD.vcxproj" (1) is building "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\psimd.vcxproj" (3) on node 1 (default targets).
PrepareForBuild:
  Creating directory "x64\Debug\psimd\".
  Creating directory "x64\Debug\psimd\psimd.tlog\".
InitializeBuildStatus:
  Creating "x64\Debug\psimd\psimd.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
ComputeCustomBuildOutput:
  Creating directory "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\psimd-prefix\src\psimd-stamp\Debug\".
  Creating directory "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\CMakeFiles\Debug\".
CustomBuild:
  Creating directories for 'psimd'
  Building Custom Rule C:/DEV/envforcoffe/pytorch/build/confu-deps/psimd-download/CMakeLists.txt
  CMake does not need to re-run because C:/DEV/envforcoffe/pytorch/build/confu-deps/psimd-download/CMakeFiles/generate.stamp is up-to-date.
  Performing download step (git clone) for 'psimd'
  Cloning into 'psimd'...
  Already on 'master'
  Your branch is up to date with 'origin/master'.
  Performing update step for 'psimd'
  Current branch master is up to date.
  No patch step for 'psimd'
  No configure step for 'psimd'
  No build step for 'psimd'
  No install step for 'psimd'
  No test step for 'psimd'
  Completed 'psimd'
FinalizeBuildStatus:
  Deleting file "x64\Debug\psimd\psimd.tlog\unsuccessfulbuild".
  Touching "x64\Debug\psimd\psimd.tlog\psimd.lastbuildstate".
Done Building Project "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\psimd.vcxproj" (default targets).
PrepareForBuild:
  Creating directory "x64\Debug\ALL_BUILD\".
  Creating directory "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\".
InitializeBuildStatus:
  Creating "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
CustomBuild:
  Building Custom Rule C:/DEV/envforcoffe/pytorch/build/confu-deps/psimd-download/CMakeLists.txt
  CMake does not need to re-run because C:/DEV/envforcoffe/pytorch/build/confu-deps/psimd-download/CMakeFiles/generate.stamp is up-to-date.
FinalizeBuildStatus:
  Deleting file "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\unsuccessfulbuild".
  Touching "x64\Debug\ALL_BUILD\ALL_BUILD.tlog\ALL_BUILD.lastbuildstate".
Done Building Project "C:\DEV\envforcoffe\pytorch\build\confu-deps\psimd-download\ALL_BUILD.vcxproj" (default targets).

Build succeeded.
    0 Warning(s)
    0 Error(s)

Time Elapsed 00:00:08.80
-- Using third party subdirectory Eigen.
-- Setting Python to
-- Setting Python's include dir to C:\Python27amd64\include from distutils.sysconfig
-- Setting Python's library to C:\DEV\envforcoffe\pytorch\caffe2env\Lib
-- Found PythonInterp: C:/DEV/envforcoffe/pytorch/caffe2env/Scripts/python.exe (found suitable version "2.7.14", minimum required is "2.7")
-- Found PythonLibs: C:\DEV\envforcoffe\pytorch\caffe2env\Lib (found suitable version "2.7.14", minimum required is "2.7")
-- Found NumPy: C:/DEV/envforcoffe/pytorch/caffe2env/lib/site-packages/numpy/core/include (found version "1.16.0")
-- NumPy ver. 1.16.0 found (include: C:/DEV/envforcoffe/pytorch/caffe2env/lib/site-packages/numpy/core/include)
-- Could NOT find pybind11 (missing: pybind11_DIR)
-- Could NOT find pybind11 (missing: pybind11_INCLUDE_DIR)
-- Using third_party/pybind11.
-- Could NOT find MPI_C (missing: MPI_C_LIB_NAMES MPI_C_HEADER_DIR MPI_C_WORKS)
-- Could NOT find MPI_CXX (missing: MPI_CXX_LIB_NAMES MPI_CXX_HEADER_DIR MPI_CXX_WORKS)
-- Could NOT find MPI (missing: MPI_C_FOUND MPI_CXX_FOUND)
CMake Warning at cmake/Dependencies.cmake:653 (message):
  Not compiling with MPI.  Suppress this warning with -DUSE_MPI=OFF
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)

-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0 (found version "10.0")
-- Caffe2: CUDA detected: 10.0
-- Caffe2: CUDA nvcc is: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/bin/nvcc.exe
-- Caffe2: CUDA toolkit directory: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0
-- Caffe2: Header version is: 10.0
-- Found CUDNN: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include
-- Found cuDNN: v7.4.2  (include: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include, library: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudnn.lib)
-- Added CUDA NVCC flags for: -gencode;arch=compute_52,code=sm_52
CMake Warning at cmake/Dependencies.cmake:797 (message):
  NCCL is currently only supported under Linux.
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)

-- Could NOT find CUB (missing: CUB_INCLUDE_DIR)
CMake Warning at cmake/Dependencies.cmake:817 (message):
  Gloo can only be used on Linux.
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)

CMake Warning at cmake/Dependencies.cmake:937 (message):
  Metal is only used in ios builds.
Call Stack (most recent call first):
  CMakeLists.txt:219 (include)

--
-- ******** Summary ********
--   CMake version         : 3.13.3
--   CMake command         : C:/DEV/CMake/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
--   C++ compiler version  : 19.16.27026.1
--   CXX flags             : /DWIN32 /D_WINDOWS /W3 /GR /EHsc
--   Build type            : Release
--   Compile definitions   :
--   CMAKE_PREFIX_PATH     :
--   CMAKE_INSTALL_PREFIX  : C:/Program Files/Caffe2
--   CMAKE_MODULE_PATH     : C:/DEV/envforcoffe/pytorch/cmake/Modules;C:/DEV/envforcoffe/pytorch/cmake/public/../Modules_CUDA_fix
--
--   ONNX version          : 1.3.0
--   ONNX NAMESPACE        : onnx_c2
--   ONNX_BUILD_TESTS      : OFF
--   ONNX_BUILD_BENCHMARKS : OFF
--   ONNX_USE_LITE_PROTO   : OFF
--   ONNXIFI_DUMMY_BACKEND : OFF
--
--   Protobuf compiler     :
--   Protobuf includes     :
--   Protobuf libraries    :
--   BUILD_ONNX_PYTHON     : OFF
-- Found CUDA with FP16 support, compiling with torch.cuda.HalfTensor
-- Removing -DNDEBUG from compile flags
-- Found OpenMP_C: -openmp (found version "2.0")
-- Found OpenMP_CXX: -openmp (found version "2.0")
-- Found OpenMP: TRUE (found version "2.0")
-- Compiling with OpenMP support
-- MAGMA not found. Compiling without MAGMA support
-- Could not find hardware support for NEON on this machine.
-- No OMAP3 processor on this machine.
-- No OMAP4 processor on this machine.
-- Looking for cpuid.h
-- Looking for cpuid.h - not found
-- Performing Test NO_GCC_EBX_FPIC_BUG
-- Performing Test NO_GCC_EBX_FPIC_BUG - Failed
-- Performing Test C_HAS_AVX_1
-- Performing Test C_HAS_AVX_1 - Success
-- Performing Test C_HAS_AVX2_1
-- Performing Test C_HAS_AVX2_1 - Success
-- Performing Test CXX_HAS_AVX_1
-- Performing Test CXX_HAS_AVX_1 - Success
-- Performing Test CXX_HAS_AVX2_1
-- Performing Test CXX_HAS_AVX2_1 - Success
-- AVX compiler support found
-- AVX2 compiler support found
-- Performing Test HAS_C11_ATOMICS
-- Performing Test HAS_C11_ATOMICS - Failed
-- Performing Test HAS_MSC_ATOMICS
-- Performing Test HAS_MSC_ATOMICS - Success
-- Performing Test HAS_GCC_ATOMICS
-- Performing Test HAS_GCC_ATOMICS - Failed
-- Atomics: using MSVC intrinsics
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_sequential - mkl_core]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_sequential - mkl_core]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - libiomp5md - pthread]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - libiomp5md - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl_intel_lp64 - mkl_intel_thread - mkl_core - pthread]
--   Library mkl_intel_lp64: not found
-- Checking for [mkl_intel - mkl_intel_thread - mkl_core - pthread]
--   Library mkl_intel: not found
-- Checking for [mkl - guide - pthread - m]
--   Library mkl: not found
-- MKL library not found
-- Checking for [Accelerate]
--   Library Accelerate: BLAS_Accelerate_LIBRARY-NOTFOUND
-- Checking for [vecLib]
--   Library vecLib: BLAS_vecLib_LIBRARY-NOTFOUND
-- Checking for [openblas]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [openblas - pthread]
--   Library openblas: BLAS_openblas_LIBRARY-NOTFOUND
-- Checking for [libopenblas]
--   Library libopenblas: BLAS_libopenblas_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [goto2 - gfortran - pthread]
--   Library goto2: BLAS_goto2_LIBRARY-NOTFOUND
-- Checking for [acml - gfortran]
--   Library acml: BLAS_acml_LIBRARY-NOTFOUND
-- Checking for [ptf77blas - atlas - gfortran]
--   Library ptf77blas: BLAS_ptf77blas_LIBRARY-NOTFOUND
-- Checking for [blas]
--   Library blas: BLAS_blas_LIBRARY-NOTFOUND
-- Cannot find a library with BLAS API. Not using BLAS.
-- LAPACK requires BLAS
-- Cannot find a library with LAPACK API. Not using LAPACK.
-- Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0 (found suitable version "10.0", minimum required is "5.5")
disabling ROCM because NOT USE_ROCM is set
-- MIOpen not found. Compiling without MIOpen support
disabling MKLDNN because USE_MKLDNN is not set
-- Performing Test C_HAS_THREAD
-- Performing Test C_HAS_THREAD - Success
-- don't use NUMA
-- NCCL operators skipped due to no CUDA support
-- Excluding ideep operators as we are not using ideep
-- Including image processing operators
-- Excluding video processing operators due to no opencv
-- MPI operators skipped due to no MPI support
-- Include Observer library
-- Using Lib/site-packages as python relative installation path
CMake Warning at CMakeLists.txt:411 (message):
  Generated cmake files are only fully tested if one builds with system glog,
  gflags, and protobuf.  Other settings may generate files that are not well
  tested.

CMake Warning at CMakeLists.txt:462 (message):
  Generated cmake files are only available when building shared libs.

--
-- ******** Summary ********
-- General:
--   CMake version         : 3.13.3
--   CMake command         : C:/DEV/CMake/bin/cmake.exe
--   System                : Windows
--   C++ compiler          : C:/Program Files (x86)/Microsoft Visual Studio/2017/Enterprise/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x64/cl.exe
--   C++ compiler version  : 19.16.27026.1
--   BLAS                  : MKL
--   CXX flags             : /DWIN32 /D_WINDOWS /W3 /GR /EHsc -openmp /MP /bigobj
--   Build type            : Release
--   Compile definitions   : ONNX_NAMESPACE=onnx_c2;_CRT_SECURE_NO_DEPRECATE=1;USE_MSC_ATOMICS=1
--   CMAKE_PREFIX_PATH     :
--   CMAKE_INSTALL_PREFIX  : C:/Program Files/Caffe2
--
--   TORCH_VERSION         : 1.0.0
--   CAFFE2_VERSION        : 1.0.0
--   BUILD_ATEN_MOBILE     : OFF
--   BUILD_ATEN_ONLY       : OFF
--   BUILD_BINARY          : OFF
--   BUILD_CUSTOM_PROTOBUF : ON
--     Protobuf compiler   :
--     Protobuf includes   :
--     Protobuf libraries  :
--   BUILD_DOCS            : OFF
--   BUILD_PYTHON          : ON
--     Python version      : 2.7.14
--     Python executable   : C:/DEV/envforcoffe/pytorch/caffe2env/Scripts/python.exe
--     Pythonlibs version  : 2.7.14
--     Python library      : C:\DEV\envforcoffe\pytorch\caffe2env\Lib
--     Python includes     : C:\Python27amd64\include
--     Python site-packages: Lib/site-packages
--   BUILD_CAFFE2_OPS      : ON
--   BUILD_SHARED_LIBS     : OFF
--   BUILD_TEST            : OFF
--   USE_ASAN              : OFF
--   USE_CUDA              : ON
--     CUDA static link    : OFF
--     USE_CUDNN           : ON
--     CUDA version        : 10.0
--     cuDNN version       : 7.4.2
--     CUDA root directory : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0
--     CUDA library        : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cuda.lib
--     cudart library      : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudart_static.lib
--     cublas library      : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cublas.lib
--     cufft library       : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cufft.lib
--     curand library      : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/curand.lib
--     cuDNN library       : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/cudnn.lib
--     nvrtc               : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/lib/x64/nvrtc.lib
--     CUDA include path   : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/include
--     NVCC executable     : C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v10.0/bin/nvcc.exe
--     CUDA host compiler  : $(VCInstallDir)Tools/MSVC/$(VCToolsVersion)/bin/Host$(Platform)/$(PlatformTarget)
--     USE_TENSORRT        : OFF
--   USE_ROCM              : OFF
--   USE_EIGEN_FOR_BLAS    : ON
--   USE_FBGEMM            : OFF
--   USE_FFMPEG            : OFF
--   USE_GFLAGS            : OFF
--   USE_GLOG              : OFF
--   USE_LEVELDB           : OFF
--   USE_LITE_PROTO        : OFF
--   USE_LMDB              : OFF
--   USE_METAL             : OFF
--   USE_MKL               : OFF
--   USE_MKLDNN            : OFF
--   USE_NCCL              : OFF
--   USE_NNPACK            : OFF
--   USE_NUMPY             : ON
--   USE_OBSERVERS         : ON
--   USE_OPENCL            : OFF
--   USE_OPENCV            : ON
--     OpenCV version      : 3.4.5
--   USE_OPENMP            : OFF
--   USE_PROF              : OFF
--   USE_QNNPACK           : OFF
--   USE_REDIS             : OFF
--   USE_ROCKSDB           : OFF
--   USE_ZMQ               : OFF
--   USE_DISTRIBUTED       : ON
--     USE_MPI             : OFF
--     USE_GLOO            : OFF
--     USE_GLOO_IBVERBS    : OFF
--   Public Dependencies  : Threads::Threads
--   Private Dependencies : cpuinfo;opencv_core;opencv_highgui;opencv_imgproc;opencv_imgcodecs;opencv_videoio;opencv_video;fp16;aten_op_header_gen;onnxifi_loader
-- Configuring done
WARNING: Target "caffe2_pybind11_state" requests linking to directory "C:\DEV\envforcoffe\pytorch\caffe2env\Lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "caffe2_pybind11_state" requests linking to directory "C:\DEV\envforcoffe\pytorch\caffe2env\Lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "caffe2_pybind11_state" requests linking to directory "C:\DEV\envforcoffe\pytorch\caffe2env\Lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "caffe2_pybind11_state" requests linking to directory "C:\DEV\envforcoffe\pytorch\caffe2env\Lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "caffe2_pybind11_state_gpu" requests linking to directory "C:\DEV\envforcoffe\pytorch\caffe2env\Lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "caffe2_pybind11_state_gpu" requests linking to directory "C:\DEV\envforcoffe\pytorch\caffe2env\Lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "caffe2_pybind11_state_gpu" requests linking to directory "C:\DEV\envforcoffe\pytorch\caffe2env\Lib".  Targets may link only to libraries.  CMake is dropping the item.
WARNING: Target "caffe2_pybind11_state_gpu" requests linking to directory "C:\DEV\envforcoffe\pytorch\caffe2env\Lib".  Targets may link only to libraries.  CMake is dropping the item.
CMake Error:
  Error evaluating generator expression:

    $<TARGET_PDB_FILE:caffe2_observers>

  TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

CMake Error:
  Error evaluating generator expression:

    $<TARGET_PDB_FILE:caffe2_observers>

  TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

CMake Error:
  Error evaluating generator expression:

    $<TARGET_PDB_FILE:caffe2_observers>

  TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

CMake Error:
  Error evaluating generator expression:

    $<TARGET_PDB_FILE:caffe2_observers>

  TARGET_PDB_FILE is allowed only for targets with linker created artifacts.

-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    USE_CUB

-- Build files have been written to: C:/DEV/envforcoffe/pytorch/build
"Caffe2 building failed"

(caffe2env) C:\DEV\envforcoffe\pytorch>
yf225 commented 5 years ago

cc @peterjc123

1yus2yus3 commented 5 years ago

i try update BUILD_PYTHON=OFF ,that success,but i want build python ,anyone can handle it ?

peterjc123 commented 5 years ago

@1yus2yus3 Could you please try removing the clause in https://github.com/pytorch/pytorch/blob/master/modules/observers/CMakeLists.txt#L23? I'll try to add the protecting clause here if it helps.

1yus2yus3 commented 5 years ago

yes,perfect!