-
Notifications
You must be signed in to change notification settings - Fork 787
[SYCL] Remove outdated & invalid device score boost #5349
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
Conversation
Every device that satisfies filter options receives 1000 as starting score. Device that doesn't satisfy filter settings is filtered out on get_devices step.So no need to do extra boost for devices which DeviceNum is equal to the one specified in filter. Signed-off-by: Tikhomirova, Kseniya <[email protected]>
device::get_devices returns devices that satisfies SYCL_DEVICE_FILTER. extension filter_selector is also based on get_devices and just add extra level of device filtering. no way to get device that do not satisfy SYCL_DEVICE_FILTER in runtim so that operator() have to do filter check
LGTM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should there be any tests updated or added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Yes, we don't need this legacy filtering code since we already filter devices in platform_impl::filterDeviceFilter. Thanks.
working on test rework right now |
uploaded PR for test intel/llvm-test-suite#775 |
/verify with intel/llvm-test-suite#786 |
/verify with intel/llvm-test-suite#775 |
Hi @vladimirlaz, this PR passed checks with the corresponding change in test suite. Could you please review and merge if no concerns? Thank you. |
Will be merged later today. |
Every device that satisfies filter options receives 1000 as starting score.
Device that doesn't satisfy filter settings is filtered out on get_devices step. So no need to do extra boost for devices which DeviceNum is equal to the one specified in filter.