pytorch / cpuinfo

CPU INFOrmation library (x86/x86-64/ARM/ARM64, Linux/Windows/Android/macOS/iOS)
BSD 2-Clause "Simplified" License
990 stars 310 forks source link

Fix clog deps target #113

Closed huydhn closed 2 years ago

huydhn commented 2 years ago

Context

I'm trying to pull the latest version of CPU into PyTorch https://github.com/pytorch/pytorch/issues/83594

This needs to refer to the correct workspace name instead of //. Otherwise, it won't work when calling from PyTorch as a submodule, i.e. https://github.com/pytorch/pytorch/runs/7886147111?check_suite_focus=true

ERROR: /var/lib/jenkins/workspace/third_party/cpuinfo/BUILD.bazel:103:11: no such package 'deps/clog': BUILD file not found in any of the following directories. Add a BUILD file to a directory to mark it as a package.
 - /var/lib/jenkins/workspace/deps/clog and referenced by '//third_party/cpuinfo:cpuinfo_impl'
ERROR: Analysis of target '//third_party/cpuinfo:cpuinfo_impl' failed; build aborted: Analysis failed

Testing

bazel build //...