Skip to content

Commit

Permalink
Merge pull request IntelPython#1378 from IntelPython/feature/comprehe…
Browse files Browse the repository at this point in the history
…nsive_indexing_function_tests

Extend indexing function tests to kernel simulator
  • Loading branch information
Diptorup Deb authored Mar 15, 2024
2 parents af24e66 + 632f4b8 commit 9fd6cdc
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 79 deletions.
7 changes: 7 additions & 0 deletions numba_dpex/tests/_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ def has_opencl_cpu():
return bool(dpctl.get_num_devices(backend="opencl", device_type="cpu"))


def has_cpu():
"""
Checks if dpctl is able to select any CPU device.
"""
return bool(dpctl.get_num_devices(device_type="cpu"))


def has_level_zero():
"""
Checks if dpctl is able to select a Level Zero GPU device.
Expand Down
Loading

0 comments on commit 9fd6cdc

Please sign in to comment.