ArmNN
NotReleased
|
#include <IRuntime.hpp>
Public Types | |
enum | Mode { UseTunedParameters, UpdateTunedParameters } |
enum | TuningLevel { Rapid = 0, Normal = 1, Exhaustive = 2 } |
Public Member Functions | |
virtual void | Load (const char *filename)=0 |
virtual void | Save (const char *filename) const =0 |
Static Public Member Functions | |
static void | Destroy (IGpuAccTunedParameters *params) |
static IGpuAccTunedParameters * | CreateRaw (Mode mode, TuningLevel tunerMode) |
static IGpuAccTunedParametersPtr | Create (Mode mode, TuningLevel tunerMode) |
Protected Member Functions | |
virtual | ~IGpuAccTunedParameters () |
Manages a set of GpuAcc parameters which have been tuned for maximum performance. Passes an instance of this object to the IRuntime::Create() method (via IRuntime::CreationOptions) to use it for all GPU workload execution.
Can be created in two modes:
The parameters can be loaded from and saved to a file so that you can first run a slow initial read-write execution, save the parameters for later and then run fast read-only executions using the optimised parameters.
Definition at line 179 of file IRuntime.hpp.
|
strong |
Enumerator | |
---|---|
UseTunedParameters | |
UpdateTunedParameters |
Definition at line 182 of file IRuntime.hpp.
|
strong |
|
inlineprotectedvirtual |
Definition at line 211 of file IRuntime.hpp.
|
static |
Definition at line 173 of file ClContextControl.cpp.
References IGpuAccTunedParameters::Destroy().
|
static |
Creates an IClTunedParameters with the given mode.
Definition at line 167 of file ClContextControl.cpp.
|
static |
Definition at line 179 of file ClContextControl.cpp.
Referenced by IGpuAccTunedParameters::Create().
|
pure virtual |
Loads an existing set of tuned parameters from the given file. If there is an error loading the file, an armnn::Exception is thrown.
Implemented in ClTunedParameters.
|
pure virtual |
Saves the current set of tuned parameters to the given file. If there is an error saving to the file, an armnn::Exception is thrown.
Implemented in ClTunedParameters.