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

[!318] prints warning if likwid is used with instrumentation level 3

Merge branch 'feature/print-likwid-warning' into 'master'

ref:extensions/dune-codegen I've already mentioned this problem in \[!314\]
but I think more visibility for this problem is useful

See merge request [extensions/dune-codegen!318]

  [extensions/dune-codegen!318]: gitlab.dune-project.org/extensions/dune-codegen/merge_requests/318
parents fc7a2c0b c9af5e99
No related branches found
No related tags found
No related merge requests found
......@@ -133,6 +133,9 @@ def setup_timer():
include_file("likwid.h", filetag="driver")
init_likwid()
if get_option('instrumentation_level') >= 3:
import logging
logger = logging.getLogger(__name__)
logger.warning("timings: using instrumentation level >= 3 with likwid will slow down your code considerably")
local_operator_likwid()
finalize_likwid()
else:
......
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