Skip to content

Commit 4f19e68

Browse files
Do not submit kernels if HW does not support double precision
1 parent 66bf2d3 commit 4f19e68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dpctl/tests/test_sycl_kernel_submit.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ def test_create_program_from_source(ctype_str, dtype, ctypes_ctor):
4545
q = dpctl.SyclQueue("opencl", property="enable_profiling")
4646
except dpctl.SyclQueueCreationError:
4747
pytest.skip("OpenCL queue could not be created")
48+
if dtype == np.dtype("f8") and q.sycl_device.has_aspect_fp64 is False:
49+
pytest.skip(
50+
"Device does not support double precision floating point type"
51+
)
4852
# OpenCL conventions for indexing global_id is opposite to
4953
# that of SYCL (and DPCTL)
5054
oclSrc = (

0 commit comments

Comments
 (0)