Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] classad and slots
- Date: Wed, 5 Jan 2011 21:41:49 -0500
- From: Michael Di Domenico <mdidomenico4@xxxxxxxxx>
- Subject: Re: [Condor-users] classad and slots
On Wed, Jan 5, 2011 at 11:39 AM, Matthew Farrellee <matt@xxxxxxxxxx> wrote:
> On 12/30/2010 02:56 PM, Michael Di Domenico wrote:
>>
>> I'm not sure i understand how a classad mechanism works, hopefully
>> someone can straighten it out for me
Yes that's true it is simpler, but doesn't actually fulfill my entire
need. We have many machines with Nvidia cards all of different
models. The point of the Cron script is to allow condor to have a
generic configuration irrespective of which particular card is in the
machine (think GPU_NAME == 'Tesla S2050')
>From the testing i've done it appears that if i define the SLOT level
classads in the config file and start condor it does indeed overload
the base classad with the slot level classad,
however, if i inject the slot level classads from cron into the
runtime configuration, it does not overload the base classad.
i'm not sure if this is a bug, a design, or a misconfiguration of
condor, but it doesn't seem right to me. if i can inject classads
into the condor configuration from cron (which works because i inject
HASGPU==True/False from Condor Cron) , why can i not inject slot level
classads in the same way.
>>
>> I've defined a classad in the config file
>>
>> GPU_DEVICE=999
>>
>> I then have a condor cron script that adds in
>>
>> SLOT1_GPU_DEVICE=0
>> SLOT2_GPU_DEVICE=1
>> SLOT3_GPU_DEVICE=2
>>
>> What i'd like to do is reference the slot level config variable from
>> my submit script
>>
>> Arguments = $([Target.GPU_DEVICE])
>>
>> When i submit a test program, i seem to be getting the 999 value
>> instead of the Slot level value
>>
>> Are Slot level classads referential as non-slot level (ie GPU_DEVICE
>> instead of SLOT1_GPU_DEVICE) from a submit file?
>>
>> How can I check these using condor_status? I tried the constraint
>> option, but i'm not sure i have the syntax right
>
> Simpler than using a cron script, you can just use STARTD_ATTRS. Have a look
> in your condor_config file and search for STARTD_EXPRS.
>
> To see the attributes, you can use condor_status -long and grep, or
> something with condor_status -format.
>
> Also, you probably want $$([target.GPU_DEVICE])), with two $s.
>
> Here's a little example...
>
> $ condor_config_val -dump | grep GPU
> SLOT1_GPU_DEVICE = 0
> SLOT2_GPU_DEVICE = 1
> SLOT3_GPU_DEVICE = 2
> STARTD_ATTRS = GPU_DEVICE
>
> $ condor_status -format "%s\t" Name -format "%d\n" GPU_DEVICE
> slot1@xxxxxxxxxxxx 0
>
> $ echo
> "cmd=/bin/echo\narguments=\$\$([target.GPU_DEVICE])\n+GPU_DEVICE=999\noutput=echo.out\nqueue"
> | condor_submit
>
> $ cat echo.out
> 0
>
> Best,
>
>
> matt
>