From 7e7f127fe5d0afbd90970049dd9009246d55c613 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Fri, 29 Nov 2019 18:06:07 +0100 Subject: [PATCH] Oops -fopenmp should go into hash --- src/pystencils_autodiff/tensorflow_jit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pystencils_autodiff/tensorflow_jit.py b/src/pystencils_autodiff/tensorflow_jit.py index 97f10e0..4bd7923 100644 --- a/src/pystencils_autodiff/tensorflow_jit.py +++ b/src/pystencils_autodiff/tensorflow_jit.py @@ -175,9 +175,9 @@ def compile_file(file, *additional_compile_flags, _output_flag] - destination_file = f'{file}_{_hash(".".join(command_prefix).encode()).hexdigest()}{_object_file_extension}' if openmp: command_prefix.append(_output_flag) + destination_file = f'{file}_{_hash(".".join(command_prefix).encode()).hexdigest()}{_object_file_extension}' if not exists(destination_file) or overwrite_destination_file: command = command_prefix + [destination_file] -- GitLab