Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numba backend cached property refactor (tests may compile slower since JIT cache is now local to backend instance) #1299

Merged
merged 24 commits into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests+artifacts+pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:
python-version: "3.8"
fail-fast: false
runs-on: ${{ matrix.platform }}
timeout-minutes: 45
timeout-minutes: ${{ startsWith(matrix.platform, 'windows-') && 45 || 30 }}
steps:
- uses: actions/[email protected]
with:
Expand Down Expand Up @@ -216,7 +216,7 @@ jobs:
test-suite: [ "chemistry_freezing_isotopes", "condensation_a", "condensation_b", "coagulation", "breakup", "multi-process_a", "multi-process_b"]
fail-fast: false
runs-on: ${{ matrix.platform }}
timeout-minutes: 50
timeout-minutes: ${{ startsWith(matrix.platform, 'windows-') && 65 || 50 }}
steps:
- uses: actions/[email protected]
with:
Expand Down
4 changes: 4 additions & 0 deletions PySDM/backends/impl_common/backend_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ class BackendMethods:
def __init__(self):
if not hasattr(self, "formulae"):
self.formulae = None
if not hasattr(self, "formulae_flattened"):
self.formulae_flattened = None
if not hasattr(self, "Storage"):
self.Storage = None
if not hasattr(self, "default_jit_flags"):
self.default_jit_flags = {}
13 changes: 13 additions & 0 deletions PySDM/backends/impl_numba/methods/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,14 @@
""" method classes of the CPU backend """

from .chemistry_methods import ChemistryMethods
from .collisions_methods import CollisionsMethods
from .condensation_methods import CondensationMethods
from .displacement_methods import DisplacementMethods
from .fragmentation_methods import FragmentationMethods
from .freezing_methods import FreezingMethods
from .index_methods import IndexMethods
from .isotope_methods import IsotopeMethods
from .moments_methods import MomentsMethods
from .pair_methods import PairMethods
from .physics_methods import PhysicsMethods
from .terminal_velocity_methods import TerminalVelocityMethods
Loading
Loading