diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/CPP/CPPTypes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/CPP/CPPTypes.cpp b/src/core/CPP/CPPTypes.cpp index 9c2b41b4ef..e4c3b7793f 100644 --- a/src/core/CPP/CPPTypes.cpp +++ b/src/core/CPP/CPPTypes.cpp @@ -51,6 +51,10 @@ void CPUInfo::set_cpu_model(unsigned int cpuid, CPUModel model) } } +unsigned int CPUInfo::get_cpu_num() const +{ + return _percpu.size(); +} bool CPUInfo::has_fp16() const { return _fp16; |