Could you please tell me how to solve this problem that I can't find? I don't know how to write batch.xml. I am using cesm-2.2.1 version.
When I use this command:
./create_newcase \
--case fwsc2010climo_test \
--compset FWsc2010climo \
--res f09_f09_mg17 \
--mach jyx \
--compiler intel \
--queue CPU-64C256GB \
--walltime 360:00:00 \
--run-unsupported
I got the above error, but when I added the queue code in the batch file, the system prompted me that in CESM 2.2.1 (your version):
config_batch.xsd schema does not support <queues>
The following is the content of the batch:
<?xml version="1.0"?>
<config_batch version="2.1">
<!-- Define slurm template (global style, cannot be omitted) -->
<batch_system type="slurm">
<batch_submit>sbatch</batch_submit>
<batch_cancel>scancel</batch_cancel>
<batch_directive>#SBATCH</batch_directive>
<jobid_pattern>(\d+)$</jobid_pattern>
<depend_string>--dependency=afterok:{{ depid }}</depend_string>
<depend_allow_string>--dependency=afterany:{{ depid }}</depend_allow_string>
<depend_separator>,</depend_separator>
<walltime_format>%H:%M:%S</walltime_format>
<batch_mail_flag>--mail-user</batch_mail_flag>
<batch_mail_type_flag>--mail-type</batch_mail_type_flag>
<batch_mail_type>all, begin, end, fail</batch_mail_type>
</batch_system>
<!-- Bind your machine jyx's Slurm configuration -->
<batch_system MACH="jyx" type="slurm">
<batch_directive>#SBATCH</batch_directive>
<directives>
<directive>--job-name={{ job_id }}</directive>
<directive>--nodes={{ num_nodes }}</directive>
<directive>--ntasks={{ total_tasks }}</directive>
<directive>--ntasks-per-node={{ tasks_per_node }}</directive>
<directive>--time={{ walltime }}</directive>
<directive>--partition=CPU-64C256GB</directive>
<directive>--qos=qos_cpu_64c256gb</directive>
<directive>--output={{ job_id }}.out</directive>
<directive>--error={{ job_id }}.err</directive>
<directive>--exclusive</directive>
</directives>
</batch_system>
</config_batch>
When I use this command:
./create_newcase \
--case fwsc2010climo_test \
--compset FWsc2010climo \
--res f09_f09_mg17 \
--mach jyx \
--compiler intel \
--queue CPU-64C256GB \
--walltime 360:00:00 \
--run-unsupported
I got the above error, but when I added the queue code in the batch file, the system prompted me that in CESM 2.2.1 (your version):
config_batch.xsd schema does not support <queues>
The following is the content of the batch:
<?xml version="1.0"?>
<config_batch version="2.1">
<!-- Define slurm template (global style, cannot be omitted) -->
<batch_system type="slurm">
<batch_submit>sbatch</batch_submit>
<batch_cancel>scancel</batch_cancel>
<batch_directive>#SBATCH</batch_directive>
<jobid_pattern>(\d+)$</jobid_pattern>
<depend_string>--dependency=afterok:{{ depid }}</depend_string>
<depend_allow_string>--dependency=afterany:{{ depid }}</depend_allow_string>
<depend_separator>,</depend_separator>
<walltime_format>%H:%M:%S</walltime_format>
<batch_mail_flag>--mail-user</batch_mail_flag>
<batch_mail_type_flag>--mail-type</batch_mail_type_flag>
<batch_mail_type>all, begin, end, fail</batch_mail_type>
</batch_system>
<!-- Bind your machine jyx's Slurm configuration -->
<batch_system MACH="jyx" type="slurm">
<batch_directive>#SBATCH</batch_directive>
<directives>
<directive>--job-name={{ job_id }}</directive>
<directive>--nodes={{ num_nodes }}</directive>
<directive>--ntasks={{ total_tasks }}</directive>
<directive>--ntasks-per-node={{ tasks_per_node }}</directive>
<directive>--time={{ walltime }}</directive>
<directive>--partition=CPU-64C256GB</directive>
<directive>--qos=qos_cpu_64c256gb</directive>
<directive>--output={{ job_id }}.out</directive>
<directive>--error={{ job_id }}.err</directive>
<directive>--exclusive</directive>
</directives>
</batch_system>
</config_batch>