Dear CS10-Gitlab-users, on Thursday, Feb 3 there will be maintenance. That will lead to a downtime of the CS10-Gitlab-service including Subversion and Mattermost chat from 09:30. This might take the whole day since we don't know how long it is going to take. We are sorry for the inconvenience! Best regards, CS10-Admin-Team

Commit a9ddc5b6 authored by Julian Hammer's avatar Julian Hammer
Browse files

nicer interface with (optional) preservation of temp files

parent 2922cdba
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment