Unable to detect intel mkl using cmake

603 views
Skip to first unread message

LBerger

unread,
Aug 23, 2017, 5:52:57 AM8/23/17
to Ceres Solver


Hi,

My configuration is VS 2015 windows 10 64 bits. I cloned ceres : git clone https://github.com/ceres-solver/ceres-solver.git  (commit cc73c77d50d0451646faa52a3922b8b85e963ad8 )

 I run cmake using command line :
rm CMakeCache.txt
cmake ../../ceres-solver -G "Visual Studio 14 2015 Win64" -DEIGEN_INCLUDE_DIR=../../eigen-eigen/

cmake cannot find intel mkl. I tried using :

cmake ../../ceres-solver -G "Visual Studio 14 2015 Win64" -DEIGEN_INCLUDE_DIR=../../eigen-eigen/ -DLAPACK:BOOL=ON -DBLAS_mkl_intel_lp64_dll_LIBRARY="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017.0.109/windows/mkl/lib/intel64_win/mkl_sequential_dll.lib" -DBLAS_mkl_core_dll_LIBRARY:FILEPATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017.0.109/windows/mkl/lib/intel64_win/mkl_core_dll.lib" -DBLAS_mkl_sequential_dll_LIBRARY:FILEPATH="C:/Program Files (x86)/IntelSWTools/compilers_and_libraries_2017.0.109/windows/mkl/lib/intel64_win/mkl_sequential_dll.lib"
 it does nor work and I don't think it is a right way. How to solve this problem?

Thanks in advance for your answer.





-- The C compiler identification is MSVC 19.0.24215.1
-- The CXX compiler identification is MSVC 19.0.24215.1
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/x86_amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Detected Ceres version: 1.13.0 from F:/LibLivre/ceres-solver/include/ceres/version.h
-- No preference for use of exported Eigen CMake configuration set, and no hints for include directory provided. Defaulting to preferring an installed/exported Eigen CMake configuration if available.
-- Failed to find installed Eigen CMake configuration, searching for Eigen build directories exported with CMake.
-- Failed to find an installed/exported CMake configuration for Eigen, will perform search for installed Eigen components.
-- Found Eigen: F:/LibLivre/eigen-eigen (found version "3.3.4")
-- Found Eigen version 3.3.4: F:/LibLivre/eigen-eigen

   ===============================================================
   Disabling the use of Eigen as a sparse linear algebra library.
   This does not affect the covariance estimation algorithm
   which can still use the EIGEN_SPARSE_QR algorithm.
   ===============================================================

