diff options
author | Ashkan Aliabadi <ashkan.aliabadi@gmail.com> | 2020-05-08 20:40:33 -0700 |
---|---|---|
committer | David Reiss <dreiss@fb.com> | 2020-05-11 09:57:00 -0700 |
commit | c2092219e7c874783a00a62edb94ddc672f57ab3 (patch) | |
tree | 87c8ea93fb7e78de4243ae874fc0686c20ef26fc /tools | |
parent | 2b14e445016dd46f7de821cdf3093e2823b9ab21 (diff) | |
download | cpuinfo-c2092219e7c874783a00a62edb94ddc672f57ab3.tar.gz |
Upstream cpuinfo updates in XNNPACK as of XNNPACK:d793f6c2ec145be3ddbffea951e6e5480f4646b8.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/cpu-info.c | 6 | ||||
-rw-r--r-- | tools/gpu-dump.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/tools/cpu-info.c b/tools/cpu-info.c index 7963c00..4453d88 100644 --- a/tools/cpu-info.c +++ b/tools/cpu-info.c @@ -14,6 +14,8 @@ static const char* vendor_to_string(enum cpuinfo_vendor vendor) { return "Intel"; case cpuinfo_vendor_amd: return "AMD"; + case cpuinfo_vendor_huawei: + return "Huawei"; case cpuinfo_vendor_hygon: return "Hygon"; case cpuinfo_vendor_arm: @@ -243,6 +245,10 @@ static const char* uarch_to_string(enum cpuinfo_uarch uarch) { return "Brahma B53"; case cpuinfo_uarch_xgene: return "X-Gene"; + case cpuinfo_uarch_dhyana: + return "Dhyana"; + case cpuinfo_uarch_taishan_v110: + return "TaiShan v110"; default: return NULL; } diff --git a/tools/gpu-dump.c b/tools/gpu-dump.c index d7cfa9e..6d17374 100644 --- a/tools/gpu-dump.c +++ b/tools/gpu-dump.c @@ -314,7 +314,7 @@ void report_gles_attributes(void) { fprintf(stderr, "failed to get the number of EGL frame buffer configurations\n"); goto cleanup; } - + configs = (EGLConfig*) malloc(configs_count * sizeof(EGLConfig)); if (configs == NULL) { fprintf(stderr, "failed to allocate %zu bytes for %d frame buffer configurations\n", |