24.02.1
GpuWorkloadSketch.cpp
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2022-2024 Arm Limited.
3
*
4
* SPDX-License-Identifier: MIT
5
*
6
* Permission is hereby granted, free of charge, to any person obtaining a copy
7
* of this software and associated documentation files (the "Software"), to
8
* deal in the Software without restriction, including without limitation the
9
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
10
* sell copies of the Software, and to permit persons to whom the Software is
11
* furnished to do so, subject to the following conditions:
12
*
13
* The above copyright notice and this permission notice shall be included in all
14
* copies or substantial portions of the Software.
15
*
16
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
* SOFTWARE.
23
*/
24
#include "
arm_compute/dynamic_fusion/sketch/gpu/GpuWorkloadSketch.h
"
25
26
#include "
src/dynamic_fusion/sketch/gpu/GpuWorkloadSketchImpl.h
"
27
28
namespace
arm_compute
29
{
30
namespace
experimental
31
{
32
namespace
dynamic_fusion
33
{
34
35
GpuWorkloadSketch::GpuWorkloadSketch
(
Context
*
context
) : _impl{std::make_unique<Implementation>(
context
)}
36
{
37
}
38
39
GpuWorkloadSketch::~GpuWorkloadSketch
()
40
{
41
}
42
43
GpuWorkloadSketch::GpuWorkloadSketch
(
GpuWorkloadSketch
&&) =
default
;
44
45
GpuWorkloadSketch
&
GpuWorkloadSketch::operator=
(
GpuWorkloadSketch
&&) =
default
;
46
47
const
GpuWorkloadSketch::Context
*
GpuWorkloadSketch::gpu_context
()
const
48
{
49
return
_impl->context();
50
}
51
52
GpuWorkloadSketch::Context
*
GpuWorkloadSketch::gpu_context
()
53
{
54
return
_impl->context();
55
}
56
57
GpuWorkloadSketch::Implementation
&
GpuWorkloadSketch::implementation
()
58
{
59
return
*_impl;
60
}
61
62
const
GpuWorkloadSketch::Implementation
&
GpuWorkloadSketch::implementation
()
const
63
{
64
return
*_impl;
65
}
66
67
}
// namespace dynamic_fusion
68
}
// namespace experimental
69
}
// namespace arm_compute
arm_compute::experimental::dynamic_fusion::GpuWorkloadSketch::gpu_context
const GpuWorkloadContext * gpu_context() const
Get the gpu workload context of this sketch.
Definition:
GpuWorkloadSketch.cpp:47
arm_compute::experimental::dynamic_fusion::GpuWorkloadSketch::implementation
Implementation & implementation()
Get the implementation.
Definition:
GpuWorkloadSketch.cpp:57
GpuWorkloadSketch.h
arm_compute::experimental::dynamic_fusion::GpuWorkloadSketch::GpuWorkloadSketch
GpuWorkloadSketch(GpuWorkloadContext *context)
Constructor.
Definition:
GpuWorkloadSketch.cpp:35
arm_compute::experimental::dynamic_fusion::GpuWorkloadSketch
A descriptor of a workload of operators.
Definition:
GpuWorkloadSketch.h:42
GpuWorkloadSketchImpl.h
arm_compute::experimental::dynamic_fusion::GpuWorkloadContext
Provide context necessary for the creation and configuration of a workload e.g.
Definition:
GpuWorkloadContext.h:57
arm_compute::test::validation::context
auto context
Definition:
DirectConv2d.cpp:167
arm_compute::experimental::dynamic_fusion::GpuWorkloadSketch::~GpuWorkloadSketch
~GpuWorkloadSketch()
Destructor.
Definition:
GpuWorkloadSketch.cpp:39
arm_compute
Copyright (c) 2017-2024 Arm Limited.
Definition:
introduction.dox:24
arm_compute::experimental::dynamic_fusion::GpuWorkloadSketch::Implementation
Internal implementation of GpuWorkloadSketch.
Definition:
GpuWorkloadSketchImpl.h:42
arm_compute::experimental::dynamic_fusion::GpuWorkloadSketch::operator=
GpuWorkloadSketch & operator=(GpuWorkloadSketch &&)
Move assignment.
src
dynamic_fusion
sketch
gpu
GpuWorkloadSketch.cpp
Generated on Mon Mar 18 2024 11:32:01 for Compute Library by
1.8.17