Skip to content

[SYCL] Make SYCL_BE force selection of specified BE if there are multiple choices #1522

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

againull
Copy link
Contributor

No description provided.

This commit enables including multiple devices of the same device_type
and changed the logic of device selection to just prefer a SYCL_BE
device if present. If someone uses SYCL_BE but appropriate device is
not present, we will simply use any other device.

Signed-off-by: Artur Gainullin <artur.gainullin@intel.com>
@againull
Copy link
Contributor Author

Please review only the second commit. This should be committed after #1490

…iple choices

Signed-off-by: Artur Gainullin <artur.gainullin@intel.com>
@againull againull force-pushed the force_be_selection branch from 74b8417 to d52dc7d Compare April 14, 2020 19:25
@@ -60,6 +60,51 @@ vector_class<device> device::get_devices(info::device_type deviceType) {
}
}
}

// If SYCL_BE is set and there are multiple devices of the same type
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm confused with meaning of SYCL_BE var. In another PR you are making so that SYCL_BE makes some preference towards specified BE in the selectors, but this patch removes all devices that do not match specified BE.
The documentation says that this var controls which BE will be used when a device is chosen using default selector only.
I think we should have consistent behavior and update documentation. Probably we need to introduce new env var if we need two different behaviors(force and preference).

@againull
Copy link
Contributor Author

This was resolved in scope of #1490

@againull againull closed this Apr 23, 2020
@againull againull deleted the force_be_selection branch December 3, 2022 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants