You should not be setting these in the submit line. That is, you do not need these 4 lines at all.
Fields that start with bc_ or auto_ that we distribute know how to submit themselves. They’re automatic flag generation seems to be overridden by what you’re providing.
So for example bc_num_hours knows what flags to use (i.e., --time on slurm) and knows how to translate itself to the right time unit for your scheduler.
Maybe? We (OSC) don’t really use partitions - or at least we don’t have users specify them (we have slurm filters that will put you in the right partition based on resources requested & the project used).
What would the equivalent sbatch command look like?
But I need to give users option to choose a few from the list not just one.
And one more question about bc_num_slots. My understanding it suppose to be CPU. But I think it’s being ignored in my submit from. If I request 48 it should run on 2 nodes because each has 32 CPUs, but it runs only on 1.
I don’t see it in json file:
{
“job_name”: “sys/dashboard/dev/submit-ansys-job”,
“workdir”: “ondemand/data/sys/dashboard/batch_connect/dev/submit-ansys-job/output/5d7ea5b2-6940-4f17-9069-7f736a82b6d2”,
“output_path”: “ondemand/data/sys/dashboard/batch_connect/dev/submit-ansys-job/output/5d7ea5b2-6940-4f17-9069-7f736a82b6d2/output.log”,
“shell_path”: “/bin/bash”,
“queue_name”: “sky”,
“qos”: “lowprio_8job”,
“native”: [
“–job-name”,
“lalala”
],
“wall_time”: 86400,
“email_on_started”: true
}
You can check your /var/log/ondemand-nginx/$USER/error.log to see the exact sbatch command you issue.
For whatever reason bc_num_slots uses -N (--nodes) for Slurm. It was before my time, but since it’s called slots they tried (erroneously) to translate that slot concept to Slurm. At that time we were a torque/moab shop and it’s unclear to me why they translated it like that.
You can even see by the label that they knew that it was processors on one system and nodes on another.
OK - at a less quick glance - this may need to be pluralized to licenses. I’d have to consult the sbatch documentation on the same given the link I just posted uses licenses plural.