From accb0442e692b68a3001bf3397020d43225a9bb2 Mon Sep 17 00:00:00 2001
From: Stephan Seitz <stephan.seitz@fau.de>
Date: Thu, 12 Sep 2019 20:42:45 +0200
Subject: [PATCH] Avoid writing to config file tensorflow_jit

---
 src/pystencils_autodiff/tensorflow_jit.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/pystencils_autodiff/tensorflow_jit.py b/src/pystencils_autodiff/tensorflow_jit.py
index 05a1269..6cd9596 100644
--- a/src/pystencils_autodiff/tensorflow_jit.py
+++ b/src/pystencils_autodiff/tensorflow_jit.py
@@ -8,7 +8,6 @@
 
 """
 import hashlib
-import json
 import subprocess
 import sysconfig
 from os.path import exists, join
@@ -106,7 +105,6 @@ if pystencils.gpucuda.cudajit.USE_FAST_MATH:
 def compile_file(file, use_nvcc=False, nvcc='nvcc', overwrite_destination_file=True, additional_compile_flags=[]):
     if 'tensorflow_host_compiler' not in get_compiler_config():
         get_compiler_config()['tensorflow_host_compiler'] = get_compiler_config()['command']
-        write_file(pystencils.cpu.cpujit.get_configuration_file_path(), json.dumps(pystencils.cpu.cpujit._config))
 
     destination_file = file + '.o'
     if use_nvcc:
-- 
GitLab