mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 12:54:11 +08:00
Update cpuinfo to the latest commit (#83620)
This hasn't been updated for a while, so pulling the latest commit from https://github.com/pytorch/cpuinfo. I wonder if it breaks anything Fixes #83594 Pull Request resolved: https://github.com/pytorch/pytorch/pull/83620 Approved by: https://github.com/malfet
This commit is contained in:
@ -88,6 +88,7 @@ new_local_repository(
|
||||
name = "fbgemm",
|
||||
build_file = "//third_party:fbgemm/BUILD.bazel",
|
||||
path = "third_party/fbgemm",
|
||||
repo_mapping = {"@cpuinfo" : "@org_pytorch_cpuinfo"}
|
||||
)
|
||||
|
||||
new_local_repository(
|
||||
@ -103,8 +104,8 @@ new_local_repository(
|
||||
)
|
||||
|
||||
new_local_repository(
|
||||
name = "cpuinfo",
|
||||
build_file = "//third_party:cpuinfo.BUILD",
|
||||
name = "org_pytorch_cpuinfo",
|
||||
build_file = "//third_party:cpuinfo/BUILD.bazel",
|
||||
path = "third_party/cpuinfo",
|
||||
)
|
||||
|
||||
|
2
third_party/cpuinfo
vendored
2
third_party/cpuinfo
vendored
Submodule third_party/cpuinfo updated: 5916273f79...8ec7bd91ad
55
third_party/cpuinfo.BUILD
vendored
55
third_party/cpuinfo.BUILD
vendored
@ -1,55 +0,0 @@
|
||||
load("@rules_cc//cc:defs.bzl", "cc_library")
|
||||
|
||||
cc_library(
|
||||
name = "clog",
|
||||
srcs = [
|
||||
"deps/clog/src/clog.c",
|
||||
],
|
||||
hdrs = glob([
|
||||
"deps/clog/include/*.h",
|
||||
]),
|
||||
includes = [
|
||||
"deps/clog/include/",
|
||||
],
|
||||
linkstatic = True,
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
||||
cc_library(
|
||||
name = "cpuinfo",
|
||||
srcs = glob(
|
||||
[
|
||||
"src/*.c",
|
||||
"src/linux/*.c",
|
||||
"src/x86/*.c",
|
||||
"src/x86/cache/*.c",
|
||||
"src/x86/linux/*.c",
|
||||
],
|
||||
exclude = [
|
||||
"src/x86/mockcpuid.c",
|
||||
"src/linux/mockfile.c",
|
||||
],
|
||||
),
|
||||
hdrs = glob([
|
||||
"include/*.h",
|
||||
"src/*.h",
|
||||
"src/cpuinfo/*.h",
|
||||
"src/include/*.h",
|
||||
"src/x86/*.h",
|
||||
"src/x86/linux/*.h",
|
||||
"src/linux/*.h",
|
||||
]),
|
||||
copts = [
|
||||
"-DCPUINFO_LOG_LEVEL=2",
|
||||
"-D_GNU_SOURCE=1",
|
||||
],
|
||||
includes = [
|
||||
"include",
|
||||
"src",
|
||||
],
|
||||
linkstatic = True,
|
||||
visibility = ["//visibility:public"],
|
||||
deps = [
|
||||
":clog",
|
||||
],
|
||||
)
|
Reference in New Issue
Block a user