From 23e8e04b63072cd1a80a531693f41572891dc70d Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Mon, 23 Sep 2019 09:00:09 +0200 Subject: [PATCH] Skip llvm cuda compilation if llc not in $PATH --- pystencils_tests/test_jacobi_llvm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pystencils_tests/test_jacobi_llvm.py b/pystencils_tests/test_jacobi_llvm.py index cccc710bf..13b22aa4b 100644 --- a/pystencils_tests/test_jacobi_llvm.py +++ b/pystencils_tests/test_jacobi_llvm.py @@ -1,6 +1,8 @@ import numpy as np +import pytest from pystencils import Assignment, Field, show_code +from pystencils.cpu.cpujit import get_llc_command from pystencils.llvm import create_kernel, make_python_function from pystencils.llvm.llvmjit import generate_and_jit @@ -30,6 +32,7 @@ def test_jacobi_fixed_field_size(): np.testing.assert_almost_equal(error, 0.0) +@pytest.mark.skipif(not get_llc_command(), reason="Tests requires llc in $PATH") def test_jacobi_fixed_field_size_gpu(): size = (30, 20) -- GitLab