Skip to content

Commit bdc718c

Browse files
authored
Default GPU queue to auto to use data queue (#232)
1 parent ce6d31a commit bdc718c

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎sklbench/utils/special_params.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@ def assign_case_special_values_on_run(
175175
"Skipping setting of 'target_offload' for CPU device "
176176
"to avoid extra overheads"
177177
)
178+
elif hasattr(data[0], "__sycl_usm_array_interface__"):
179+
# Use the data's queue so fitted attributes share it with later inputs
180+
logger.debug(
181+
"Setting 'target_offload' to 'auto' for data already on a SYCL device"
182+
)
183+
set_bench_case_value(
184+
bench_case, "algorithm:sklearnex_context:target_offload", "auto"
185+
)
178186
else:
179187
set_bench_case_value(
180188
bench_case, "algorithm:sklearnex_context:target_offload", device

0 commit comments

Comments
 (0)