Skip to content

Commit

Permalink
tests: Do not test gradients with OneApiCompiler
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Apr 19, 2023
1 parent 95bb86a commit 1b74713
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pytest-core-nompi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
pytest-ubuntu-py39-gcc9-omp,
pytest-osx-py37-clang-omp,
pytest-docker-py37-gcc-omp,
pytest-docker-py37-intel-omp,
pytest-docker-py38-intel-omp
pytest-docker-py37-icc-omp,
pytest-docker-py38-icx-omp
]
set: [base, adjoint]
include:
Expand Down Expand Up @@ -127,7 +127,7 @@ jobs:
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
if: !contains(matrix.name, 'docker')
if: "!contains(matrix.name, 'docker')"
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
Expand Down
5 changes: 3 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
from devito import Eq, configuration # noqa
from devito.finite_differences.differentiable import EvalDerivative
from devito.arch import Cpu64, Device, sniff_mpi_distro, Arm
from devito.arch.compiler import compiler_registry, IntelCompiler, NvidiaCompiler
from devito.arch.compiler import (compiler_registry, IntelCompiler, OneapiCompiler,
NvidiaCompiler)
from devito.ir.iet import retrieve_iteration_tree, FindNodes, Iteration, ParallelBlock
from devito.tools import as_tuple

Expand Down Expand Up @@ -65,7 +66,7 @@ def skipif(items, whole_module=False):
break
# Skip if it won't run with IntelCompiler
if i == 'cpu64-icc' and \
isinstance(configuration['compiler'], IntelCompiler) and \
isinstance(configuration['compiler'], (IntelCompiler, OneapiCompiler)) and \
isinstance(configuration['platform'], Cpu64):
skipit = "`icc+cpu64` won't work with this test"
break
Expand Down

0 comments on commit 1b74713

Please sign in to comment.