Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

[SYCL] Change device preference to acknowledge ESIMD_EMULATOR #1290

Closed
wants to merge 11 commits into from

Conversation

lbushi25
Copy link

@lbushi25 lbushi25 commented Sep 27, 2022

This change affects file device_num.cpp in SYCL/Regression. The test has been modified to reflect the presence of ESIMD_EMULATOR when calculating device preferences for the selectors. In particular, it has been changed to prefer the ESIMD device if and only if there are no other suitable devices because running SYCL kernels on ESIMD devices will crash the program. Also, the esimd emulator class in file SYCL/ESIMD/esimd_test_utils.hpp has been changed to actually prefer the ESIMD device. Previously it was just selecting a normal gpu device.

@lbushi25 lbushi25 changed the title [SYCL] Fix device preference to acknowledge ESIMD_EMULATOR [SYCL] Change device preference to acknowledge ESIMD_EMULATOR Sep 27, 2022
@lbushi25 lbushi25 marked this pull request as ready for review September 27, 2022 20:59
@lbushi25 lbushi25 requested review from a team as code owners September 27, 2022 20:59
Copy link

@bso-intel bso-intel left a comment

Choose a reason for hiding this comment

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

LGTM

@lbushi25 lbushi25 requested a review from kbobrovs September 29, 2022 21:00
@lbushi25 lbushi25 closed this Oct 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants