From 20fca524baf99402f742ce38c538f2fd07d5fff9 Mon Sep 17 00:00:00 2001 From: Michalis Spyrou Date: Mon, 7 Jun 2021 14:23:57 +0100 Subject: Create core library using high priority operators A smaller core library is created using a subset of the operators. Changed the structure of filelist.json in order to include more information about the kernels and make the selection easier. Resolves: COMPMID-4514 Change-Id: I079ca7d8e64346174eebdd13b834e1dd4dc36ca2 Signed-off-by: Michalis Spyrou Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5786 Tested-by: Arm Jenkins Reviewed-by: Georgios Pinitas Comments-Addressed: Arm Jenkins --- src/core/CPP/CPPTypes.cpp | 41 ++++++++++++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 5 deletions(-) (limited to 'src/core/CPP') diff --git a/src/core/CPP/CPPTypes.cpp b/src/core/CPP/CPPTypes.cpp index edcb9cb1ba..44cd000ada 100644 --- a/src/core/CPP/CPPTypes.cpp +++ b/src/core/CPP/CPPTypes.cpp @@ -36,6 +36,12 @@ struct CPUInfo::Impl unsigned int L2_cache_size = 262144; }; +CPUInfo &CPUInfo::get() +{ + static CPUInfo _cpuinfo; + return _cpuinfo; +} + CPUInfo::CPUInfo() : _impl(std::make_unique()) { @@ -49,11 +55,6 @@ unsigned int CPUInfo::get_cpu_num() const return _impl->info.num_cpus(); } -bool CPUInfo::has_sve() const -{ - return _impl->info.has_sve(); -} - bool CPUInfo::has_fp16() const { return _impl->info.has_fp16(); @@ -64,11 +65,41 @@ bool CPUInfo::has_bf16() const return _impl->info.has_bf16(); } +bool CPUInfo::has_svebf16() const +{ + return _impl->info.has_svebf16(); +} + bool CPUInfo::has_dotprod() const { return _impl->info.has_dotprod(); } +bool CPUInfo::has_svef32mm() const +{ + return _impl->info.has_svef32mm(); +} + +bool CPUInfo::has_i8mm() const +{ + return _impl->info.has_i8mm(); +} + +bool CPUInfo::has_svei8mm() const +{ + return _impl->info.has_svei8mm(); +} + +bool CPUInfo::has_sve() const +{ + return _impl->info.has_sve(); +} + +bool CPUInfo::has_sve2() const +{ + return _impl->info.has_sve2(); +} + CPUModel CPUInfo::get_cpu_model() const { return _impl->info.cpu_model(); -- cgit v1.2.1