From 60f6ff470373710d44fedfc42a0418e076d51c5e Mon Sep 17 00:00:00 2001 From: Matt Wala Date: Tue, 13 Nov 2018 21:01:30 -0500 Subject: [PATCH] Fix location of argument processing code in scan.py --- pyopencl/scan.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyopencl/scan.py b/pyopencl/scan.py index 6291de9b..6218d571 100644 --- a/pyopencl/scan.py +++ b/pyopencl/scan.py @@ -1480,6 +1480,9 @@ class GenericScanKernel(_GenericScanKernelBase): # We're done here. (But pretend to return an event.) return cl.enqueue_marker(queue, wait_for=wait_for) + from pyopencl.tools import expand_runtime_arg_list + data_args = list(expand_runtime_arg_list(self.parsed_args, args)) + # }}} l1_info = self.first_level_scan_info @@ -1510,9 +1513,6 @@ class GenericScanKernel(_GenericScanKernelBase): # }}} - from pyopencl.tools import expand_runtime_arg_list - data_args = list(expand_runtime_arg_list(self.parsed_args, args)) - # {{{ first level scan of interval (one interval per block) scan1_args = data_args + [ -- GitLab