Skip to content
Snippets Groups Projects
Commit c9af5e99 authored by Marcel Koch's avatar Marcel Koch
Browse files

prints warning if likwid is used with instrumentation level 3

I've already mentioned this problem in [!314] but I think more
visibility for this problem is useful
parent fc7a2c0b
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