24.02
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Enumerations
a
b
c
d
e
f
g
j
l
m
n
o
p
q
r
s
t
u
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
c
d
e
f
i
j
l
m
o
p
r
s
v
w
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
o
r
s
t
u
v
x
z
Functions
a
b
c
g
i
m
r
s
t
v
z
Variables
Typedefs
Macros
a
c
d
e
f
h
i
l
o
s
t
u
v
x
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
GpuFsaContextControl.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2023 Arm Ltd and Contributors. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
#pragma once
6
7
#include <
aclCommon/ArmComputeTuningUtils.hpp
>
8
9
namespace
armnn
10
{
11
12
// ARM Compute OpenCL context control.
13
class
GpuFsaContextControl
14
{
15
public
:
16
17
GpuFsaContextControl
(arm_compute::CLTuner* =
nullptr
,
18
arm_compute::CLGEMMHeuristicsHandle* =
nullptr
,
19
bool
profilingEnabled =
false
);
20
21
virtual
~GpuFsaContextControl
();
22
23
void
LoadOpenClRuntime
();
24
25
// Users should call this (after freeing all of the cl::Context objects they use)
26
// to release the cached memory used by the compute library.
27
void
UnloadOpenClRuntime
();
28
29
// Clear the CL cache, without losing the tuned parameter settings.
30
void
ClearClCache
();
31
32
private
:
33
34
void
DoLoadOpenClRuntime(
bool
updateTunedParameters);
35
36
arm_compute::CLTuner* m_Tuner;
37
arm_compute::CLGEMMHeuristicsHandle* m_HeuristicsHandle;
38
39
bool
m_ProfilingEnabled;
40
};
41
42
}
// namespace armnn
armnn::GpuFsaContextControl::~GpuFsaContextControl
virtual ~GpuFsaContextControl()
Definition:
GpuFsaContextControl.cpp:73
armnn::GpuFsaContextControl
Definition:
GpuFsaContextControl.hpp:13
armnn::GpuFsaContextControl::UnloadOpenClRuntime
void UnloadOpenClRuntime()
Definition:
GpuFsaContextControl.cpp:97
armnn::GpuFsaContextControl::LoadOpenClRuntime
void LoadOpenClRuntime()
Definition:
GpuFsaContextControl.cpp:92
armnn::GpuFsaContextControl::GpuFsaContextControl
GpuFsaContextControl(arm_compute::CLTuner *=nullptr, arm_compute::CLGEMMHeuristicsHandle *=nullptr, bool profilingEnabled=false)
Definition:
GpuFsaContextControl.cpp:27
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
ArmComputeTuningUtils.hpp
armnn::GpuFsaContextControl::ClearClCache
void ClearClCache()
Definition:
GpuFsaContextControl.cpp:164
src
backends
gpuFsa
GpuFsaContextControl.hpp
Generated on Wed Feb 14 2024 16:36:16 for Arm NN by
1.8.17