docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
gpu_mma_fill_node.h
Go to the documentation of this file.
1#pragma once
2
6#include "sdfg/types/type.h"
7
8namespace sdfg::gpu {
9
11
20 MmaBlockSize mma_block_size_;
21 types::PrimitiveType fill_type_;
22
23public:
24 static constexpr auto Y_INPUT_IDX = 0;
25
27 size_t element_id,
28 const DebugInfo& debug_info,
33 const data_flow::ImplementationType& impl_type
34 );
35
37 return mma_block_size_;
38 }
40 return fill_type_;
41 }
42
43 void validate(const Function& function) const override;
44
45 symbolic::SymbolSet symbols() const override;
46
47 void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override;
48 void replace(const symbolic::ExpressionMapping& replacements) override;
49
50 std::unique_ptr<data_flow::DataFlowNode>
51 clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph& parent) const override;
52
53 std::string toStr() const override;
54
56};
57
59public:
60 nlohmann::json serialize(const data_flow::LibraryNode& library_node) override;
63 ) override;
64};
65
66} // namespace sdfg::gpu
Definition element.h:30
size_t element_id() const
const DebugInfo & debug_info() const
Definition function.h:43
Note: Even though the class references unique_ptr, it will never delete an SDFG it has a reference to...
Definition structured_sdfg_builder.h:44
Definition data_flow_graph.h:29
graph::Vertex vertex() const
Get the graph vertex for this node.
Base class for all library nodes in the dataflow graph.
Definition library_node.h:106
Definition gpu_mma_fill_node.h:58
nlohmann::json serialize(const data_flow::LibraryNode &library_node) override
Serialize a library node to JSON.
data_flow::LibraryNode & deserialize(const nlohmann::json &j, builder::StructuredSDFGBuilder &builder, structured_control_flow::Block &parent) override
Deserialize a library node from JSON.
types::PrimitiveType fill_type() const
Definition gpu_mma_fill_node.h:39
void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override
GpuMmaFillNode(size_t element_id, const DebugInfo &debug_info, const graph::Vertex vertex, data_flow::DataFlowGraph &parent, const MmaBlockSize &mma_block_size, types::PrimitiveType fill_type, const data_flow::ImplementationType &impl_type)
void replace(const symbolic::ExpressionMapping &replacements) override
const MmaBlockSize & mma_block_size() const
Definition gpu_mma_fill_node.h:36
std::string toStr() const override
Convert node to string representation.
static constexpr auto Y_INPUT_IDX
Definition gpu_mma_fill_node.h:24
void validate(const Function &function) const override
Validate the code node's configuration.
std::unique_ptr< data_flow::DataFlowNode > clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph &parent) const override
Clone this node for graph transformations.
symbolic::SymbolSet symbols() const override
Get all symbols used in this node.
data_flow::PointerAccessType pointer_access_type(int input_idx) const override
Describes what a pointer is used for.
Base class for library node serialization.
Definition json_serializer.h:195
A control flow node representing a basic block with dataflow computations.
Definition block.h:42
SymEngine::RCP< const SymEngine::Basic > Expression
Reference-counted pointer to a symbolic expression (SymEngine Basic).
Definition symbolic.h:83
std::set< Symbol, SymEngine::RCPBasicKeyLess > SymbolSet
Ordered set of symbols.
Definition symbolic.h:95
SymEngine::map_basic_basic ExpressionMapping
Definition symbolic.h:109
Definition function_builder.h:10
StringEnum ImplementationType
Implementation type identifier for library nodes.
Definition library_node.h:75
StringEnum LibraryNodeCode
Definition library_node.h:65
std::unique_ptr< PointerAccessMeta, PtrAccessDeleter > PointerAccessType
Definition pointer_metadata.h:32
Definition cuda_arch.h:11
data_flow::LibraryNodeCode LibraryNodeType_GpuMmaFill("gpu::GpuMmaFill")
boost::graph_traits< Graph >::vertex_descriptor Vertex
Definition graph.h:25
PrimitiveType
Enumeration of all primitive data types supported by sdfglib.
Definition type.h:35
Definition gpu_mma_fragment.h:16
Symbolic system for integer-based symbol analysis.
Core type system definitions for sdfglib.