File tree Expand file tree Collapse file tree 2 files changed +0
-29
lines changed
Expand file tree Collapse file tree 2 files changed +0
-29
lines changed Original file line number Diff line number Diff line change 2222 has_cpu ,
2323 has_gpu ,
2424 has_sycl_platforms ,
25- skip_if_dtype_not_supported ,
2625)
2726
2827__all__ = [
3130 "has_gpu" ,
3231 "has_sycl_platforms" ,
3332 "get_queue_or_skip" ,
34- "skip_if_dtype_not_supported" ,
3533]
Original file line number Diff line number Diff 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- )
You can’t perform that action at this time.
0 commit comments