From 180548a68ee6849b338781172e3b1221d86a1e3b Mon Sep 17 00:00:00 2001 From: ethanglaser Date: Mon, 30 Nov 2026 12:44:59 -0800 Subject: [PATCH] Default GPU queue to auto to use data queue --- sklbench/utils/special_params.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sklbench/utils/special_params.py b/sklbench/utils/special_params.py index 80812012..c3af67da 100644 --- a/sklbench/utils/special_params.py +++ b/sklbench/utils/special_params.py @@ -175,6 +175,14 @@ def assign_case_special_values_on_run( "Skipping setting of 'target_offload' for CPU device " "to avoid extra overheads" ) + elif hasattr(data[0], "__sycl_usm_array_interface__"): + # Use the data's queue so fitted attributes share it with later inputs + logger.debug( + "Setting 'target_offload' to 'auto' for data already on a SYCL device" + ) + set_bench_case_value( + bench_case, "algorithm:sklearnex_context:target_offload", "auto" + ) else: set_bench_case_value( bench_case, "algorithm:sklearnex_context:target_offload", device