Skip to content

Commit

Permalink
Merge pull request #254 from KernelTuner/fix_skip_compiler_test
Browse files Browse the repository at this point in the history
Compiler backend uses g++ instead of gcc
  • Loading branch information
benvanwerkhoven authored Apr 25, 2024
2 parents 62fe3f5 + b6c095a commit dae9e8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
except Exception:
opencl_present = False

gcc_present = shutil.which("gcc") is not None
gcc_present = shutil.which("g++") is not None
gfortran_present = shutil.which("gfortran") is not None
openmp_present = "libgomp" in subprocess.getoutput(["ldconfig -p | grep libgomp"])
openacc_present = shutil.which("nvc++") is not None
Expand Down Expand Up @@ -95,7 +95,7 @@ def skip_backend(backend: str):
elif backend.upper() == "OPENCL" and not opencl_present:
pytest.skip("PyOpenCL not installed or no OpenCL device detected")
elif backend.upper() == "C" and not gcc_present:
pytest.skip("No gcc on PATH")
pytest.skip("No g++ on PATH")
elif backend.upper() == "FORTRAN" and not gfortran_present:
pytest.skip("No gfortran on PATH")
elif backend.upper() == "OPENACC" and not openacc_present:
Expand Down

0 comments on commit dae9e8e

Please sign in to comment.