Skip to content
Snippets Groups Projects
Commit f3d19543 authored by Dominic Kempf's avatar Dominic Kempf
Browse files

Guard all usages of opcounting in CMake

parent e675137c
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}_level{for ...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}_level{for
opcount_suffix = opcount, nonopcount | expand opcount opcount_suffix = opcount, nonopcount | expand opcount
{opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude {opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude
dune-opcounter_FOUND, 1 | expand opcount | cmake_guard
# Calculate the size of the grid to equlibritate it to 100 MB/rank # Calculate the size of the grid to equlibritate it to 100 MB/rank
# Input parameters # Input parameters
......
...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}_level{for ...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}_level{for
opcount_suffix = opcount, nonopcount | expand opcount opcount_suffix = opcount, nonopcount | expand opcount
{opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude {opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude
dune-opcounter_FOUND, 1 | expand opcount | cmake_guard
# Calculate the size of the grid to equlibritate it to 100 MB/rank # Calculate the size of the grid to equlibritate it to 100 MB/rank
# Input parameters # Input parameters
......
...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}_level{for ...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}_level{for
opcount_suffix = opcount, nonopcount | expand opcount opcount_suffix = opcount, nonopcount | expand opcount
{opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude {opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude
dune-opcounter_FOUND, 1 | expand opcount | cmake_guard
# Calculate the size of the grid to equlibritate it to 100 MB/rank # Calculate the size of the grid to equlibritate it to 100 MB/rank
# Input parameters # Input parameters
......
...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}_level{for ...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.degree}_{opcount_suffix}_level{for
opcount_suffix = opcount, nonopcount | expand opcount opcount_suffix = opcount, nonopcount | expand opcount
{opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude {opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude
dune-opcounter_FOUND, 1 | expand opcount | cmake_guard
# Calculate the size of the grid to equlibritate it to 100 MB/rank # Calculate the size of the grid to equlibritate it to 100 MB/rank
# Input parameters # Input parameters
......
...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.v_degree}_{opcount_suffix}_level{f ...@@ -3,6 +3,7 @@ __exec_suffix = deg{formcompiler.ufl_variants.v_degree}_{opcount_suffix}_level{f
opcount_suffix = opcount, nonopcount | expand opcount opcount_suffix = opcount, nonopcount | expand opcount
{opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude {opcount_suffix} == opcount and {formcompiler.instrumentation_level} != 4 | exclude
dune-opcounter_FOUND, 1 | expand opcount | cmake_guard
# Calculate the size of the grid to equlibritate it to 100 MB/rank # Calculate the size of the grid to equlibritate it to 100 MB/rank
# Input parameters # Input parameters
......
...@@ -44,10 +44,12 @@ dune_add_formcompiler_system_test(UFLFILE poisson_dg.ufl ...@@ -44,10 +44,12 @@ dune_add_formcompiler_system_test(UFLFILE poisson_dg.ufl
) )
# 8. Poisson with operator counting # 8. Poisson with operator counting
dune_add_formcompiler_system_test(UFLFILE opcount_poisson_dg.ufl if(dune-opcounter_FOUND)
BASENAME opcount_poisson_dg_symdiff dune_add_formcompiler_system_test(UFLFILE opcount_poisson_dg.ufl
INIFILE opcount_poisson_dg_symdiff.mini BASENAME opcount_poisson_dg_symdiff
) INIFILE opcount_poisson_dg_symdiff.mini
)
endif()
# 9. Poisson Test Case: DG quadrilaterals # 9. Poisson Test Case: DG quadrilaterals
dune_add_formcompiler_system_test(UFLFILE poisson_dg_quadrilateral.ufl dune_add_formcompiler_system_test(UFLFILE poisson_dg_quadrilateral.ufl
......
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