<div dir="ltr">thank youJeffrey, it's work !<br></div><div class="gmail_extra"><br><div class="gmail_quote">2018-02-01 15:02 GMT+01:00 Jeffrey Frey <span dir="ltr"><<a href="mailto:frey@udel.edu" target="_blank">frey@udel.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I had to figure this one out myself a few months ago. See src/common/plugstack.c:<br>
<br>
<br>
/*<br>
* Do not load static plugin options table in allocator context.<br>
*/<br>
if (stack->type != S_TYPE_ALLOCATOR)<br>
plugin->opts = plugin_get_sym(p, "spank_options");<br>
<br>
<br>
In the ALLOCATOR context you must register any CLI options using spank_options_register() inside your slurm_spank_init(). See e.g.<br>
<br>
<br>
<a href="https://github.com/jtfrey/ud_slurm_addons/blob/master/spank/gridengine_compat.c" rel="noreferrer" target="_blank">https://github.com/jtfrey/ud_<wbr>slurm_addons/blob/master/<wbr>spank/gridengine_compat.c</a><br>
<br>
<br>
and the slurm_spank_init() function therein. The documentation page doesn't mention the fact that if you named your option list "spank_options" the plugin loader will automatically register them in non-ALLOCATOR contexts.<br>
<div><div class="h5"><br>
<br>
<br>
<br>
> On Feb 1, 2018, at 5:29 AM, Tueur Volvo <<a href="mailto:huitre39@gmail.com">huitre39@gmail.com</a>> wrote:<br>
><br>
> Hello i read tutorial of spank plugin :<br>
> <a href="https://slurm.schedmd.com/spank.html" rel="noreferrer" target="_blank">https://slurm.schedmd.com/<wbr>spank.html</a><br>
><br>
> and i create my plugin with the example renice in tutorial.<br>
><br>
> But my plugin work only with srun.<br>
> the option --renice not exist for sbatch command, why ?<br>
> Can you help me ?<br>
<br>
<br>
</div></div>::::::::::::::::::::::::::::::<wbr>::::::::::::::::::::::::<br>
Jeffrey T. Frey, Ph.D.<br>
Systems Programmer V / HPC Management<br>
Network & Systems Services / College of Engineering<br>
University of Delaware, Newark DE 19716<br>
Office: <a href="tel:%28302%29%20831-6034" value="+13028316034">(302) 831-6034</a> Mobile: <a href="tel:%28302%29%20419-4976" value="+13024194976">(302) 419-4976</a><br>
::::::::::::::::::::::::::::::<wbr>::::::::::::::::::::::::<br>
<br>
<br>
<br>
<br>
<br>
</blockquote></div><br></div>