Skip to content

Commit ed5fb28

Browse files
authored
Numba backend cached property refactor (tests may compile slower since JIT cache is now local to backend instance) (#1299)
1 parent bac3407 commit ed5fb28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1334
-1173
lines changed

.github/workflows/tests+artifacts+pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
python-version: "3.8"
132132
fail-fast: false
133133
runs-on: ${{ matrix.platform }}
134-
timeout-minutes: 45
134+
timeout-minutes: ${{ startsWith(matrix.platform, 'windows-') && 45 || 30 }}
135135
steps:
136136
- uses: actions/[email protected]
137137
with:
@@ -216,7 +216,7 @@ jobs:
216216
test-suite: [ "chemistry_freezing_isotopes", "condensation_a", "condensation_b", "coagulation", "breakup", "multi-process_a", "multi-process_b"]
217217
fail-fast: false
218218
runs-on: ${{ matrix.platform }}
219-
timeout-minutes: 50
219+
timeout-minutes: ${{ startsWith(matrix.platform, 'windows-') && 65 || 50 }}
220220
steps:
221221
- uses: actions/[email protected]
222222
with:

PySDM/backends/impl_common/backend_methods.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,9 @@ class BackendMethods:
99
def __init__(self):
1010
if not hasattr(self, "formulae"):
1111
self.formulae = None
12+
if not hasattr(self, "formulae_flattened"):
13+
self.formulae_flattened = None
1214
if not hasattr(self, "Storage"):
1315
self.Storage = None
16+
if not hasattr(self, "default_jit_flags"):
17+
self.default_jit_flags = {}
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
11
""" method classes of the CPU backend """
2+
3+
from .chemistry_methods import ChemistryMethods
4+
from .collisions_methods import CollisionsMethods
5+
from .condensation_methods import CondensationMethods
6+
from .displacement_methods import DisplacementMethods
7+
from .fragmentation_methods import FragmentationMethods
8+
from .freezing_methods import FreezingMethods
9+
from .index_methods import IndexMethods
10+
from .isotope_methods import IsotopeMethods
11+
from .moments_methods import MomentsMethods
12+
from .pair_methods import PairMethods
13+
from .physics_methods import PhysicsMethods
14+
from .terminal_velocity_methods import TerminalVelocityMethods

0 commit comments

Comments
 (0)