24.02
|
Manages a set of GpuAcc parameters which have been tuned for maximum performance. More...
#include <IRuntime.hpp>
Public Types | |
enum | Mode { UseTunedParameters, UpdateTunedParameters } |
enum | TuningLevel { Rapid = 1, Normal = 2, Exhaustive = 3 } |
Public Member Functions | |
virtual void | Load (const char *filename)=0 |
Loads an existing set of tuned parameters from the given file. More... | |
virtual void | Save (const char *filename) const =0 |
Saves the current set of tuned parameters to the given file. More... | |
Static Public Member Functions | |
static void | Destroy (IGpuAccTunedParameters *params) |
static IGpuAccTunedParameters * | CreateRaw (Mode mode, TuningLevel tunerMode) |
Creates an IClTunedParameters with the given mode. More... | |
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 313 of file IRuntime.hpp.
|
strong |
Enumerator | |
---|---|
UseTunedParameters | |
UpdateTunedParameters |
Definition at line 316 of file IRuntime.hpp.
|
strong |
Enumerator | |
---|---|
Rapid | |
Normal | |
Exhaustive |
Definition at line 322 of file IRuntime.hpp.
|
inlineprotectedvirtual |
Definition at line 345 of file IRuntime.hpp.
|
static |
Definition at line 17 of file ArmComputeTuningUtils.cpp.
References IGpuAccTunedParameters::CreateRaw(), and IGpuAccTunedParameters::Destroy().
Referenced by ArmnnDevice::ArmnnDevice().
|
static |
Creates an IClTunedParameters with the given mode.
Definition at line 11 of file ArmComputeTuningUtils.cpp.
Referenced by IGpuAccTunedParameters::Create().
|
static |
Definition at line 23 of file ArmComputeTuningUtils.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.