aboutsummaryrefslogtreecommitdiff
path: root/src/core/CPP/CPPTypes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/CPP/CPPTypes.cpp')
-rw-r--r--src/core/CPP/CPPTypes.cpp4
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;