Skip to content

Commit

Permalink
Merge pull request #2270 from devitocodes/python312
Browse files Browse the repository at this point in the history
deps: support python 3.12
  • Loading branch information
mloubout authored Nov 20, 2023
2 parents e8ecf41 + f9c874b commit b68cf6f
Show file tree
Hide file tree
Showing 4 changed files with 1,035 additions and 406 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/pytest-core-nompi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
pytest-ubuntu-py38-gcc12-omp,
pytest-ubuntu-py37-gcc7-omp,
pytest-ubuntu-py310-gcc10-noomp,
pytest-ubuntu-py38-gcc8-omp,
pytest-ubuntu-py312-gcc13-omp,
pytest-ubuntu-py39-gcc9-omp,
pytest-osx-py37-clang-omp,
pytest-docker-py39-gcc-omp,
Expand Down Expand Up @@ -70,10 +70,10 @@ jobs:
language: "C"
sympy: "1.10"

- name: pytest-ubuntu-py38-gcc8-omp
python-version: '3.8'
- name: pytest-ubuntu-py312-gcc13-omp
python-version: '3.12'
os: ubuntu-20.04
arch: "gcc-8"
arch: "gcc-13"
language: "openmp"
sympy: "1.11"

Expand Down Expand Up @@ -152,13 +152,19 @@ jobs:
echo "TESTS=tests/" >> $GITHUB_ENV
fi
id: set-tests

- name: Set pip flags for latest python (3.12)
run: |
if [ "${{ matrix.python-version }}" == '3.12' ]; then
echo "PIPFLAGS='--break-system-packages'" >> $GITHUB_ENV
fi
- name: Install dependencies
if: "!contains(matrix.name, 'docker')"
run: |
pip install --upgrade pip
pip install -e .[tests]
pip install sympy==${{matrix.sympy}}
pip install ${{ env.PIPFLAGS }} --upgrade pip
pip install ${{ env.PIPFLAGS }} -e .[tests]
pip install ${{ env.PIPFLAGS }} sympy==${{matrix.sympy}}
- name: Check configuration
run: |
Expand Down
4 changes: 4 additions & 0 deletions devito/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from itertools import product
from . import _version

# Import the global `configuration` dict
from devito.parameters import * # noqa
Expand Down Expand Up @@ -155,3 +156,6 @@ def mode_performance():
# With the autotuner in `aggressive` mode, a more aggressive blocking strategy
# which also tiles the innermost loop) is beneficial
configuration['opt-options']['blockinner'] = True


__version__ = _version.get_versions()['version']
Loading

0 comments on commit b68cf6f

Please sign in to comment.