Created
April 14, 2017 09:15
-
-
Save mdouze/46daf5fb494be70c7dd8ab19698021d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[matthijs@matthijs-mbp ~/Desktop/test_cmake/faiss/build]cmake -DCMAKE_CXX_COMPILER=/opt/local/bin/g++-mp-6 .. | |
-- The C compiler identification is AppleClang 8.0.0.8000042 | |
-- The CXX compiler identification is GNU 6.3.0 | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc | |
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works | |
-- Detecting C compiler ABI info | |
-- Detecting C compiler ABI info - done | |
-- Detecting C compile features | |
-- Detecting C compile features - done | |
-- Checking whether CXX compiler has -isysroot | |
-- Checking whether CXX compiler has -isysroot - yes | |
-- Checking whether CXX compiler supports OSX deployment target flag | |
-- Checking whether CXX compiler supports OSX deployment target flag - yes | |
-- Check for working CXX compiler: /opt/local/bin/g++-mp-6 | |
-- Check for working CXX compiler: /opt/local/bin/g++-mp-6 -- works | |
-- Detecting CXX compiler ABI info | |
-- Detecting CXX compiler ABI info - done | |
-- Detecting CXX compile features | |
-- Detecting CXX compile features - done | |
-- Try OpenMP C flag = [-fopenmp=libomp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [ ] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [-fopenmp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [/openmp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [-Qopenmp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [-openmp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [-xopenmp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [+Oopenmp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [-qsmp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP C flag = [-mp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Failed | |
-- Try OpenMP CXX flag = [-fopenmp] | |
-- Performing Test OpenMP_FLAG_DETECTED | |
-- Performing Test OpenMP_FLAG_DETECTED - Success | |
CMake Error at /opt/local/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:138 (message): | |
Could NOT find OpenMP (missing: OpenMP_C_FLAGS) | |
Call Stack (most recent call first): | |
/opt/local/share/cmake-3.7/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE) | |
/opt/local/share/cmake-3.7/Modules/FindOpenMP.cmake:316 (find_package_handle_standard_args) | |
CMakeLists.txt:13 (find_package) | |
-- Configuring incomplete, errors occurred! | |
See also "/Users/matthijs/Desktop/test_cmake/faiss/build/CMakeFiles/CMakeOutput.log". | |
See also "/Users/matthijs/Desktop/test_cmake/faiss/build/CMakeFiles/CMakeError.log". |
Thanks for the report of macports. I use homebrew personally so I didn't encounter this issue. I've update the pull request and INSTALL. This issue is solved by adding the macport search path (/opt/local/include and /opt/local/lib) to FindOpenBlas.cmake.
The fix does not work. It seems to be because cmake requires cblas.h (that Faiss does not use).
Istalling the dev package of openblas to see if it works better...
Could you remove the requirement for CBLAS includes? Faiss does not use them, and the macports openblas does not provide cblas.h, only the devel packags has a /opt/local/include/cblas_openblas.h.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the suggestion, this advanced a bit, by setting
It now passes the openmp test fine. However, the openblas test fails. with error
I set
OpenBLAS_HOME
to /opt/local because this is where macports installed openblas, seeAny idea why it does not pick up the include path?