You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Instead of defining a new memory_Mb in the resources (very specific to this scheduler), we should reuse concepts already into AiiDA and independent of the scheduler.
E.g. we have metadata.options.max_memory_kb in CalcJobs:
Instead of defining a new
memory_Mbin the resources (very specific to this scheduler), we should reuse concepts already into AiiDA and independent of the scheduler.E.g. we have
metadata.options.max_memory_kbin CalcJobs:https://github.com/aiidateam/aiida-core/blob/ff1318b485a8b803e115b78946cc4593fc661153/aiida/engine/processes/calcjobs/calcjob.py#L249
and this is passed to the scheduler in the JobTemplate:
https://github.com/aiidateam/aiida-core/blob/ff1318b485a8b803e115b78946cc4593fc661153/aiida/schedulers/datastructures.py#L284
See e.g. how it's used in SLURM:
https://github.com/aiidateam/aiida-core/blob/develop/aiida/schedulers/plugins/slurm.py#L383-L396