Peano
Loading...
Searching...
No Matches
exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence Class Reference

Adapter that speaks the construct_output(output, main_name) protocol peano4.api.Project.generate() expects from its main attribute (see peano4.api.runner.DefaultSequence, whose job this class takes over for an ExaHyPE 2 project), but fills the header/implementation pair with ExaHyPE-flavoured content instead of the mesh-agnostic default. More...

Public Member Functions

 __init__ (self, project, exahype_project, function_calls, additional_includes)
 construct_output (self, output, main_name)

Data Fields

 project = project
 exahype_project = exahype_project
 function_calls = function_calls
 additional_includes = additional_includes

Static Public Attributes

str HEADER_TEMPLATE
str CPP_TEMPLATE

Detailed Description

Adapter that speaks the construct_output(output, main_name) protocol peano4.api.Project.generate() expects from its main attribute (see peano4.api.runner.DefaultSequence, whose job this class takes over for an ExaHyPE 2 project), but fills the header/implementation pair with ExaHyPE-flavoured content instead of the mesh-agnostic default.

project is the peano4-level project (peano4.api.Project) this sequence is attached to as .main - it is where SUBDIRECTORIES/SUBNAMESPACE/ rootnamespace come from, mirroring peano4.api.runner.DefaultSequence.

exahype_project is the exahype2.api.Project this main file is generated for - it is where the runtime settings (TIMEOUT, NUMBER_OF_THREADS, GPUS, MULTICORE_ORCHESTRATION) come from, as those live on the ExaHyPE 2 project rather than on the plain peano4 one.

Definition at line 30 of file KernelMicrobenchmarkMain.py.

Constructor & Destructor Documentation

◆ __init__()

exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.__init__ ( self,
project,
exahype_project,
function_calls,
additional_includes )

Definition at line 551 of file KernelMicrobenchmarkMain.py.

Member Function Documentation

◆ construct_output()

Field Documentation

◆ additional_includes

exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.additional_includes = additional_includes

Definition at line 555 of file KernelMicrobenchmarkMain.py.

Referenced by construct_output(), api.ApplyPointWiselyToPatch.ApplyPointWiselyToPatch.get_includes(), api.DynamicAMR.DynamicAMR.get_includes(), api.InterpolateAndRestrictCells.InterpolateAndRestrictCells.get_includes(), api.InterpolateHangingFaces.InterpolateHangingFaces.get_includes(), api.PlotPatchesInPeanoBlockFormat.PlotPatchesInPeanoBlockFormat.get_includes(), api.PlotPatchesOverFacesInPeanoBlockFormat.PlotPatchesOverFacesInPeanoBlockFormat.get_includes(), api.ProjectPatchOntoFaces.ProjectPatchOntoFaces.get_includes(), api.ProjectPatchWithHaloOntoFaces.ProjectPatchWithHaloOntoFaces.get_includes(), api.ReconstructPatchWithHalo.ReconstructPatchWithHalo.get_includes(), api.RestrictHangingFaces.RestrictHangingFaces.get_includes(), exahype2.api.rkfd4.actionsets.RollOverUpdatedFace.RollOverUpdatedFace.get_includes(), peano4.api.toolbox.multigrid.cellbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_includes(), peano4.api.toolbox.multigrid.MatrixFreeJacobi.MatrixFreeJacobi.get_includes(), peano4.api.toolbox.multigrid.vertexbased.ScalarJacobiWithRediscretisation.ScalarJacobiWithRediscretisation.get_includes(), peano4.api.toolbox.particles.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.InsertParticlesAlongCartesianLayoutIntoUnrefinedCells.get_includes(), peano4.api.toolbox.particles.InsertParticlesByCoordinates.InsertParticlesByCoordinates.get_includes(), peano4.api.toolbox.particles.InsertRandomParticlesIntoUnrefinedCells.InsertRandomParticlesIntoUnrefinedCells.get_includes(), peano4.api.toolbox.particles.PlotParticlesInVTKFormat.PlotParticlesInVTKFormat.get_includes(), peano4.api.toolbox.PlotCellDataInPeanoBlockFormat.PlotCellDataInPeanoBlockFormat.get_includes(), peano4.api.toolbox.PlotGridInPeanoBlockFormat.PlotGridInPeanoBlockFormat.get_includes(), and peano4.api.toolbox.PlotVertexDataInPeanoBlockFormat.PlotVertexDataInPeanoBlockFormat.get_includes().

◆ CPP_TEMPLATE

str exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.CPP_TEMPLATE
static

Definition at line 58 of file KernelMicrobenchmarkMain.py.

Referenced by construct_output().

◆ exahype_project

exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.exahype_project = exahype_project

Definition at line 553 of file KernelMicrobenchmarkMain.py.

Referenced by construct_output().

◆ function_calls

exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.function_calls = function_calls

Definition at line 554 of file KernelMicrobenchmarkMain.py.

Referenced by construct_output().

◆ HEADER_TEMPLATE

str exahype2.api.generators.KernelMicrobenchmarkMain._ExaHyPEKernelBenchmarkMainFileSequence.HEADER_TEMPLATE
static
Initial value:
= """
// This file is part of the ExaHyPE2 project. For conditions of distribution and
// use, please see the copyright notice at www.peano-framework.org
#pragma once
int main(int argc, char** argv);
"""

Definition at line 50 of file KernelMicrobenchmarkMain.py.

Referenced by construct_output().

◆ project


The documentation for this class was generated from the following file: