-
Notifications
You must be signed in to change notification settings - Fork 30
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
Add test file for top_k functionality #1938
Conversation
View rendered docs @ https://intelpython.github.io/dpctl/pulls/1938/index.html |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_332 ran successfully. |
One test failed on CPU:
|
Interestingly, there is no issue when the test is run on Xeon:
|
And no issue when run on another (different) AMD CPU: $ python -m dpctl -f
Platform 0 ::
Name Intel(R) OpenCL
Version OpenCL 3.0 LINUX
Vendor Intel(R) Corporation
Backend opencl
Num Devices 1
# 0
Name AMD EPYC 7R13 Processor
Version 2024.18.12.0.05_160000
Filter string opencl:cpu:0
$ SYCL_CACHE_PERSISTENT=1 ONEAPI_DEVICE_SELECTOR=opencl:cpu python -m pytest dpctl/tests/test_usm_ndarray_top_k.py
================================================= test session starts ==================================================
platform linux -- Python 3.9.21, pytest-8.3.4, pluggy-1.5.0
rootdir: /home/ubuntu/repos/dpctl
configfile: pyproject.toml
collected 143 items
dpctl/tests/test_usm_ndarray_top_k.py .......................................................................... [ 51%]
..................................................................... [100%]
================================================= 143 passed in 1.14s ================================================== |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_333 ran successfully. |
Array API standard conformance tests for dpctl=0.19.0dev0=py310h93fe807_334 ran successfully. |
This PR adds a test file with few basic tests for
top_k
. To be extended.