[slurm-users] spank plugin parameter max length ?

Tueur Volvo huitre39 at gmail.com
Tue Feb 6 07:55:12 MST 2018


Hello, i create spank plugin and i have a problem.
With my plugin i create new parameters --hbm

If i write srun command it's work
srun --hbm="tototututititatatetetyt" hostname

but if i add 1 caractere, my slurm job "freeze", job is in R status
srun --hbm="tototututititatatetetyty" hostname

So maybe slurm have limitation number parameter length ? max is 23
caracteres, why ?

In my code, slurmd call slurm_spank_init and _script_opt_process and
slurm_spank_task_init
but when i have my error slurmd not call slurm_spank_task_init

this is my code :

#include <sys/types.h>
> #include <stdio.h>
> #include <stdlib.h>
> #include <unistd.h>
> #include <string.h>
> #include <sys/resource.h>
>
> #include <slurm/spank.h>
>
>
> SPANK_PLUGIN(hbm, 1);
>
> static int _script_opt_process (int val,
>                                 const char *optarg,
>                                 int remote);
>
> struct spank_option spank_options[] =
> {
>     { "hbm",
>       "[hbm]",
>       "hbm parameter",
>       1,
>       0,
>       (spank_opt_cb_f) _script_opt_process
>     },
>
>     SPANK_OPTIONS_TABLE_END
> };
>
>
> int slurm_spank_init (spank_t sp, int ac, char **av)
> {
>     return (0);
> }
>
> int slurm_spank_task_init (spank_t sp, int ac, char **av) {
>
>     return 0;
> }
>
> static int _script_opt_process (int val,const char *optarg,int remote) {
>     return (0);
> }
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20180206/711c552d/attachment-0001.html>


More information about the slurm-users mailing list