Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMAKE The package name passed to find_package_handle_standard_args (OpenMP_CXX) does not match the name of the calling package (OpenMP). #2

Open
rpaudel42 opened this issue Feb 10, 2021 · 1 comment

Comments

@rpaudel42
Copy link

rpaudel42 commented Feb 10, 2021

It first through the following warning when I try to compile pytorch using source file

CMake Warning (dev) at /usr/share/cmake3/Modules/FindPackageHandleStandardArgs.cmake:272 (message):
The package name passed to find_package_handle_standard_args (OpenMP_CXX)
does not match the name of the calling package (OpenMP). This can lead to
problems in calling code that expects find_package result variables
(e.g., _FOUND) to follow a certain pattern.
Call Stack (most recent call first):
cmake/Modules/FindOpenMP.cmake:565 (find_package_handle_standard_args)
cmake/Modules/FindMKL.cmake:213 (FIND_PACKAGE)
cmake/Modules/FindMKL.cmake:307 (CHECK_ALL_LIBRARIES)
cmake/Dependencies.cmake:140 (find_package)
CMakeLists.txt:564 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

And,

  • MKL OpenMP type: GNU
    -- MKL OpenMP library: -fopenmp
    -- Brace yourself, we are building NNPACK
    -- NNPACK backend is x86-64
    -- Failed to find LLVM FileCheck
    -- git Version: v1.4.0-505be96a
    -- Version: 1.4.0
    -- Performing Test HAVE_STD_REGEX -- compiled but failed to run
    -- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
    -- Performing Test HAVE_POSIX_REGEX -- compiled but failed to run
    CMake Error at third_party/benchmark/CMakeLists.txt:231 (message):
    Failed to determine the source files for the regular expression backend

and it exit with saying -- Configuring incomplete, errors occurred!

Any help how to configure OpenMP?

@Abel0828
Copy link
Collaborator

Abel0828 commented Feb 20, 2021

Hi there! Thank you for bringing this up. It seems that your issue is related to the installation of PyTorch via building it from source. We did not encounter this in our development but find this repo and its issue listings should contain useful info for trouble shooting: https://github.com/pytorch/pytorch#from-source . Compared with building from source, we recommend using Anaconda to install PyTorch which many people find less painful a process. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants