Skip to content

Commit

Permalink
Added real world regression for HyTeg
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukas Abelt committed Feb 21, 2024
1 parent 38df472 commit fbefcb9
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 0 deletions.
13 changes: 13 additions & 0 deletions HyTeg/bad-commit.info
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
description: A regression to the HyTeG project that could be introduced due to a "bad" commit by an inexperienced developer.
include_revisions:
revision_range:
start: f4711dadc3f61386e6ccdc704baa783253332db2
path: bad-commit.patch
project_name: HyTeg
shortname: bad-commit
tags:
- HyTeg
- compile-time
- regression
- perf_prec
- real_world
92 changes: 92 additions & 0 deletions HyTeg/bad-commit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
diff --git a/src/hyteg/p1functionspace/P1Operator.hpp b/src/hyteg/p1functionspace/P1Operator.hpp
index 2e110ff2c..8b1e61cf3 100644
--- a/src/hyteg/p1functionspace/P1Operator.hpp
+++ b/src/hyteg/p1functionspace/P1Operator.hpp
@@ -266,25 +266,11 @@ class P1Operator : public Operator< P1Function< ValueType >, P1Function< ValueTy
{
if ( storage_->hasGlobalCells() )
{
- if ( hyteg::globalDefines::useGeneratedKernels )
- {
- apply_face3D_generated( face, src.getFaceDataID(), dst.getFaceDataID(), level, updateType );
- }
- else
- {
- apply_face3D( face, src.getFaceDataID(), dst.getFaceDataID(), level, updateType );
- }
+ apply_face3D( face, src.getFaceDataID(), dst.getFaceDataID(), level, updateType );
}
else
{
- if constexpr ( hyteg::globalDefines::useGeneratedKernels )
- {
- apply_face_generated( face, src.getFaceDataID(), dst.getFaceDataID(), level, updateType );
- }
- else
- {
- apply_face( face, src.getFaceDataID(), dst.getFaceDataID(), level, updateType );
- }
+ apply_face( face, src.getFaceDataID(), dst.getFaceDataID(), level, updateType );
}
}
}
@@ -306,14 +292,7 @@ class P1Operator : public Operator< P1Function< ValueType >, P1Function< ValueTy

if ( testFlag( cellBC, flag ) )
{
- if constexpr ( hyteg::globalDefines::useGeneratedKernels )
- {
- apply_cell_generated( cell, src.getCellDataID(), dst.getCellDataID(), level, updateType );
- }
- else
- {
- apply_cell( cell, src.getCellDataID(), dst.getCellDataID(), level, updateType );
- }
+ apply_cell( cell, src.getCellDataID(), dst.getCellDataID(), level, updateType );
}
}
}
@@ -984,25 +963,11 @@ class P1Operator : public Operator< P1Function< ValueType >, P1Function< ValueTy
{
if ( storage_->hasGlobalCells() )
{
- if ( globalDefines::useGeneratedKernels )
- {
- smooth_sor_face3D_generated( face, dst.getFaceDataID(), rhs.getFaceDataID(), level, relax, backwards );
- }
- else
- {
- smooth_sor_face3D( face, dst.getFaceDataID(), rhs.getFaceDataID(), level, relax, backwards );
- }
+ smooth_sor_face3D( face, dst.getFaceDataID(), rhs.getFaceDataID(), level, relax, backwards );
}
else
{
- if ( globalDefines::useGeneratedKernels )
- {
- smooth_sor_face_generated( face, dst.getFaceDataID(), rhs.getFaceDataID(), level, relax, backwards );
- }
- else
- {
- smooth_sor_face( face, dst.getFaceDataID(), rhs.getFaceDataID(), level, relax, backwards );
- }
+ smooth_sor_face( face, dst.getFaceDataID(), rhs.getFaceDataID(), level, relax, backwards );
}
}
}
@@ -1027,14 +992,7 @@ class P1Operator : public Operator< P1Function< ValueType >, P1Function< ValueTy

if ( testFlag( cellBC, flag ) )
{
- if ( globalDefines::useGeneratedKernels )
- {
- smooth_sor_cell_generated( cell, dst.getCellDataID(), rhs.getCellDataID(), level, relax, backwards );
- }
- else
- {
- smooth_sor_cell( cell, dst.getCellDataID(), rhs.getCellDataID(), level, relax, backwards );
- }
+ smooth_sor_cell( cell, dst.getCellDataID(), rhs.getCellDataID(), level, relax, backwards );
}
}

0 comments on commit fbefcb9

Please sign in to comment.