diff --git a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/conftest.py b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/conftest.py index 5d5fb9923a..a20ca2162b 100644 --- a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/conftest.py +++ b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/conftest.py @@ -9,16 +9,8 @@ from typing import Any, Optional, Sequence, Union, overload, Literal, Generator import pytest -import dace -import copy -import numpy as np -from dace.sdfg import nodes as dace_nodes -from dace.transformation import dataflow as dace_dataflow -from gt4py.next import common as gtx_common -from gt4py.next.program_processors.runners.dace_fieldview import ( - transformations as gtx_transformations, -) +dace = pytest.importorskip("dace") @pytest.fixture() diff --git a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_gpu_utils.py b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_gpu_utils.py index d51c242977..cc13f8a9c9 100644 --- a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_gpu_utils.py +++ b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_gpu_utils.py @@ -19,7 +19,7 @@ ) from . import util -pytestmark = pytest.mark.usefixtures("set_dace_settings") +pytestmark = [pytest.mark.requires_dace, pytest.mark.usefixtures("set_dace_settings")] def _get_trivial_gpu_promotable( diff --git a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_loop_blocking.py b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_loop_blocking.py index b4fde413a1..63bc14b1eb 100644 --- a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_loop_blocking.py +++ b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_loop_blocking.py @@ -19,7 +19,7 @@ ) from . import util -pytestmark = pytest.mark.usefixtures("set_dace_settings") +pytestmark = [pytest.mark.requires_dace, pytest.mark.usefixtures("set_dace_settings")] def _get_simple_sdfg() -> tuple[dace.SDFG, Callable[[np.ndarray, np.ndarray], np.ndarray]]: diff --git a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_map_fusion.py b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_map_fusion.py index 54319b27dd..d7b4feec75 100644 --- a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_map_fusion.py +++ b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_map_fusion.py @@ -21,7 +21,7 @@ ) from . import util -pytestmark = pytest.mark.usefixtures("set_dace_settings") +pytestmark = [pytest.mark.requires_dace, pytest.mark.usefixtures("set_dace_settings")] def _make_serial_sdfg_1( diff --git a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_serial_map_promoter.py b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_serial_map_promoter.py index 85846ef6c8..bf12ea8927 100644 --- a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_serial_map_promoter.py +++ b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/dace/transformation_tests/test_serial_map_promoter.py @@ -20,7 +20,7 @@ from . import util -pytestmark = pytest.mark.usefixtures("set_dace_settings") +pytestmark = [pytest.mark.requires_dace, pytest.mark.usefixtures("set_dace_settings")] def test_serial_map_promotion(): diff --git a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/test_dace.py b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/test_dace.py index 8c7883fd0a..f4bd2d396b 100644 --- a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/test_dace.py +++ b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/test_dace.py @@ -25,6 +25,7 @@ exec_alloc_descriptor, ) +pytestmark = pytest.mark.requires_dace compiled_sdfg = pytest.importorskip("dace.codegen.compiled_sdfg") diff --git a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/test_dace_fieldview.py b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/test_dace_fieldview.py index 0bd86fbf09..64621a14b2 100644 --- a/tests/next_tests/unit_tests/program_processor_tests/runners_tests/test_dace_fieldview.py +++ b/tests/next_tests/unit_tests/program_processor_tests/runners_tests/test_dace_fieldview.py @@ -17,8 +17,6 @@ from gt4py.next import common as gtx_common from gt4py.next.iterator import ir as gtir from gt4py.next.iterator.ir_utils import ir_makers as im -from gt4py.next.iterator.type_system import type_specifications as gtir_ts -from gt4py.next.program_processors.runners import dace_fieldview as dace_backend from gt4py.next.type_system import type_specifications as ts from next_tests.integration_tests.feature_tests.ffront_tests.ffront_test_utils import ( Cell, @@ -34,6 +32,7 @@ import pytest pytestmark = pytest.mark.requires_dace +dace_backend = pytest.importorskip("gt4py.next.program_processors.runners.dace_fieldview") N = 10