Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions sklbench/utils/special_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__"):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Torch inputs don't have this. Does the benchmark support torch? If so, it'd have to extract the queue in some other way.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently sklbench does not support torch

# 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
Expand Down
Loading