Support CMake find_package#69
Merged
malfet merged 2 commits intopytorch:masterfrom Mar 26, 2022
luncliff:master
Merged
Conversation
* export 2 target 'cpuinfo', 'clog' * create cpuinfo-config.cmake template
Contributor
malfet
approved these changes
Mar 26, 2022
This was referenced Apr 2, 2022
megengine-bot
pushed a commit
to MegEngine/cpuinfo
that referenced
this pull request
Sep 5, 2022
* Support CMake 'find_package' * export 2 target 'cpuinfo', 'clog' * create cpuinfo-config.cmake template * fix script include GitOrigin-RevId: ba0f4a2
salilsdesai
added a commit
to salilsdesai/pytorch
that referenced
this pull request
Sep 16, 2022
Summary: Pull Request resolved: pytorch#84876 Fixes the following error when building qnnpack: ``` CMake Error: install(EXPORT "cpuinfo-targets" ...) includes target "cpuinfo" which requires target "clog" that is not in any export set. ``` This diff mirrors the changes to the CMakeLists of - pytorch/cpuinfo#69 - pytorch/cpuinfo#89 Test Plan: # Build Qnnpack ``` export ANDROID_NDK=/opt/android_ndk/r20 export ANDROID_NDK_HOME=${ANDROID_NDK} export ANDROID_SDK=/opt/android_sdk export ANDROID_HOME=${ANDROID_SDK} cd ~/fbsource/fbcode/caffe2/aten/src/ATen/native/quantized/cpu/qnnpack ./scripts/build-android-arm64.sh ``` Succeeds Differential Revision: D39438768 fbshipit-source-id: 9bd0119ffea984d274e85b8b756b630743a89f0f
pytorchmergebot
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Sep 16, 2022
Summary: Fixes the following error when building qnnpack: ``` CMake Error: install(EXPORT "cpuinfo-targets" ...) includes target "cpuinfo" which requires target "clog" that is not in any export set. ``` This diff mirrors the changes to the CMakeLists of pytorch/cpuinfo#69 Test Plan: # Build Qnnpack ``` export ANDROID_NDK=/opt/android_ndk/r20 export ANDROID_NDK_HOME=${ANDROID_NDK} export ANDROID_SDK=/opt/android_sdk export ANDROID_HOME=${ANDROID_SDK} cd ~/fbsource/fbcode/caffe2/aten/src/ATen/native/quantized/cpu/qnnpack ./scripts/build-android-arm64.sh ``` Succeeds Differential Revision: D39438768 Pull Request resolved: #84876 Approved by: https://github.com/digantdesai
mehtanirav
pushed a commit
to pytorch/pytorch
that referenced
this pull request
Oct 4, 2022
Summary: Fixes the following error when building qnnpack: ``` CMake Error: install(EXPORT "cpuinfo-targets" ...) includes target "cpuinfo" which requires target "clog" that is not in any export set. ``` This diff mirrors the changes to the CMakeLists of pytorch/cpuinfo#69 Test Plan: # Build Qnnpack ``` export ANDROID_NDK=/opt/android_ndk/r20 export ANDROID_NDK_HOME=${ANDROID_NDK} export ANDROID_SDK=/opt/android_sdk export ANDROID_HOME=${ANDROID_SDK} cd ~/fbsource/fbcode/caffe2/aten/src/ATen/native/quantized/cpu/qnnpack ./scripts/build-android-arm64.sh ``` Succeeds Differential Revision: D39438768 Pull Request resolved: #84876 Approved by: https://github.com/digantdesai
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes
CMake build generates
cpuinfo-config.cmakeand some other CMake scripts.These files will be
installed under{prefix}/share/cpuinfo.After install, CMake users can search the libraries (cpuinfo and clog) using
find_packageconfig mode.