Skip to content
Snippets Groups Projects
Commit 6e415fb0 authored by David Hammer's avatar David Hammer
Browse files

Renaming kernel files

parent 8c4d95df
No related branches found
No related tags found
2 merge requests!12Snapshot: field test deployed version as of end of run 202201,!3Base correction device, CalCat interaction, DSSC and AGIPD devices
......@@ -25,7 +25,7 @@ class AgipdGainMode(enum.IntEnum):
class AgipdGpuRunner(base_gpu.BaseGpuRunner):
_kernel_source_filename = "agipd_gpu_kernels.cpp"
_kernel_source_filename = "agipd_gpu.cu"
_corrected_axis_order = "cxy"
def __init__(
......
......@@ -44,7 +44,7 @@ class BaseGpuRunner:
):
_src_dir = pathlib.Path(__file__).absolute().parent
# subclass must define _kernel_source_filename
with (_src_dir / self._kernel_source_filename).open("r") as fd:
with (_src_dir / "kernels" / self._kernel_source_filename).open("r") as fd:
self._kernel_template = jinja2.Template(fd.read())
self.pixels_x = pixels_x
......
......@@ -12,7 +12,7 @@ class CorrectionFlags(enum.IntFlag):
class DsscGpuRunner(base_gpu.BaseGpuRunner):
_kernel_source_filename = "dssc_gpu_kernels.cpp"
_kernel_source_filename = "dssc_gpu.cu"
_corrected_axis_order = "cyx"
def __init__(
......
File moved
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment