aboutsummaryrefslogtreecommitdiff
path: root/arm_compute
diff options
context:
space:
mode:
authorPablo Marquez Tello <pablo.tello@arm.com>2023-12-05 15:44:50 +0000
committerPablo Marquez Tello <pablo.tello@arm.com>2023-12-06 15:05:15 +0000
commit17e116e90e6b962a09c133c646b6ad7884e94693 (patch)
tree7c0bba172a510fb0793d2052b3ce5f1d3174abc9 /arm_compute
parentfadc9b1e0bba90d6a91beb65466b2a0895b3a5e4 (diff)
downloadComputeLibrary-17e116e90e6b962a09c133c646b6ad7884e94693.tar.gz
Revert "thread_local _custom_scheduler"
This reverts commit ded5b182675e3166e947a8eb637b5b1e925816ab. Resolves COMPMID-6735 Signed-off-by: Pablo Marquez Tello <pablo.tello@arm.com> Change-Id: I9b69ca1ec80a671171d3f52081c4b8c61a676617 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/10838 Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: <felixjohnny.thomasmathibalan@arm.com> Comments-Addressed: Arm Jenkins <bsgcomp@arm.com> Benchmark: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'arm_compute')
-rw-r--r--arm_compute/runtime/Scheduler.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/arm_compute/runtime/Scheduler.h b/arm_compute/runtime/Scheduler.h
index 481e5e9b60..7c83f86caa 100644
--- a/arm_compute/runtime/Scheduler.h
+++ b/arm_compute/runtime/Scheduler.h
@@ -1,5 +1,5 @@
/*
-* Copyright (c) 2017-2019, 2023 Arm Limited.
+ * Copyright (c) 2017-2019, 2023 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -72,24 +72,10 @@ public:
* @return true if the given scheduler type is supported. False otherwise.
*/
static bool is_available(Type t);
- /** Returns true if a scheduler has been set.
- *
- * @return true if a scheduler has been set. False otherwise.
- */
- static bool is_set();
- /** Returns number of threads from scheduler if scheduler is set, otherwise queries CPUInfo.
- *
- * @return number of threads from scheduler if scheduler is set, otherwise queries CPUInfo.
- */
- static unsigned int num_threads();
private:
- static Type _scheduler_type;
-#ifndef ARM_COMPUTE_THREAD_LOCAL_SCHEDULER
- static std::shared_ptr<IScheduler> _custom_scheduler;
-#else // ARM_COMPUTE_THREAD_LOCAL_SCHEDULER
- static std::shared_ptr<IScheduler> thread_local _custom_scheduler;
-#endif // ARM_COMPUTE_THREAD_LOCAL_SCHEDULER
+ static Type _scheduler_type;
+ static std::shared_ptr<IScheduler> _custom_scheduler;
static std::map<Type, std::unique_ptr<IScheduler>> _schedulers;
Scheduler();