Hi Sergio,

As far as I remember you have to add it also to the configure.ac in
the main directory of the source.
You should have a look to the gres system. It can manage GPUs as
general resources so you don't have to create a new plugin for each
plugin.

Regards,
Carles Fenoy

On Tue, Feb 14, 2012 at 5:41 PM, Sergio Iserte Agut <sise...@uji.es> wrote:
>> For three weeks I have been "playing" with Slurm: installing it,
>> configuring it, and using it.
>> Now I'm working in a plug-in which can allocate gpus within nodes, that
>> is, using gpus as consumable resources.
>> My problem is, by the time, how to create a new plug-in and how to add to
>> the system.
>> I have read all of your documentation and I've tried to base my plug-in
>> using one of the availables.
>> When I execute "autogen.sh" and then "configure", the new plug-in doesn't
>> appear in the debug messages, moreover "configure" doesn't create the
>> "Makefile" in the plug-in directory.
>>
>> For example:
>>
>> # pwd
>> /root/slurm-2.3.2/src/plugins/select
>>
>> # ls
>> bluegene  cons_res  cray  gpus  linear  Makefile  Makefile.am  Makefile.in
>>
>> # cat Makefile.am
>>     # Makefile for node selection plugins
>>     if WITH_CXX
>>     BLUEGENE = bluegene
>>     endif
>>     SUBDIRS = $(BLUEGENE) cons_res cray linear gpus
>>     # Each plugin here needs a plugin_id, here are the currect plug_ids
>>     # for each plugin.
>>     # bluegene         = 100
>>     # cons_res         = 101
>>     # linear                 = 102
>>     # bgq         = 103
>>     # cray + linear       = 104
>>     # cray + cons_res = 105 ==> Not current possible on Cray with
>> ALPS/BASIL.
>>     # gpus        = 106
>>
>> # cd gpus
>> # ls -la
>> drwxr-xr-x. 2 root root   4096 feb 14 16:01 .
>> drwxr-xr-x. 7 root root   4096 feb 14 16:34 ..
>> -rw-r--r--. 1 root root    354 feb 14 15:37 Makefile.am
>> -rw-r--r--. 1 root root  20761 feb 14 15:55 Makefile.in
>> -rw-r--r--. 1 root root 105016 feb 14 15:52 select_gpus.c
>> -rw-r--r--. 1 root root   3756 feb 14 15:47 select_gpus.h
>>
>>
>> I wish the explanation has been successful.
>>
>> I'm looking forward to hearing from you.
>>
>> Thank you very much.
>>
>



-- 
--
Carles Fenoy

Reply via email to