-- Looking for pthread.h
-- Looking for pthread.h - not found
-- Found Threads: TRUE
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- Did not find LAPACK library, disabling LAPACK support.
-- Failed to find SuiteSparse - Did not find BLAS library (required for SuiteSparse).
-- A library with BLAS API not found. Please specify library location.
-- LAPACK requires BLAS
-- Failed to find SuiteSparse - Did not find LAPACK library (required for SuiteSparse).
-- Failed to find SuiteSparse - Did not find AMD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find AMD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CAMD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CAMD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find COLAMD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find COLAMD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CCOLAMD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CCOLAMD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CHOLMOD header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find CHOLMOD library (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find SUITESPARSEQR header (required SuiteSparse component).
-- Failed to find SuiteSparse - Did not find SUITESPARSEQR library (required SuiteSparse component).
-- Did not find SUITESPARSE_CONFIG header (optional SuiteSparse component).
-- Did not find SUITESPARSE_CONFIG library (optional SuiteSparse dependency)
-- Did not find UFCONFIG header (optional SuiteSparse component).
-- Failed to find SuiteSparse - Failed to find either: SuiteSparse_config header & library (should be present in all SuiteSparse >= v4 installs), or UFconfig header (should be present in all SuiteSparse < v4 installs).
-- Did not find METIS library (optional SuiteSparse dependency)
-- Failed to find some/all required components of SuiteSparse. (missing: BLAS_FOUND LAPACK_FOUND AMD_FOUND CAMD_FOUND COLAMD_FOUND CCOLAMD_FOUND CHOLMOD_FOUND SUITESPARSEQR_FOUND SUITESPARSE_VERSION)
-- Did not find all SuiteSparse dependencies, disabling SuiteSparse support.
-- Failed to find CXSparse - Could not find CXSparse include directory, set CXSPARSE_INCLUDE_DIR to directory containing cs.h
-- Did not find CXSparse, Building without CXSparse.
   ===============================================================
   Compiling without any sparse library: SuiteSparse, CXSparse
   & Eigen (Sparse) are all disabled or unavailable.  No sparse
   linear solvers (SPARSE_NORMAL_CHOLESKY & SPARSE_SCHUR)
   will be available when Ceres is used.
   ===============================================================
-- No preference for use of exported gflags CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported gflags CMake configuration if available.
-- Failed to find installed gflags CMake configuration, searching for gflags build directories exported with CMake.
-- Found exported gflags build directory: F:/LibLivre/Install/gflags/lib/cmake/gflags
-- Detected gflags version: 2.2.1
-- Found Gflags: F:/LibLivre/Install/gflags/include
-- Found Google Flags header in: F:/LibLivre/Install/gflags/include, in namespace: google
-- No preference for use of exported glog CMake configuration set, and no hints for include/library directories provided. Defaulting to preferring an installed/exported glog CMake configuration if available.
-- Found installed version of glog: C:/Program Files/google-glog/lib/cmake/glog
-- Detected glog version: 0.3.4
-- Found Glog: glog::glog
-- Found Google Log (glog). Assuming glog was built with gflags support as gflags was found. This will make gflags a public dependency of Ceres.
CMake Warning (dev) at C:/Program Files (x86)/cmake-3.9.1-win64-x64/share/cmake-3.9/Modules/FindOpenMP.cmake:212 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  C:/Program Files (x86)/cmake-3.9.1-win64-x64/share/cmake-3.9/Modules/FindOpenMP.cmake:324 (_OPENMP_GET_FLAGS)
  CMakeLists.txt:409 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- Building with OpenMP.
-- Performing Test COMPILER_HAS_CXX11_FLAG
-- Performing Test COMPILER_HAS_CXX11_FLAG - Success
-- Looking for C++ include unordered_map
-- Looking for C++ include unordered_map - found
-- Performing Test HAVE_UNORDERED_MAP_IN_STD_NAMESPACE
-- Performing Test HAVE_UNORDERED_MAP_IN_STD_NAMESPACE - Success
-- Found unordered_map/set in std namespace.
-- Looking for C++ include memory
-- Looking for C++ include memory - found
-- Performing Test HAVE_SHARED_PTR_IN_STD_NAMESPACE
-- Performing Test HAVE_SHARED_PTR_IN_STD_NAMESPACE - Success
-- Found shared_ptr in std namespace using <memory> header.
-- Building Ceres as a static library.
-- No build type specified; defaulting to CMAKE_BUILD_TYPE=Release.
-- Performing Test HAVE_UNDERSCORE_PREFIXED_BESSEL_FUNCTIONS
-- Performing Test HAVE_UNDERSCORE_PREFIXED_BESSEL_FUNCTIONS - Success
-- Enabling CERES_NO_LAPACK in Ceres config.h
-- Enabling CERES_NO_SUITESPARSE in Ceres config.h
-- Enabling CERES_NO_CXSPARSE in Ceres config.h
-- Enabling CERES_USE_OPENMP in Ceres config.h
-- Enabling CERES_STD_UNORDERED_MAP in Ceres config.h
-- Enabling CERES_MSVC_USE_UNDERSCORE_PREFIXED_BESSEL_FUNCTIONS in Ceres config.h
-- Build the examples.
-- Configuring done
-- Generating done
-- Build files have been written to: F:/LibLivre/Build/ceres-solver




 
Reply all
Reply to author
Forward
0 new messages