Skip to content

Conversation

@lhutton1
Copy link
Contributor

"cpuinfo" is a direct dependency of NNPack. It is installed via the NNPack's cmake script, but the version is not pinned. The "clog" dependency was recently removed from "cpuinfo"
(pytorch/cpuinfo@3dc3103), which leads to issues when compiling TVM with support for NNPack.

When building TVM with newly generated docker images and NNPack enabled, we run into the following cmake configuration error:

The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files: NNPACK_CLOG_CONTRIB_LIB

This commit intends to fix this failure while also keeping compatibility with older versions of cpuinfo. It conditionally adds "clog" to the linker libs variable if it was found.

"cpuinfo" is a direct dependency of NNPack. It is installed via the
NNPack's cmake script, but the version is not pinned. The "clog"
dependency was recently removed from "cpuinfo"
(pytorch/cpuinfo@3dc3103),
which leads to issues when compiling TVM with support for NNPack.

When building TVM with newly generated docker images and NNPack enabled,
we run into the following cmake configuration error:
```
The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files: NNPACK_CLOG_CONTRIB_LIB
```

This commit intends to fix this failure while also keeping compatibility
with older versions of cpuinfo. It conditionally adds "clog" to the
linker libs variable if it was found.

Change-Id: I103f81b7ac75e9623ed808d240ce959749c13cf2
@tvm-bot
Copy link
Collaborator

tvm-bot commented Jul 19, 2023

Thanks for contributing to TVM! Please refer to the contributing guidelines https://tvm.apache.org/docs/contribute/ for useful information and tips. Please request code reviews from Reviewers by @-ing them in a comment.

  • No users to tag found in teams: cmake See #10317 for details

Generated by tvm-bot

Copy link
Contributor

@cchung100m cchung100m left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks to @lhutton1

Copy link
Contributor

@asparkhi asparkhi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @lhutton1 for deep follow through on series of issues with CI. LGTM!

@asparkhi asparkhi merged commit ae3de3d into apache:main Jul 20, 2023
@lhutton1 lhutton1 deleted the fix-nnpack branch July 20, 2023 08:47
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

Successfully merging this pull request may close these issues.

4 participants