[slurm-users] Using slurm_submit_batch_job API

Cao, Lei leicao88124 at lanl.gov
Thu Jan 30 23:29:49 UTC 2020

Can I use slurm_submit_sbatch_job API to submit a batch job by only giving a complete job script to the job_desc_msg_t data structure?

For example (pseudo code):

    job_desc_msg_t my_job;

    submit_response_msg_t *resp = NULL;

    char sbatch_script[4096] = "#SBATCH xxxxx\n mpirun hostname";


    job_desc_msg.script = strdup(sbatch_script);

    slurm_submit_batch_job(&my_job, &resp);


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200130/de4b3620/attachment.htm>

More information about the slurm-users mailing list