diff options
author | MITSUNARI Shigeo <[email protected]> | 2019-01-17 13:45:25 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2019-01-17 13:45:31 +0900 |
commit | 4612528faace6fe58ad8de71729cd37eb4d162b5 (patch) | |
tree | 6db4d962fd9e5742d1b0e8b4c40534b5c7ba03b1 /sample/test_util.cpp | |
parent | 4b95e862081028e0aea0c451980345ffbf721048 (diff) | |
download | xbyak-4612528faace6fe58ad8de71729cd37eb4d162b5.tar.gz xbyak-4612528faace6fe58ad8de71729cd37eb4d162b5.zip |
format change
Diffstat (limited to 'sample/test_util.cpp')
-rw-r--r-- | sample/test_util.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sample/test_util.cpp b/sample/test_util.cpp index 9b19935..d75a5e0 100644 --- a/sample/test_util.cpp +++ b/sample/test_util.cpp @@ -104,9 +104,12 @@ void putCPUinfo() Core i7-3930K 6 2D */ cpu.putFamily(); + if (!cpu.has(Cpu::tINTEL)) return; for (unsigned int i = 0; i < cpu.getDataCacheLevels(); i++) { printf("cache level=%u data cache size=%u cores sharing data cache=%u\n", i, cpu.getDataCacheSize(i), cpu.getCoresSharingDataCache(i)); } + printf("SmtLevel =%u\n", cpu.getNumCores(Xbyak::util::SmtLevel)); + printf("CoreLevel=%u\n", cpu.getNumCores(Xbyak::util::CoreLevel)); } int main() |