From a9ddc5b62d38875e6e17152fc25d33989dadc23c Mon Sep 17 00:00:00 2001
From: Julian Hammer <julian.hammer@fau.de>
Date: Mon, 1 Apr 2019 17:25:00 +0200
Subject: [PATCH] nicer interface with (optional) preservation of temp files

---
 pystencils/kerncraft_coupling/kerncraft_interface.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/pystencils/kerncraft_coupling/kerncraft_interface.py b/pystencils/kerncraft_coupling/kerncraft_interface.py
index bf143f196..5d2fb8eb2 100644
--- a/pystencils/kerncraft_coupling/kerncraft_interface.py
+++ b/pystencils/kerncraft_coupling/kerncraft_interface.py
@@ -23,8 +23,8 @@ class PyStencilsKerncraftKernel(kerncraft.kernel.KernelCode):
     """
     LIKWID_BASE = '/usr/local/likwid'
 
-    def __init__(self, ast: KernelFunction, machine: Optional[MachineModel] = None, assumed_layout='SoA',
-                 debug_print=False):
+    def __init__(self, ast: KernelFunction, machine: Optional[MachineModel] = None,
+                 assumed_layout='SoA', debug_print=False, filename=None):
         """Create a kerncraft kernel using a pystencils AST
 
         Args:
@@ -38,7 +38,7 @@ class PyStencilsKerncraftKernel(kerncraft.kernel.KernelCode):
 
         # Initialize state
         self.asm_block = None
-        self._filename = None
+        self._filename = filename
 
         self.kernel_ast = ast
         self.temporary_dir = TemporaryDirectory()
-- 
GitLab