24.08
|
Go to the documentation of this file.
11 #include <arm_compute/runtime/CL/CLTuner.h>
12 #include <arm_compute/runtime/CL/CLTunerTypes.h>
13 #include <arm_compute/runtime/CL/CLGEMMHeuristicsHandle.h>
30 int v = value.
AsInt();
35 "Using default(" <<
static_cast<int>(defaultValue) <<
")";
46 tuner.set_tune_new_kernels(
true);
51 ARMNN_LOG(
info) <<
"Gpu tuning is activated. TuningLevel: Rapid (1)";
52 tuner.set_tuner_mode(arm_compute::CLTunerMode::RAPID);
55 ARMNN_LOG(
info) <<
"Gpu tuning is activated. TuningLevel: Normal (2)";
56 tuner.set_tuner_mode(arm_compute::CLTunerMode::NORMAL);
59 ARMNN_LOG(
info) <<
"Gpu tuning is activated. TuningLevel: Exhaustive (3)";
60 tuner.set_tuner_mode(arm_compute::CLTunerMode::EXHAUSTIVE);
64 tuner.set_tune_new_kernels(
false);
74 virtual void Load(
const char* filename);
75 virtual void Save(
const char* filename)
const;
ClTunedParameters(IGpuAccTunedParameters::Mode mode, IGpuAccTunedParameters::TuningLevel tuningLevel)
arm_compute::CLTuner m_Tuner
#define ARMNN_LOG(severity)
TuningLevel ParseTuningLevel(const BackendOptions::Var &value, TuningLevel defaultValue)
void ConfigureTuner(arm_compute::CLTuner &tuner, TuningLevel level)
virtual void Load(const char *filename)
Loads an existing set of tuned parameters from the given file.
virtual void Save(const char *filename) const
Saves the current set of tuned parameters to the given file.
Very basic type safe variant.
Copyright (c) 2021 ARM Limited and Contributors.
TuningLevel m_TuningLevel
arm_compute::CLGEMMHeuristicsHandle m_HeuristicsHandle
Manages a set of GpuAcc parameters which have been tuned for maximum performance.