diff --git a/python/dune/codegen/sumfact/autotune.py b/python/dune/codegen/sumfact/autotune.py index 5cc2178ce0adc8083ceeda7224b4180e2e4186ba..e73fd81a038b8e3ab79a48821fce7e3b4355c0ef 100644 --- a/python/dune/codegen/sumfact/autotune.py +++ b/python/dune/codegen/sumfact/autotune.py @@ -5,6 +5,7 @@ import re import subprocess import filelock import hashlib +import logging import json from operator import mul from six.moves import reduce @@ -435,6 +436,8 @@ def autotune_realization(sf=None, kernel=None, signature=None, transformations=N assert kernel is None assert signature is None + logger = logging.getLogger(__name__) + # Make sure that the benchmark directory exists dir = os.path.join(get_option("project_basedir"), "autotune-benchmarks") if not os.path.exists(dir): @@ -454,14 +457,14 @@ def autotune_realization(sf=None, kernel=None, signature=None, transformations=N lock = os.path.join(dir, "{}.lock".format(basename)) executable = os.path.join(dir, basename) - print("palpo filename: {}".format(filename)) - # Generate and compile a benchmark program # # Note: cache restoring is only necessary when generating from SumfactKernel with cache_restoring(): with filelock.FileLock(lock): if not os.path.isfile(logname): + logger.debug('Generate autotune target in file {}'.format(filename)) + if sf is None: generate_standalone_kernel_code(kernel, signature, filename, transformations) elif get_option("autotune_google_benchmark"):