pycif.plugins.platforms.tgcc_ccrt — API reference

pycif.plugins.platforms.tgcc_ccrt — API reference#

Configuration reference: tgcc_ccrt plugin

pycif.plugins.platforms.tgcc_ccrt.jobs.init_job(self, exe, job_file)[source]#

Write an #MSUB batch script for the TGCC ccc_msub scheduler.

Parameters:
  • self (Plugin) – platform plugin instance.

  • exe (str) – shell command to execute inside the job.

  • job_file (str) – path where the job script will be written.

pycif.plugins.platforms.tgcc_ccrt.jobs.submit_job(self, exe, job_file, **kwargs)[source]#

Submit a job to cluster with msub

pycif.plugins.platforms.tgcc_ccrt.jobs.auto_job_resource(self)[source]#

Set nodes and cores automatically for CHIMERE (resource = 'auto').

Computes the minimum number of nodes and the optimal core count per node so that nzdoms × nmdoms + 1 MPI tasks fit with minimal waste.

pycif.plugins.platforms.tgcc_ccrt.jobs.check_jobs(self, list_jobs)[source]#

Return True when all listed jobs have left the TGCC scheduler queue.

Parameters:
  • self (Plugin) – platform plugin instance.

  • list_jobs (list[str]) – job identifiers returned by submit_job.

Returns:

True if every job in list_jobs has finished.

Return type:

bool