CESM: Difference between revisions

Jump to navigation Jump to search
2,507 bytes added ,  1 year ago
Updated machine files and new batch file
(A better reference for XML configuration)
(Updated machine files and new batch file)
Line 37: Line 37:
     <MAX_MPITASKS_PER_NODE>40</MAX_MPITASKS_PER_NODE>
     <MAX_MPITASKS_PER_NODE>40</MAX_MPITASKS_PER_NODE>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
    <mpirun mpilib="default">
      <executable>srun</executable>
    </mpirun>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 70: Line 79:
     <MAX_MPITASKS_PER_NODE>48</MAX_MPITASKS_PER_NODE>
     <MAX_MPITASKS_PER_NODE>48</MAX_MPITASKS_PER_NODE>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
    <mpirun mpilib="default">
      <executable>srun</executable>
    </mpirun>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 103: Line 121:
     <MAX_MPITASKS_PER_NODE>44</MAX_MPITASKS_PER_NODE>
     <MAX_MPITASKS_PER_NODE>44</MAX_MPITASKS_PER_NODE>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
    <mpirun mpilib="default">
      <executable>srun</executable>
    </mpirun>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 136: Line 163:
     <MAX_MPITASKS_PER_NODE>64</MAX_MPITASKS_PER_NODE>
     <MAX_MPITASKS_PER_NODE>64</MAX_MPITASKS_PER_NODE>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
    <mpirun mpilib="default">
      <executable>srun</executable>
    </mpirun>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 169: Line 205:
     <MAX_MPITASKS_PER_NODE>40</MAX_MPITASKS_PER_NODE>
     <MAX_MPITASKS_PER_NODE>40</MAX_MPITASKS_PER_NODE>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
    <mpirun mpilib="default">
      <executable>srun</executable>
    </mpirun>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 192: Line 237:
}}
}}
</li>
</li>
</ul>
==Local batch file==
<ul>
<li>Create and edit the file <code>~/.cime/config_batch.xml</code> from the following minimal content:
{{File
  |name=~/.cime/config_batch.xml
  |lang="xml"
  |contents=
<?xml version="1.0"?>
<config_batch version="2.1">
  <batch_system type="slurm">
    <batch_submit>sbatch</batch_submit>
    <submit_args>
      <arg flag="--time" name="$JOB_WALLCLOCK_TIME"/>
      <arg flag="--account" name="$PROJECT"/>
    </submit_args>
    <directives>
      <directive>--mem=0</directive>
    </directives>
    <queues>
      <queue default="true">default</queue>
    </queues>
  </batch_system>
</config_batch>
}}
</li>
<li>Validate your XML machine file with the following commands:
{{Command2
|prompt=[name@server ~]$|module load cesm/2.1.3 && xmllint --noout --schema $EBROOTCESM/cime/config/xml_schemas/config_batch.xsd ~/.cime/config_batch.xml
|result=
/home/username/.cime/config_batch.xml validates
}}
</li>
<li>Check the documentation for additional <b>[https://esmci.github.io/cime/versions/maint-5.6/html/xml_files/cesm.html#cimeroot-config-cesm-machines configuration parameters and examples]</b>.</li>
</ul>
</ul>


cc_staff
782

edits

Navigation menu