Hello,
I did a quick run on CLM5 and I managed to do the case.setup, case.build, case.submit but this job failed with the message "Job Wall-clock time: 00:00:17", and I looked at the log file for errors and this is the error message: "srun: error: Invalid numeric value "tasks-per-node" for --ntasks".
I think this means the value for the --ntasks option is expected to be a numeric value, but instead it appears to be set to the string "tasks-per-node". I should make sure that this option is followed by a numeric value, not a string, and only in "env_batch" file there is "--ntasks-per-node". Should I change this one only? or is there anywhere else that I must look for "--ntasks" to edit?
this is what I have inside "env_batch" file:
<directives>
<directive> --job-name={{ job_id }}</directive>
<directive> --nodes={{ num_nodes }}</directive>
<directive> --ntasks-per-node={{ tasks_per_node }}</directive>
<directive> --output={{ job_id }} </directive>
<directive> --exclusive </directive>
</directives>
Should I change it to the following lines?
<directives>
<directive> --job-name={{ job_id }}</directive>
<directive> --nodes={{ num_nodes }}</directive>
<directive> --ntasks={{ num_procs }}</directive>
<directive> --output={{ job_id }} </directive>
<directive> --exclusive </directive>
</directives>
Or should I simply type the number of tasks which is 64?
Also, inside config_machine file there is another ntask parameter that I think (not sure) I should change:
<MAX_TASKS_PER_NODE>64</MAX_TASKS_PER_NODE>
<MAX_MPITASKS_PER_NODE>64</MAX_MPITASKS_PER_NODE>
<mpirun mpilib="openmpi">
<executable>srun</executable>
<arguments>
<arg name="num_tasks">-n {{ total_tasks }}</arg>
<arg name="tasks_per_node"> -ntasks-per-node $MAX_MPITASKS_PER_NODE </arg>
</arguments>
Should I change it also?
Thanks for your help.
I did a quick run on CLM5 and I managed to do the case.setup, case.build, case.submit but this job failed with the message "Job Wall-clock time: 00:00:17", and I looked at the log file for errors and this is the error message: "srun: error: Invalid numeric value "tasks-per-node" for --ntasks".
I think this means the value for the --ntasks option is expected to be a numeric value, but instead it appears to be set to the string "tasks-per-node". I should make sure that this option is followed by a numeric value, not a string, and only in "env_batch" file there is "--ntasks-per-node". Should I change this one only? or is there anywhere else that I must look for "--ntasks" to edit?
this is what I have inside "env_batch" file:
<directives>
<directive> --job-name={{ job_id }}</directive>
<directive> --nodes={{ num_nodes }}</directive>
<directive> --ntasks-per-node={{ tasks_per_node }}</directive>
<directive> --output={{ job_id }} </directive>
<directive> --exclusive </directive>
</directives>
Should I change it to the following lines?
<directives>
<directive> --job-name={{ job_id }}</directive>
<directive> --nodes={{ num_nodes }}</directive>
<directive> --ntasks={{ num_procs }}</directive>
<directive> --output={{ job_id }} </directive>
<directive> --exclusive </directive>
</directives>
Or should I simply type the number of tasks which is 64?
Also, inside config_machine file there is another ntask parameter that I think (not sure) I should change:
<MAX_TASKS_PER_NODE>64</MAX_TASKS_PER_NODE>
<MAX_MPITASKS_PER_NODE>64</MAX_MPITASKS_PER_NODE>
<mpirun mpilib="openmpi">
<executable>srun</executable>
<arguments>
<arg name="num_tasks">-n {{ total_tasks }}</arg>
<arg name="tasks_per_node"> -ntasks-per-node $MAX_MPITASKS_PER_NODE </arg>
</arguments>
Should I change it also?
Thanks for your help.