24.02.1
ClGemmDefaultConfigNativeMidgard.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2020-2021 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
#ifndef ARM_COMPUTE_CL_GEMM_DEFAULT_CONFIG_NATIVE_MIDGARD_H
25
#define ARM_COMPUTE_CL_GEMM_DEFAULT_CONFIG_NATIVE_MIDGARD_H
26
27
#include "
src/gpu/cl/kernels/gemm/IClGemmKernelConfig.h
"
28
29
namespace
arm_compute
30
{
31
namespace
opencl
32
{
33
namespace
kernels
34
{
35
namespace
gemm
36
{
37
/** Midgard based OpenCL GEMMNative configuration */
38
class
ClGemmDefaultConfigNativeMidgard
final :
public
IClGemmKernelConfig
39
{
40
public
:
41
/** Constructor
42
*
43
* @param[in] gpu GPU target
44
*/
45
ClGemmDefaultConfigNativeMidgard
(
GPUTarget
gpu);
46
47
// Inherited overridden method
48
std::pair<GEMMLHSMatrixInfo, GEMMRHSMatrixInfo>
49
configure
(
unsigned
int
m,
unsigned
int
n,
unsigned
int
k,
unsigned
int
b
,
DataType
data_type
)
override
;
50
51
private
:
52
std::pair<GEMMLHSMatrixInfo, GEMMRHSMatrixInfo>
53
default_q8(
unsigned
int
m,
unsigned
int
n,
unsigned
int
k,
unsigned
int
b
);
54
};
55
}
// namespace gemm
56
}
// namespace kernels
57
}
// namespace opencl
58
}
// namespace arm_compute
59
#endif
/* ARM_COMPUTE_CL_GEMM_DEFAULT_CONFIG_NATIVE_MIDGARD_H */
arm_compute::opencl::kernels::gemm::ClGemmDefaultConfigNativeMidgard
Midgard based OpenCL GEMMNative configuration.
Definition:
ClGemmDefaultConfigNativeMidgard.h:38
arm_gemm::gemm
UniqueGemmCommon< Top, Tret > gemm(const GemmArgs &args, const OutputStage &os)
Definition:
gemm_implementation.hpp:320
arm_compute::opencl::kernels::gemm::IClGemmKernelConfig
Basic interface for the GEMM kernel configuration.
Definition:
IClGemmKernelConfig.h:92
IClGemmKernelConfig.h
arm_compute::opencl::kernels::gemm::ClGemmDefaultConfigNativeMidgard::ClGemmDefaultConfigNativeMidgard
ClGemmDefaultConfigNativeMidgard(GPUTarget gpu)
Constructor.
Definition:
ClGemmDefaultConfigNativeMidgard.cpp:42
arm_compute::opencl::kernels::gemm::ClGemmDefaultConfigNativeMidgard::configure
std::pair< GEMMLHSMatrixInfo, GEMMRHSMatrixInfo > configure(unsigned int m, unsigned int n, unsigned int k, unsigned int b, DataType data_type) override
Given M, N, K and B, this method returns the GEMMLHSMatrixInfo and GEMMRHSMatrixInfo to be used.
Definition:
ClGemmDefaultConfigNativeMidgard.cpp:46
arm_compute::test::validation::data_type
data_type
Definition:
Cast.cpp:222
arm_compute::GPUTarget
GPUTarget
Available GPU Targets.
Definition:
GPUTarget.h:34
arm_compute::test::validation::b
SimpleTensor< float > b
Definition:
DFT.cpp:157
arm_compute
Copyright (c) 2017-2024 Arm Limited.
Definition:
introduction.dox:24
arm_compute::DataType
DataType
Available data types.
Definition:
CoreTypes.h:83
src
gpu
cl
kernels
gemm
native
ClGemmDefaultConfigNativeMidgard.h
Generated on Mon Mar 18 2024 11:32:02 for Compute Library by
1.8.17