Skip to content
Snippets Groups Projects
Commit f6f19153 authored by Michael Kuron's avatar Michael Kuron :mortar_board:
Browse files

correctly skip interpolation test without CUDA

parent 4bae07a3
No related branches found
No related tags found
No related merge requests found
...@@ -155,6 +155,10 @@ def test_rotate_interpolation_gpu(dtype, address_mode, use_textures): ...@@ -155,6 +155,10 @@ def test_rotate_interpolation_gpu(dtype, address_mode, use_textures):
def test_shift_interpolation_gpu(address_mode, dtype, use_textures): def test_shift_interpolation_gpu(address_mode, dtype, use_textures):
if int(sympy.__version__.replace('.', '')) < 12 and address_mode in ['mirror', 'warp']: if int(sympy.__version__.replace('.', '')) < 12 and address_mode in ['mirror', 'warp']:
pytest.skip() pytest.skip()
pytest.importorskip('pycuda')
import pycuda.gpuarray as gpuarray
import pycuda.autoinit # noqa
rotation_angle = 0 # sympy.pi / 5 rotation_angle = 0 # sympy.pi / 5
scale = 1 scale = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment