Peano
Loading...
Searching...
No Matches
solvers.aderdg.kernels.Gemms.Gemms Class Reference

Specification of a dense matrix-matrix multiplication. More...

Public Member Functions

 __init__ (self, M, N, K, LDA, LDB, LDC, alpha, beta, alignment_A, alignment_C, name, prefetchStrategy, operationType="gemm", precision=["DP"])
 __repr__ (self)

Static Public Attributes

dict PrecisionTranslate
str operationType = ""
str baseroutinename = ""
str name = ""
int M = -1
int N = -1
int K = -1
int LDA = -1
int LDB = -1
int LDC = -1
int alpha = 1
int beta = 1
int alignment_A = 0
int alignment_C = 0
str prefetchStrategy = ""
str precision = "DP"

Detailed Description

Specification of a dense matrix-matrix multiplication.

C       = alpha  *   A   *    B   + beta  *  C

(M x N) (M x K) (K x N)

for (int it_1 = 0; it_1 < K; it_1++) { for (int it_2 = 0; it_2 < N; it_2++) { for (int it_3 = 0; it_3 < M; it_3++) { C[it_1*LDC+it_3] = alpha * A[it_2*LDA+it_3] * B[it_1*LDB+it_2] + beta * C[it_1*LDC+it_3]; } } }

Definition at line 6 of file Gemms.py.

Constructor & Destructor Documentation

◆ __init__()

solvers.aderdg.kernels.Gemms.Gemms.__init__ ( self,
M,
N,
K,
LDA,
LDB,
LDC,
alpha,
beta,
alignment_A,
alignment_C,
name,
prefetchStrategy,
operationType = "gemm",
precision = ["DP"] )

Definition at line 68 of file Gemms.py.

References alignment_A, alignment_C, alpha, baseroutinename, beta, K, LDA, LDB, LDC, exahype2::ccz4::ahf::KerrKerrSchild.M, exahype2::ccz4::ahf::SchwarzschildIsotropic.M, exahype2::ccz4::ahf::SchwarzschildKerrSchild.M, M, N, convert::data::Variable.name, exagrype.api.euler.CCZ4WithEuler_OuterAdditiveCoupling.CCZ4WithEuler_OuterAdditiveCoupling.name, exagrype.api.euler.CCZ4WithEuler_OuterMultiplicativeCoupling.CCZ4WithEuler_OuterMultiplicativeCoupling.name, exagrype.api.FOSOSolver.FOSOSolver.name, exagrype.api.scalarfield.CCZ4WithScalarField_InnerCoupling.CCZ4WithScalarField_InnerCoupling.name, exagrype.api.scalarfield.CCZ4WithScalarField_OuterMultiplicativeCoupling.CCZ4WithScalarField_OuterMultiplicativeCoupling.name, exahype2.api.dslhype2.AbstractSyntaxTree.Argument.name, exahype2.api.dslhype2.AbstractSyntaxTree.Function.name, exahype2.api.dslhype2.AbstractSyntaxTree.FunctionCall.name, exahype2.api.dslhype2.Expressions.Variable.name, exahype2.api.dslhype2.Types.TFunction.name, exahype2.api.dslhype2.Types.TStruct.name, exahype2.api.PDETerm.PDETerm.name, exahype2.api.Solver.Solver.Plotter.name, exaparty.api.particle.AlgorithmStep.AlgorithmStep.name, peano4.api.datamodel.DoF.DoF.name, peano4.api.solversteps.Step.Step.name, peano4.api.solversteps.UserActionSet.UserActionSet.name, peano4.api.taskgraph.compiler.fuse-steps-illustrations._IllustrationActionSet.name, peano4.api.taskgraph.compiler.fuse-steps-illustrations._IllustrationSubmodel.name, peano4.api.taskgraph.Task.Task.name, peano4.api.toolbox.particles.Particle.Particle.name, name, precision, PrecisionTranslate, and prefetchStrategy.

Member Function Documentation

◆ __repr__()

solvers.aderdg.kernels.Gemms.Gemms.__repr__ ( self)

Field Documentation

◆ alignment_A

solvers.aderdg.kernels.Gemms.Gemms.alignment_A = 0
static

Definition at line 58 of file Gemms.py.

Referenced by __init__(), and __repr__().

◆ alignment_C

solvers.aderdg.kernels.Gemms.Gemms.alignment_C = 0
static

Definition at line 59 of file Gemms.py.

Referenced by __init__(), and __repr__().

◆ alpha

solvers.aderdg.kernels.Gemms.Gemms.alpha = 1
static

Definition at line 52 of file Gemms.py.

Referenced by __init__(), and __repr__().

◆ baseroutinename

solvers.aderdg.kernels.Gemms.Gemms.baseroutinename = ""
static

Definition at line 37 of file Gemms.py.

Referenced by __init__(), and __repr__().

◆ beta

solvers.aderdg.kernels.Gemms.Gemms.beta = 1
static

Definition at line 54 of file Gemms.py.

Referenced by __init__(), and __repr__().

◆ K

int solvers.aderdg.kernels.Gemms.Gemms.K = -1
static

Definition at line 44 of file Gemms.py.

Referenced by __init__().

◆ LDA

solvers.aderdg.kernels.Gemms.Gemms.LDA = -1
static

Definition at line 47 of file Gemms.py.

Referenced by __init__(), and __repr__().

◆ LDB

solvers.aderdg.kernels.Gemms.Gemms.LDB = -1
static

Definition at line 48 of file Gemms.py.

Referenced by __init__(), and __repr__().

◆ LDC

solvers.aderdg.kernels.Gemms.Gemms.LDC = -1
static

Definition at line 49 of file Gemms.py.

Referenced by __init__(), and __repr__().

◆ M

int solvers.aderdg.kernels.Gemms.Gemms.M = -1
static

Definition at line 42 of file Gemms.py.

Referenced by __init__().

◆ N

int solvers.aderdg.kernels.Gemms.Gemms.N = -1
static

Definition at line 43 of file Gemms.py.

Referenced by __init__().

◆ name

◆ operationType

str solvers.aderdg.kernels.Gemms.Gemms.operationType = ""
static

Definition at line 35 of file Gemms.py.

◆ precision

str solvers.aderdg.kernels.Gemms.Gemms.precision = "DP"
static

Definition at line 65 of file Gemms.py.

Referenced by __init__().

◆ PrecisionTranslate

dict solvers.aderdg.kernels.Gemms.Gemms.PrecisionTranslate
static
Initial value:
= {
"DP": "DP",
"double": "DP",
"SP": "SP",
"float": "SP",
"single": "SP",
"_Float16": "HP",
"std::float16_t": "HP",
"__bf16": "HP",
"std::bfloat16_t": "HP",
"half_float::half": "HP",
}

Definition at line 21 of file Gemms.py.

Referenced by __init__().

◆ prefetchStrategy

str solvers.aderdg.kernels.Gemms.Gemms.prefetchStrategy = ""
static

Definition at line 62 of file Gemms.py.

Referenced by __init__().


The documentation for this class was generated from the following file:
  • python/exahype2/solvers/aderdg/kernels/Gemms.py