aboutsummaryrefslogtreecommitdiff
path: root/arm_compute/runtime/IScheduler.h
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-08-31 14:56:32 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitbeabe3bdf47306d0940ddf2ddf52ada6903a0875 (patch)
tree97afa72f2d60858898ab2dadb95e4cda7176e88b /arm_compute/runtime/IScheduler.h
parent7655a67384895868c0afa72bfda9a9b2fcfdf323 (diff)
downloadComputeLibrary-beabe3bdf47306d0940ddf2ddf52ada6903a0875.tar.gz
COMPMID-481: Add AArch64 GEMM
Change-Id: I34f94f99cb05f0eabafee13c5e623ee779b72360 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/83741 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Reviewed-by: Pablo Tello <pablo.tello@arm.com>
Diffstat (limited to 'arm_compute/runtime/IScheduler.h')
-rw-r--r--arm_compute/runtime/IScheduler.h26
1 files changed, 8 insertions, 18 deletions
diff --git a/arm_compute/runtime/IScheduler.h b/arm_compute/runtime/IScheduler.h
index 6078abd06b..8918843c98 100644
--- a/arm_compute/runtime/IScheduler.h
+++ b/arm_compute/runtime/IScheduler.h
@@ -35,23 +35,23 @@ class IScheduler
{
public:
/** Default constructor. */
- IScheduler()
- : _target(CPUTarget::INTRINSICS)
- {
- }
+ IScheduler();
/** Destructor. */
virtual ~IScheduler() = default;
+
/** Sets the number of threads the scheduler will use to run the kernels.
*
* @param[in] num_threads If set to 0, then one thread per CPU core available on the system will be used, otherwise the number of threads specified.
*/
virtual void set_num_threads(unsigned int num_threads) = 0;
+
/** Returns the number of threads that the SingleThreadScheduler has in his pool.
*
* @return Number of threads available in SingleThreadScheduler.
*/
virtual unsigned int num_threads() const = 0;
+
/** Runs the kernel in the same thread as the caller synchronously.
*
* @param[in] kernel Kernel to execute.
@@ -65,24 +65,14 @@ public:
*/
void set_target(CPUTarget target);
- /** Return the current CPU target.
+ /** Get CPU info.
*
- * @return Target CPU.
+ * @return CPU info.
*/
- CPUTarget target() const;
+ CPUInfo cpu_info() const;
protected:
- CPUTarget _target;
+ CPUInfo _info{};
};
-
-inline void IScheduler::set_target(CPUTarget target)
-{
- _target = target;
-}
-
-inline CPUTarget IScheduler::target() const
-{
- return _target;
-}
}
#endif /* __ARM_COMPUTE_ISCHEDULER_H__ */