We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5a3f00 commit 7f9984eCopy full SHA for 7f9984e
1 file changed
src/somd2/runner/_repex.py
@@ -378,9 +378,13 @@ def _create_dynamics(
378
379
# If this exceeds the total memory, raise an error.
380
if est_total > total_mem:
381
+ baseline = info["before"]
382
+ replica_cost = first_cost + marginal_cost * (num_contexts - 1)
383
msg = (
384
f"Not enough memory on device {device} for all assigned replicas. "
- f"Estimated memory usage: {est_total / (1024**3):.2f} GB, "
385
+ f"Baseline usage before simulation: {baseline / (1024**3):.2f} GB "
386
+ f"Estimated replica memory: {replica_cost / (1024**3):.2f} GB, "
387
+ f"Total estimated: {est_total / (1024**3):.2f} GB, "
388
f"Available memory: {total_mem / (1024**3):.2f} GB."
389
)
390
_logger.error(msg)
0 commit comments