Skip to content
Snippets Groups Projects
Commit f7779d45 authored by René Heß's avatar René Heß
Browse files

Make a test that only runs if benchmark was found

parent f0c6a313
No related branches found
No related tags found
No related merge requests found
......@@ -119,3 +119,13 @@ dune_add_formcompiler_system_test(UFLFILE poisson_dg_3d.ufl
BASENAME sumfact_poisson_dg_3d_diagonal
INIFILE diagonal.mini
)
#======================================
# Test autotuning with google-benchmark
#======================================
if(benchmark_FOUND)
dune_add_formcompiler_system_test(UFLFILE poisson_3d.ufl
BASENAME sumfact_poisson_3d_benchmark
INIFILE poisson_3d_benchmark.mini
)
endif()
......@@ -16,7 +16,6 @@ extension = vtu
[formcompiler]
compare_l2errorsquared = 1e-4, 1e-8 | expand deg
autotune_google_benchmark = 0, 1 | expand deg
[formcompiler.r]
numerical_jacobian = 1, 0 | expand num
......
__name = sumfact_poisson_3d_benchmark_{__exec_suffix}
__exec_suffix = {deg_suffix}_{diff_suffix}_{quadvec_suffix}_{gradvec_suffix}
deg_suffix = deg{formcompiler.ufl_variants.degree}
diff_suffix = symdiff
quadvec_suffix = quadvec
gradvec_suffix = autotunevec
cells = 8 8 8
extension = 1. 1. 1.
[wrapper.vtkcompare]
name = {__name}
reference = poisson_ref
extension = vtu
[formcompiler]
compare_l2errorsquared = 1e-4
autotune_google_benchmark = 1
[formcompiler.r]
numerical_jacobian = 0
sumfact = 1
vectorization_quadloop = 1
vectorization_strategy = autotune
geometry_mixins = sumfact_equidistant
[formcompiler.ufl_variants]
degree = 1
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment