Repository navigation
Enable tests with OpenCL GPU device - #2149
Draft
antonwolfy wants to merge 3 commits into
Draft
antonwolfy wants to merge 3 commits into
antonwolfy wants to merge 3 commits into
Conversation
Contributor
|
View rendered docs @ https://intelpython.github.io/dpnp/pull/2149/index.html |
antonwolfy
force-pushed
the
remove-wa-and-enable-opencl-gpu-tests
branch
from
December 13, 2024 14:11
b26c4d4 to
26c1243
Compare
antonwolfy
force-pushed
the
remove-wa-and-enable-opencl-gpu-tests
branch
from
December 13, 2024 14:12
26c1243 to
45db894
Compare
Collaborator
3 of 6 tasks
Contributor
|
Array API standard conformance tests for dpnp=0.18.0dev0=py312he4f9c94_59 ran successfully. |
Contributor
|
View rendered docs @ https://intelpython.github.io/dpnp/pull/2149/index.html |
4 of 7 tasks
antonwolfy
added a commit
that referenced
this pull request
Nov 28, 2026
…cks (#3189) Supersedes #2149. This PR revisits the scope of `dpnp/tests/test_sycl_queue.py`: - **OpenCL GPU devices stay excluded**, now by policy: Level Zero is the GPU backend users target, and running on OpenCL GPU is a rare case. The CMPLRLLVM-55640 workaround comment is gone, and the backend check is `== "opencl"` instead of the substring test `in "opencl"`. - **Inputs are built on a queue of their own per device** (`valid_queues`) instead of the device's cached queue, which `device=SyclDevice` and the default device both resolve to. `assert_sycl_queue_equal` also checks queue identity through `get_execution_queue`, so a result moved to the default queue now fails even when only one device is available. With only the CPU visible, a mutant that moves unary function results to the default device passed all of `test_1in_1out` before and fails 53 of its cases now. `test_array_copy` and the `from_dlpack` tests stay on devices: `device=` selects the cached queue by design, and DLPack carries only the device. - **Placement checks are stricter**: the tests that also run with `device=None`, `test_random`, `test_random_state` and `TestToDevice::test_basic` now check the result's queue, not only its device. - **Cross-device tests check values**: the input is a strided view with an offset, and the result is compared with the source array or with the result computed on the source device. A cross-context copy is staged through the host, and nothing checked its values before: a mutant that skips or shifts that copy in `asarray` passed and now fails 23 or 28 cases. - `test_interp` also covers one-sided `left`/`right`. Local results, same counts as master: | Devices | Passed | Skipped | | --- | --- | --- | | One (OpenCL CPU) | 770 | 17 | | Two (L0 GPU + OpenCL CPU) | 1551 | 34 |
github-actions Bot
added a commit
that referenced
this pull request
Nov 28, 2026
…cks (#3189) Supersedes #2149. This PR revisits the scope of `dpnp/tests/test_sycl_queue.py`: - **OpenCL GPU devices stay excluded**, now by policy: Level Zero is the GPU backend users target, and running on OpenCL GPU is a rare case. The CMPLRLLVM-55640 workaround comment is gone, and the backend check is `== "opencl"` instead of the substring test `in "opencl"`. - **Inputs are built on a queue of their own per device** (`valid_queues`) instead of the device's cached queue, which `device=SyclDevice` and the default device both resolve to. `assert_sycl_queue_equal` also checks queue identity through `get_execution_queue`, so a result moved to the default queue now fails even when only one device is available. With only the CPU visible, a mutant that moves unary function results to the default device passed all of `test_1in_1out` before and fails 53 of its cases now. `test_array_copy` and the `from_dlpack` tests stay on devices: `device=` selects the cached queue by design, and DLPack carries only the device. - **Placement checks are stricter**: the tests that also run with `device=None`, `test_random`, `test_random_state` and `TestToDevice::test_basic` now check the result's queue, not only its device. - **Cross-device tests check values**: the input is a strided view with an offset, and the result is compared with the source array or with the result computed on the source device. A cross-context copy is staged through the host, and nothing checked its values before: a mutant that skips or shifts that copy in `asarray` passed and now fails 23 or 28 cases. - `test_interp` also covers one-sided `left`/`right`. Local results, same counts as master: | Devices | Passed | Skipped | | --- | --- | --- | | One (OpenCL CPU) | 770 | 17 | | Two (L0 GPU + OpenCL CPU) | 1551 | 34 |
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TBD