Skip to content
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

[SYCL] Improve ODS negative filter implementation #7453

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

lbushi25
Copy link
Contributor

@lbushi25 lbushi25 commented Nov 18, 2022

The negative filter implementation for ONEAPI_DEVICE_SELECTOR uses a map to keep track of blacklisted devices. The keys used by this map were originally device addresses in a vector container which are not very robust because vectors can potentially move their data to other locations and the device addresses could change thus invalidating the blacklist map. Even though in the source code the resizing of the vector only happens after we are done with the blacklist, you never know what tricks the compiler might pull on us. We use device numbers instead which are unique for each device in a platform and do not change during the function execution.

@lbushi25 lbushi25 marked this pull request as ready for review November 18, 2022 20:01
@lbushi25 lbushi25 requested a review from a team as a code owner November 18, 2022 20:02
@lbushi25 lbushi25 changed the title [SYCL] Improve negative filter implementation [SYCL] Improve ODS negative filter implementation Nov 18, 2022
Copy link
Contributor

@cperkinsintel cperkinsintel left a comment

Choose a reason for hiding this comment

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

LGTM

@againull againull merged commit 6aefd63 into intel:sycl Nov 18, 2022
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