From 1666f0b9e34da2d73da3038124a69eb453bf2cde Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Mon, 16 Dec 2019 12:30:03 +0100 Subject: [PATCH] Try skipping torch GPU test on CI --- tests/backends/test_torch_native_compilation.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/backends/test_torch_native_compilation.py b/tests/backends/test_torch_native_compilation.py index 44265fc..e979c5d 100644 --- a/tests/backends/test_torch_native_compilation.py +++ b/tests/backends/test_torch_native_compilation.py @@ -25,6 +25,7 @@ PROJECT_ROOT = dirname @pytest.mark.skipif("TRAVIS" in os.environ, reason="nvcc compilation currently not working on TRAVIS") +@pytest.mark.skipif("GITLAB_CI" in os.environ, reason="Gitlab GPUs with CC 3.0 to old!") def test_torch_jit(): """ Test JIT compilation from example on git@github.com:pytorch/extension-cpp.git @@ -79,6 +80,7 @@ def test_torch_native_compilation_cpu(): @pytest.mark.parametrize('with_python_bindings', ('with_python_bindings', False)) +@pytest.mark.skipif("GITLAB_CI" in os.environ, reason="Gitlab GPUs with CC 3.0 to old!") def test_pybind11_compilation_cpu(with_python_bindings): pytest.importorskip('pybind11') @@ -112,6 +114,7 @@ def test_pybind11_compilation_cpu(with_python_bindings): @pytest.mark.skipif("TRAVIS" in os.environ, reason="nvcc compilation currently not working on TRAVIS") +@pytest.mark.skipif("GITLAB_CI" in os.environ, reason="Gitlab GPUs with CC 3.0 to old!") def test_torch_native_compilation_gpu(): from torch.utils.cpp_extension import load @@ -147,7 +150,7 @@ def test_torch_native_compilation_gpu(): assert 'call_backward' in dir(torch_extension) -@pytest.mark.parametrize('target', ('gpu', 'cpu')) +@pytest.mark.parametrize('target', (pytest.param('gpu', marks=pytest.mark.xfail), 'cpu')) def test_execute_torch(target): import pycuda.autoinit module_name = "Ololol" + target @@ -213,7 +216,7 @@ def test_reproducability(): for i in range(10): module_name = "Ololol" - target = 'gpu' + target = 'cpu' z, y, x = pystencils.fields("z, y, x: [20,40]") a = sympy.Symbol('a') -- GitLab