/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/tensor_operation/gpu/device/device_gemm_streamk_v2.hpp Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/tensor_operation/gpu/device/device_gemm_streamk_v2.hpp Source File#

Composable Kernel: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-composable-kernel/checkouts/docs-6.4.3/include/ck/tensor_operation/gpu/device/device_gemm_streamk_v2.hpp Source File
device_gemm_streamk_v2.hpp
Go to the documentation of this file.
1 // SPDX-License-Identifier: MIT
2 // Copyright (c) 2024, Advanced Micro Devices, Inc. All rights reserved.
3 
4 #pragma once
5 
7 
8 namespace ck {
9 namespace tensor_operation {
10 namespace device {
11 
12 template <typename ALayout,
13  typename BLayout,
14  typename CLayout,
15  typename ADataType,
16  typename BDataType,
17  typename CDataType,
18  typename AElementwiseOperation,
19  typename BElementwiseOperation,
20  typename CElementwiseOperation>
22 {
23  virtual std::unique_ptr<BaseArgument>
24  MakeArgumentPointer(const void* p_a,
25  const void* p_b,
26  void* p_c,
27  ck::index_t M,
28  ck::index_t N,
29  ck::index_t K,
30  ck::index_t StrideA,
31  ck::index_t StrideB,
32  ck::index_t StrideC,
33  ck::index_t Streamk_sel,
34  ck::index_t Grid_size,
35  AElementwiseOperation a_element_op,
36  BElementwiseOperation b_element_op,
37  CElementwiseOperation c_element_op) = 0;
38 
39  virtual std::unique_ptr<BaseInvoker> MakeInvokerPointer() = 0;
40 };
41 
42 } // namespace device
43 } // namespace tensor_operation
44 } // namespace ck
Definition: ck.hpp:264
int32_t index_t
Definition: ck.hpp:289
Definition: device_base.hpp:76
Definition: device_gemm_streamk_v2.hpp:22
virtual std::unique_ptr< BaseInvoker > MakeInvokerPointer()=0
virtual std::unique_ptr< BaseArgument > MakeArgumentPointer(const void *p_a, const void *p_b, void *p_c, ck::index_t M, ck::index_t N, ck::index_t K, ck::index_t StrideA, ck::index_t StrideB, ck::index_t StrideC, ck::index_t Streamk_sel, ck::index_t Grid_size, AElementwiseOperation a_element_op, BElementwiseOperation b_element_op, CElementwiseOperation c_element_op)=0