aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/SchedulerFactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/SchedulerFactory.cpp')
-rw-r--r--src/runtime/SchedulerFactory.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/runtime/SchedulerFactory.cpp b/src/runtime/SchedulerFactory.cpp
index c6c90348b4..4fb08d79f5 100644
--- a/src/runtime/SchedulerFactory.cpp
+++ b/src/runtime/SchedulerFactory.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2019-2020 ARM Limited.
+ * Copyright (c) 2019-2020 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -23,8 +23,6 @@
*/
#include "arm_compute/runtime/SchedulerFactory.h"
-#include "support/MemorySupport.h"
-
#include "arm_compute/core/Error.h"
#if ARM_COMPUTE_CPP_SCHEDULER
#include "arm_compute/runtime/CPP/CPPScheduler.h"
@@ -50,16 +48,16 @@ const SchedulerFactory::Type SchedulerFactory::_default_type = SchedulerFactory:
std::unique_ptr<IScheduler> SchedulerFactory::create(Type type)
{
- switch(type)
+ switch (type)
{
case Type::ST:
{
- return support::cpp14::make_unique<SingleThreadScheduler>();
+ return std::make_unique<SingleThreadScheduler>();
}
case Type::CPP:
{
#if ARM_COMPUTE_CPP_SCHEDULER
- return support::cpp14::make_unique<CPPScheduler>();
+ return std::make_unique<CPPScheduler>();
#else /* ARM_COMPUTE_CPP_SCHEDULER */
ARM_COMPUTE_ERROR("Recompile with cppthreads=1 to use C++11 scheduler.");
#endif /* ARM_COMPUTE_CPP_SCHEDULER */
@@ -67,7 +65,7 @@ std::unique_ptr<IScheduler> SchedulerFactory::create(Type type)
case Type::OMP:
{
#if ARM_COMPUTE_OPENMP_SCHEDULER
- return support::cpp14::make_unique<OMPScheduler>();
+ return std::make_unique<OMPScheduler>();
#else /* ARM_COMPUTE_OPENMP_SCHEDULER */
ARM_COMPUTE_ERROR("Recompile with openmp=1 to use openmp scheduler.");
#endif /* ARM_COMPUTE_OPENMP_SCHEDULER */