Skip to content

Commit 9d59f0e

Browse files
committed
remove skip_if_dtype_not_supported test utility
1 parent 1d97b1f commit 9d59f0e

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

dpctl/tests/helper/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
has_cpu,
2323
has_gpu,
2424
has_sycl_platforms,
25-
skip_if_dtype_not_supported,
2625
)
2726

2827
__all__ = [
@@ -31,5 +30,4 @@
3130
"has_gpu",
3231
"has_sycl_platforms",
3332
"get_queue_or_skip",
34-
"skip_if_dtype_not_supported",
3533
]

dpctl/tests/helper/_helper.py

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -49,30 +49,3 @@ def get_queue_or_skip(args=tuple()):
4949
except dpctl.SyclQueueCreationError:
5050
pytest.skip(f"Queue could not be created from {args}")
5151
return q
52-
53-
54-
def skip_if_dtype_not_supported(dt, q_or_dev):
55-
import dpctl.tensor as dpt
56-
57-
dt = dpt.dtype(dt)
58-
if type(q_or_dev) is dpctl.SyclQueue:
59-
dev = q_or_dev.sycl_device
60-
elif type(q_or_dev) is dpctl.SyclDevice:
61-
dev = q_or_dev
62-
else:
63-
raise TypeError(
64-
"Expected dpctl.SyclQueue or dpctl.SyclDevice, "
65-
f"got {type(q_or_dev)}"
66-
)
67-
dev_has_dp = dev.has_aspect_fp64
68-
if dev_has_dp is False and dt in [dpt.float64, dpt.complex128]:
69-
pytest.skip(
70-
f"{dev.name} does not support double precision floating point types"
71-
)
72-
dev_has_hp = dev.has_aspect_fp16
73-
if dev_has_hp is False and dt in [
74-
dpt.float16,
75-
]:
76-
pytest.skip(
77-
f"{dev.name} does not support half precision floating point type"
78-
)

0 commit comments

Comments
 (0)