From ddb3e0dc47e164bfb113a5565cac7687356c03d6 Mon Sep 17 00:00:00 2001 From: Michael Lange Date: Tue, 7 May 2024 15:12:05 +0000 Subject: [PATCH] Loki-transform: Keep DR_HOOK calls in driver by adding `kernel_only` --- scripts/loki_transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/loki_transform.py b/scripts/loki_transform.py index 7ac07721c..f9b09d660 100644 --- a/scripts/loki_transform.py +++ b/scripts/loki_transform.py @@ -207,7 +207,7 @@ def convert( remove_code_trafo = scheduler.config.transformations.get('RemoveCodeTransformation', None) if not remove_code_trafo: remove_code_trafo = RemoveCodeTransformation( - remove_marked_regions=True, remove_dead_code=False, + remove_marked_regions=True, remove_dead_code=False, kernel_only=True, call_names=('ABOR1', 'DR_HOOK'), intrinsic_names=('WRITE(NULOUT',) ) scheduler.process(transformation=remove_code_trafo)