Skip to content

Commit b29b172

Browse files
mcr229facebook-github-bot
authored andcommitted
add cpuinfo
Differential Revision: D48180549 fbshipit-source-id: 32c9d513a68f36ffc6f3a013694704c3ae774ac6
1 parent f90d54d commit b29b172

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+498
-0
lines changed

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@
1313
[submodule "backends/xnnpack/third-party/pthreadpool"]
1414
path = backends/xnnpack/third-party/pthreadpool
1515
url = https://github.com/Maratyszcza/pthreadpool.git
16+
[submodule "backends/xnnpack/third-party/cpuinfo"]
17+
path = backends/xnnpack/third-party/cpuinfo
18+
url = https://github.com/pytorch/cpuinfo.git
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
load(":pthreadpool_defs.bzl", "define_pthreadpool")
2+
load(":cpuinfo_defs.bzl", "define_cpuinfo_and_clog")
23

34
define_pthreadpool()
5+
6+
define_cpuinfo_and_clog()

backends/xnnpack/third-party/cpuinfo

Submodule cpuinfo added at 6481e8b
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* Auto-generated by generate-wrappers.py script. Do not modify */
2+
3+
#ifdef __APPLE__
4+
#include <TargetConditionals.h>
5+
#endif /* __APPLE__ */
6+
7+
#include <api.c>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Auto-generated by generate-wrappers.py script. Do not modify */
2+
3+
#ifdef __APPLE__
4+
#include <TargetConditionals.h>
5+
#endif /* __APPLE__ */
6+
7+
#if (defined(__arm__) || defined(__aarch64__)) && defined(__ANDROID__)
8+
#include <arm/android/properties.c>
9+
#endif /* (defined(__arm__) || defined(__aarch64__)) && defined(__ANDROID__) */
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Auto-generated by generate-wrappers.py script. Do not modify */
2+
3+
#ifdef __APPLE__
4+
#include <TargetConditionals.h>
5+
#endif /* __APPLE__ */
6+
7+
#if (defined(__arm__) || defined(__aarch64__)) && defined(__linux__)
8+
#include <arm/cache.c>
9+
#endif /* (defined(__arm__) || defined(__aarch64__)) && defined(__linux__) */
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Auto-generated by generate-wrappers.py script. Do not modify */
2+
3+
#ifdef __APPLE__
4+
#include <TargetConditionals.h>
5+
#endif /* __APPLE__ */
6+
7+
#if defined(__arm__) && defined(__linux__)
8+
#include <arm/linux/aarch32-isa.c>
9+
#endif /* defined(__arm__) && defined(__linux__) */
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Auto-generated by generate-wrappers.py script. Do not modify */
2+
3+
#ifdef __APPLE__
4+
#include <TargetConditionals.h>
5+
#endif /* __APPLE__ */
6+
7+
#if defined(__aarch64__) && defined(__linux__)
8+
#include <arm/linux/aarch64-isa.c>
9+
#endif /* defined(__aarch64__) && defined(__linux__) */
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Auto-generated by generate-wrappers.py script. Do not modify */
2+
3+
#ifdef __APPLE__
4+
#include <TargetConditionals.h>
5+
#endif /* __APPLE__ */
6+
7+
#if (defined(__arm__) || defined(__aarch64__)) && defined(__linux__)
8+
#include <arm/linux/chipset.c>
9+
#endif /* (defined(__arm__) || defined(__aarch64__)) && defined(__linux__) */
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* Auto-generated by generate-wrappers.py script. Do not modify */
2+
3+
#ifdef __APPLE__
4+
#include <TargetConditionals.h>
5+
#endif /* __APPLE__ */
6+
7+
#if (defined(__arm__) || defined(__aarch64__)) && defined(__linux__)
8+
#include <arm/linux/clusters.c>
9+
#endif /* (defined(__arm__) || defined(__aarch64__)) && defined(__linux__) */

0 commit comments

Comments
 (0)