From 299aaffac36b8984875a20301465ba3c69801766 Mon Sep 17 00:00:00 2001 From: xywei Date: Tue, 17 Mar 2026 11:06:37 -0500 Subject: [PATCH] fix: correct NVIDIA queue guard in run_opencl_fft --- sumpy/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sumpy/tools.py b/sumpy/tools.py index 952c594c..99f4545e 100644 --- a/sumpy/tools.py +++ b/sumpy/tools.py @@ -1032,7 +1032,7 @@ def run_opencl_fft( # Not passing wait_for will wait for all events queued before # and therefore correctness is preserved if it's the same queue for evt in wait_for: - if not evt.command_queue != queue: + if evt.command_queue != queue: raise RuntimeError( "Different queues not supported with NVIDIA CUDA") start_evt = cl.enqueue_marker(queue)