Skip to content
Snippets Groups Projects
Commit e9605ab2 authored by Stephan Seitz's avatar Stephan Seitz
Browse files

Skip OpenCL tests that require pycuda if pycuda is not installed

parent 12459396
Branches run-opencl-without-pycuda
Tags
No related merge requests found
Pipeline #19000 passed
...@@ -40,6 +40,8 @@ def test_print_opencl(): ...@@ -40,6 +40,8 @@ def test_print_opencl():
@pytest.mark.skipif(not HAS_OPENCL, reason="Test requires pyopencl") @pytest.mark.skipif(not HAS_OPENCL, reason="Test requires pyopencl")
def test_opencl_jit_fixed_size(): def test_opencl_jit_fixed_size():
pytest.importorskip('pycuda')
z, y, x = pystencils.fields("z, y, x: [20,30]") z, y, x = pystencils.fields("z, y, x: [20,30]")
assignments = pystencils.AssignmentCollection({ assignments = pystencils.AssignmentCollection({
...@@ -92,6 +94,8 @@ def test_opencl_jit_fixed_size(): ...@@ -92,6 +94,8 @@ def test_opencl_jit_fixed_size():
@pytest.mark.skipif(not HAS_OPENCL, reason="Test requires pyopencl") @pytest.mark.skipif(not HAS_OPENCL, reason="Test requires pyopencl")
def test_opencl_jit(): def test_opencl_jit():
pytest.importorskip('pycuda')
z, y, x = pystencils.fields("z, y, x: [2d]") z, y, x = pystencils.fields("z, y, x: [2d]")
assignments = pystencils.AssignmentCollection({ assignments = pystencils.AssignmentCollection({
...@@ -144,6 +148,8 @@ def test_opencl_jit(): ...@@ -144,6 +148,8 @@ def test_opencl_jit():
@pytest.mark.skipif(not HAS_OPENCL, reason="Test requires pyopencl") @pytest.mark.skipif(not HAS_OPENCL, reason="Test requires pyopencl")
def test_opencl_jit_with_parameter(): def test_opencl_jit_with_parameter():
pytest.importorskip('pycuda')
z, y, x = pystencils.fields("z, y, x: [2d]") z, y, x = pystencils.fields("z, y, x: [2d]")
a = sp.Symbol('a') a = sp.Symbol('a')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment