Skip to content

Commit

Permalink
merge main
Browse files Browse the repository at this point in the history
  • Loading branch information
Ig-dolci committed Mar 1, 2024
2 parents b302168 + 1f8a8ab commit d4b3300
Show file tree
Hide file tree
Showing 20 changed files with 873 additions and 29 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
Expand All @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest numpy nbval tabulate
python -m pip install pytest numpy nbval tabulate scipy sympy
python -m pip install -e .
- name: Test with pytest
run: |
Expand Down
7 changes: 7 additions & 0 deletions checkpoint_schedules/basic_schedules.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College
# London
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).

"""This module contains basic checkpointing schedules.
"""

Expand Down
9 changes: 7 additions & 2 deletions checkpoint_schedules/hrevolve.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College
# London
# Developed by Daiane I. Dolci ([email protected]),
# James R. Maddison ([email protected])
# and David A. Ham ([email protected]).

"""This module contains the checkpointing schedules for the H-Revolve,
Disk Revolve, Periodic Disk Revolve and Revolve algorithms.
"""
Expand Down
8 changes: 7 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/basic_functions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]),
# Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).

"""This module contains the basic functions used in the H-ReVolve algorithm."""
import math

Expand Down
8 changes: 7 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/disk_revolve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]),
# Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).

"""This module contains the functions to compute the Disk-Revolve schedules.
"""
from functools import partial
Expand Down
7 changes: 7 additions & 0 deletions checkpoint_schedules/hrevolve_sequences/hrevolve.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]),
# Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).

"""This module contains the implementation of the H-Revolve schedule.
"""
from functools import partial
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]),
# Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).

"""This module contains the periodic disk revolve checkpoint schedule."""
from functools import partial
Expand Down
8 changes: 7 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/revolve.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]),
# Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).

"""This module contains the functions used to compute the revolver sequences.
"""
from functools import partial
Expand Down
8 changes: 7 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/revolve_1d.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]),
# Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).

"""This module contains the functions used to compute the 1D revolver
sequences.
"""
Expand Down
7 changes: 6 additions & 1 deletion checkpoint_schedules/hrevolve_sequences/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
#!/usr/bin/python
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 Inria and Imperial College London
# Developed originally by Guillaume Pallez ([email protected]),
# Julien Herrmann ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).

def revolver_parameters(wd, rd, uf, ub):
"""Parameter use to obtain the revolver sequences.
Expand Down
6 changes: 6 additions & 0 deletions checkpoint_schedules/mixed.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College
# London
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).
import warnings
import functools
import numpy as np
Expand Down
6 changes: 6 additions & 0 deletions checkpoint_schedules/multistage.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College
# London
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).import functools
import functools
from operator import itemgetter
from .schedule import CheckpointSchedule, Forward, Reverse, Copy, Move, \
Expand Down
7 changes: 7 additions & 0 deletions checkpoint_schedules/schedule.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College
# London
# Developed by Daiane I. Dolci ([email protected]),
# James R. Maddison ([email protected])
# and David A. Ham ([email protected]).

"""Classes used to define checkpointing schedules and actions in checkpointing
schedules.
"""
Expand Down
6 changes: 6 additions & 0 deletions checkpoint_schedules/twolevel_binomial.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# SPDX-License-Identifier: LGPL-3.0-only
# Copyright (C) 2020 - 2024 The University of Edinburgh and Imperial College
# London
# Developed originally by James R. Maddison ([email protected]).
# Modified by Daiane I. Dolci ([email protected])
# and David A. Ham ([email protected]).
from .schedule import CheckpointSchedule, Forward, Reverse, Copy, Move, \
EndForward, EndReverse, StorageType
from .multistage import n_advance
Expand Down
Loading

0 comments on commit d4b3300

Please sign in to comment.