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

If we have no SF kernels there is no cost

parent 24391f12
No related branches found
No related tags found
No related merge requests found
......@@ -165,6 +165,8 @@ def quadrature_penalized_strategy_cost(strat_tuple):
# Evaluate the original cost function. This result will be scaled by this function.
cost = strategy_cost(strat_tuple)
if cost is 0:
return 0
# Get the total number of Flops done in sum factorization kernels
sf_flops = accumulate_for_strategy(strategy, lambda sf: sf.operations)
......
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