Hello Walter,

Maybe you could just use "system" function?

#include <cstdlib>
#include <cstdio>
int main (int argc, char** argv)
{
        printf ("begin\n");
        system ("sleep 1");
        printf ("end\n");
}

Place you sbatch call instead my "sleep 1", shouldn't this do what you want?

06.11.2014, 09:49, "Walter Landry" <[email protected]>:
> Hello Everyone,
>
> What is the recommended way for a C++ program to submit a job? О©╫The
> API documentation says
>
> О©╫О©╫SLURM job steps involve numerous interactions with the slurmd
> О©╫О©╫daemon. The job step creation is only the first step in the
> О©╫О©╫process. We don't advise direct user creation of job steps, but
> О©╫О©╫include the information here for completeness.
>
> Should I use system("srun")? О©╫DRMAA?
>
> Thank you,
> Walter Landry
> [email protected]

--О©╫
Vsevolod Nikonorov, JSC NIKIET
О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫ О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫О©╫, О©╫О©╫О©╫ 
О©╫О©╫О©╫О©╫О©╫О©╫

Reply via email to