diff --git a/test/test_algorithm.py b/test/test_algorithm.py
index 676390bd751116c334aa3a9425b92f7a32500fe3..5076e2b1c6ad53ab5ab24319068aee0b640d0726 100644
--- a/test/test_algorithm.py
+++ b/test/test_algorithm.py
@@ -906,6 +906,10 @@ def test_bitonic_sort(ctx_factory, size, dtype):
             and dtype == np.float64):
         pytest.xfail("Double precision bitonic sort doesn't work on POCL")
 
+    if dtype == np.float64 and not has_double_support(dev):
+        from pytest import skip
+        skip("double precision not supported on %s" % dev)
+
     import pyopencl.clrandom as clrandom
     from pyopencl.bitonic_sort import BitonicSort
 
@@ -950,6 +954,10 @@ def test_bitonic_argsort(ctx_factory, size, dtype):
             and dtype == np.float64):
         pytest.xfail("Double precision bitonic sort doesn't work on POCL")
 
+    if dtype == np.float64 and not has_double_support(dev):
+        from pytest import skip
+        skip("double precision not supported on %s" % dev)
+
     import pyopencl.clrandom as clrandom
     from pyopencl.bitonic_sort import BitonicSort