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

Merge branch 'oldsympy' of i10git.cs.fau.de:pycodegen/pystencils into oldsympy

parents beb22654 2872b6f0
Branches
Tags
1 merge request!135CI: Replace minimal-ubuntu job with ubuntu
Pipeline #21314 failed
......@@ -11,8 +11,6 @@ import itertools
from os.path import dirname, join
import numpy as np
import pycuda.autoinit # NOQA
import pycuda.gpuarray as gpuarray
import pytest
import sympy
......@@ -114,7 +112,10 @@ def test_rotate_interpolation(address_mode):
@pytest.mark.parametrize('address_mode', ('border', 'wrap', 'clamp', 'mirror'))
@pytest.mark.parametrize('use_textures', ('use_textures', False))
def test_rotate_interpolation_gpu(dtype, address_mode, use_textures):
pytest.importorskip('pycuda')
import pycuda.gpuarray as gpuarray
import pycuda.autoinit # noqa
rotation_angle = sympy.pi / 5
scale = 1
......@@ -143,10 +144,17 @@ def test_rotate_interpolation_gpu(dtype, address_mode, use_textures):
f"out {address_mode} texture:{use_textures} {type_map[dtype]}")
@pytest.mark.parametrize('address_mode', ['border', 'wrap', 'clamp', 'mirror'])
@pytest.mark.parametrize('address_mode', ['border', 'wrap',
pytest.param('warp', marks=pytest.mark.xfail(
reason="% printed as fmod on old sympy")),
pytest.param('mirror', marks=pytest.mark.xfail(
reason="% printed as fmod on old sympy")),
])
@pytest.mark.parametrize('dtype', [np.float64, np.float32, np.int32])
@pytest.mark.parametrize('use_textures', ('use_textures', False,))
def test_shift_interpolation_gpu(address_mode, dtype, use_textures):
if int(sympy.__version__.replace('.', '')) < 12 and address_mode in ['mirror', 'warp']:
pytest.skip()
rotation_angle = 0 # sympy.pi / 5
scale = 1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment