From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- ...classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml | 450 +++++++++++++++++++++ 1 file changed, 450 insertions(+) create mode 100644 20.02/classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml (limited to '20.02/classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml') diff --git a/20.02/classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml b/20.02/classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml new file mode 100644 index 0000000000..545a6eaf74 --- /dev/null +++ b/20.02/classarmnn_1_1_i_gpu_acc_tuned_parameters.xhtml @@ -0,0 +1,450 @@ + + + + + + + + + + + + + +ArmNN: IGpuAccTunedParameters Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+ +

Manages a set of GpuAcc parameters which have been tuned for maximum performance. + More...

+ +

#include <IRuntime.hpp>

+
+Inheritance diagram for IGpuAccTunedParameters:
+
+
+ + +ClTunedParameters + +
+ + + + + + +

+Public Types

enum  Mode { UseTunedParameters, +UpdateTunedParameters + }
 
enum  TuningLevel { Rapid = 0, +Normal = 1, +Exhaustive = 2 + }
 
+ + + + + + + +

+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 IGpuAccTunedParametersCreateRaw (Mode mode, TuningLevel tunerMode)
 Creates an IClTunedParameters with the given mode. More...
 
static IGpuAccTunedParametersPtr Create (Mode mode, TuningLevel tunerMode)
 
+ + + +

+Protected Member Functions

virtual ~IGpuAccTunedParameters ()
 
+

Detailed Description

+

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:

    +
  • In UseTunedParameters mode, the parameters stored in this object are used to execute GPU workloads.
  • +
  • In UpdateTunedParameters mode, additionally, whenever a GPU workload is executed for the first time, the optimum parameters will be found and stored in this object. WARNING - This tuning can be slow.
  • +
+

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 183 of file IRuntime.hpp.

+

Member Enumeration Documentation

+ +

◆ Mode

+ +
+
+ + + + + +
+ + + + +
enum Mode
+
+strong
+
+ + + +
Enumerator
UseTunedParameters 
UpdateTunedParameters 
+ +

Definition at line 186 of file IRuntime.hpp.

+
187  {
188  UseTunedParameters,
189  UpdateTunedParameters
190  };
+
+
+ +

◆ TuningLevel

+ +
+
+ + + + + +
+ + + + +
enum TuningLevel
+
+strong
+
+ + + + +
Enumerator
Rapid 
Normal 
Exhaustive 
+ +

Definition at line 192 of file IRuntime.hpp.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ ~IGpuAccTunedParameters()

+ +
+
+ + + + + +
+ + + + + + + +
virtual ~IGpuAccTunedParameters ()
+
+inlineprotectedvirtual
+
+ +

Definition at line 215 of file IRuntime.hpp.

+
215 {};
+
+
+

Member Function Documentation

+ +

◆ Create()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
armnn::IGpuAccTunedParametersPtr Create (Mode mode,
TuningLevel tunerMode 
)
+
+static
+
+ +

Definition at line 174 of file ClContextControl.cpp.

+ +

References IGpuAccTunedParameters::Destroy().

+
176 {
178 }
static IGpuAccTunedParameters * CreateRaw(Mode mode, TuningLevel tunerMode)
Creates an IClTunedParameters with the given mode.
+
static void Destroy(IGpuAccTunedParameters *params)
+
std::shared_ptr< IGpuAccTunedParameters > IGpuAccTunedParametersPtr
The following API is replaced by the backend options API.
Definition: IRuntime.hpp:170
+
+
+
+ +

◆ CreateRaw()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + +
armnn::IGpuAccTunedParameters * CreateRaw (Mode mode,
TuningLevel tunerMode 
)
+
+static
+
+ +

Creates an IClTunedParameters with the given mode.

+ +

Definition at line 168 of file ClContextControl.cpp.

+
170 {
171  return new ClTunedParameters(mode, tuningLevel);
172 }
+
+
+ +

◆ Destroy()

+ +
+
+ + + + + +
+ + + + + + + + +
void Destroy (IGpuAccTunedParametersparams)
+
+static
+
+ +

Definition at line 180 of file ClContextControl.cpp.

+ +

Referenced by IGpuAccTunedParameters::Create().

+
181 {
182  delete params;
183 }
+
+
+ +

◆ Load()

+ +
+
+ + + + + +
+ + + + + + + + +
virtual void Load (const char * filename)
+
+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.

+ +
+
+ +

◆ Save()

+ +
+
+ + + + + +
+ + + + + + + + +
virtual void Save (const char * filename) const
+
+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.

+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1