I would also strongly recommend that you look at SLURM's GRES support  
for GPU scheduling. Details are available here:
http://www.schedmd.com/slurmdocs/gres.html

It probably already does what you want.



Moe Jette
SchedMD

----- Forwarded message from [email protected] -----
     Date: Tue, 14 Feb 2012 09:59:16 -0700
     From: Moe Jette <[email protected]>
  Subject: Re: [slurm-dev] Plug-in for allocating gpus within nodes
       To: [email protected]

Sergio,

Perhaps you did not add the Makefile path to configure.ac file?

AC_CONFIG_FILES([Makefile
                 config.xml
                 auxdir/Makefile
...
                 src/plugins/select/bluegene/Makefile
etc.



Quoting Sergio Iserte Agut <[email protected]>:

>>
>> 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.
>>
>>
>




----- End forwarded message -----

Reply via email to