Skip to content

[SYCL] Fix PersistentDeviceCodeCache unittests #6266

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

Merged

Conversation

steffenlarsen
Copy link
Contributor

#6256 changed the binary format used by the PersistentDeviceCodeCache tests to be a parameter, however the tests would be setting the format after the image had been initialized, which causes the image to think it is still the old format after changing the binary format of the PI image to the format read from the GTest parameter. With these changes the format will be set immediately from the parameter rather than deferring it to during setup. Additionally it fixes the SetUp and TearDown overrides.

intel#6256 changed the binary format used
by the PersistentDeviceCodeCache tests to be a parameter, however the
tests would be setting the format after the image had been initialized,
which causes the image to think it is still the old format after
changing the binary format of the PI image to the format read from the
GTest parameter. With these changes the format will be set immediately
from the parameter rather than deferring it to during setup.
Additionally it fixes the SetUp and TearDown overrides.

Signed-off-by: Larsen, Steffen <[email protected]>
@steffenlarsen steffenlarsen requested a review from a team as a code owner June 7, 2022 22:49
@pvchupin pvchupin merged commit d78e055 into intel:sycl Jun 7, 2022
@steffenlarsen steffenlarsen deleted the steffen/fix_persistent_cache_test branch December 6, 2023 11:38
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