File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change 11 [Michele Simionato]
2+ * Disabled SLOW MODE on macOS, since the free memory is not to be trusted
23 * Speeding up `count_ruptures` for multifault sources, which gives a *huge*
34 in some calculations (like event_based for Dominican Republic)
45
Original file line number Diff line number Diff line change @@ -470,7 +470,10 @@ def read_inputs(self):
470470 dist = parallel .oq_distribute ()
471471 avail = psutil .virtual_memory ().available / 1024 ** 3
472472 required = .5 * (1 if dist == 'no' else parallel .Starmap .num_cores )
473- if dist == 'processpool' and avail < required :
473+ if (dist == 'processpool' and avail < required and
474+ sys .platform != 'darwin' ):
475+ # macos tells that there is no memory when there is, so we
476+ # must not enter in SLOW MODE there
474477 msg = ('Entering SLOW MODE. You have %.1f GB available, but the '
475478 'engine would like at least 0.5 GB per core, i.e. %.1f GB: '
476479 'https://github.com/gem/oq-engine/blob/master/doc/faq.md'
You can’t perform that action at this time.
0 commit comments