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

[SYCL] Updated tests to comply with SYCL 2020 aspect list #1685

Merged

Conversation

andylshort
Copy link

This patch updates the E2E tests to account for the changes made to aspects in Section 4.6.4.3 of the specification:

  • The concept of a "host" device no longer exists in SYCL 2020 - any host should now be a cpu, so the aspect has been deprecated accordingly.
  • usm_restricted_shared_allocations has been removed.
  • usm_system_allocator has been renamed usm_system_allocations.
  • int64_* aspects were replaced with atomic64, so no longer should be tested.

(May require intel/llvm#8751 but should pass without.)

Lamzed-Short, Andrew added 2 commits March 23, 2023 05:16
The host, int64*, usm_restricted_shared_allocations, and
usm_system_allocator aspects are either removed or deprecated in SYCL
2020.

The implementations will be removed at a later date but the tests can
be updated to reflect the changes.
Copy link

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

For most of these tests, it would be better to just remove the check for aspect::host. cpu is not the same as host, so it would be let through before but with these changes it would not.

Copy link

@steffenlarsen steffenlarsen left a comment

Choose a reason for hiding this comment

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

Awesome! Thanks!

@steffenlarsen
Copy link

Test changes are valid without new changes to intel/llvm. Merging these.

@steffenlarsen steffenlarsen merged commit 2021475 into intel:intel Mar 27, 2023
aelovikov-intel pushed a commit to aelovikov-intel/llvm that referenced this pull request Mar 27, 2023
…-test-suite#1685)

This patch updates the E2E tests to account for the changes made to aspects in [Section 4.6.4.3](https://registry.khronos.org/SYCL/specs/sycl-2020/html/sycl-2020.html#sec:device-aspects) of the specification:

- The concept of a "host" device no longer exists in SYCL 2020 - any `host` should now be a `cpu`, so the aspect has been deprecated accordingly.
- `usm_restricted_shared_allocations` has been removed.
- `usm_system_allocator` has been renamed `usm_system_allocations`.
- `int64_*` aspects were replaced with `atomic64`, so no longer should be tested.
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.

2 participants