Skip to content

Commit

Permalink
Extend indexing function tests to kernel simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
ZzEeKkAa committed Mar 15, 2024
1 parent af24e66 commit 632f4b8
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 632f4b8

Please sign in to comment.