aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/core/CPP
diff options
context:
space:
mode:
authorAnthony Barbier <anthony.barbier@arm.com>2018-08-10 15:28:25 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:54:54 +0000
commit8914e32962be3dc8608499e3c0f2f13141493fc4 (patch)
tree033149dd7969e483811602883fb996f255d82993 /arm_compute/core/CPP
parentdb9d46da3a8645d0c2cc71d035448999a36770ec (diff)
downloadComputeLibrary-8914e32962be3dc8608499e3c0f2f13141493fc4.tar.gz
COMPMID-1473: Added missing TypePrinter for CPUModel, added accessor for number of CPUs
Change-Id: If81d58b83143129bed91b9c6658b0cd4e623bc38 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/143664 Tested-by: Jenkins <bsgcomp@arm.com> Reviewed-by: Michele DiGiorgio <michele.digiorgio@arm.com>
Diffstat (limited to 'arm_compute/core/CPP')
-rw-r--r--arm_compute/core/CPP/CPPTypes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arm_compute/core/CPP/CPPTypes.h b/arm_compute/core/CPP/CPPTypes.h
index 495de13759..3ab1316369 100644
--- a/arm_compute/core/CPP/CPPTypes.h
+++ b/arm_compute/core/CPP/CPPTypes.h
@@ -121,6 +121,12 @@ public:
*/
void set_cpu_num(unsigned int cpu_count);
+ /** Return the maximum number of CPUs present
+ *
+ * @return Number of CPUs
+ */
+ unsigned int get_cpu_num() const;
+
private:
std::vector<CPUModel> _percpu = {};
bool _fp16 = false;