[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Condor-users] Dynamic Slots



With dynamic slots, we don't want the whole machine per job...so I
have a version of condor run that

- allows the user to ask for a # of cpus on the command line
- or looks at the parameters passed to it, and calcualtes a # cpu's

- Erik

On Fri, May 20, 2011 at 2:05 PM, Ian Cottam <Ian.Cottam@xxxxxxxxxxxxxxxx> wrote:
> Thanks!
> -Ian
>
> --
> Ian Cottam
> ext. 61851
> IT Services for Research
> Faculty of EPS
> The University of Manchester
>
>
>
>
>
> On 20/05/2011 18:18, "David J. Herzfeld" <herzfeldd@xxxxxxxxx> wrote:
>
>>Hi Ian:
>>
>>On Fri, 2011-05-20 at 10:10 +0000, Ian Cottam wrote:
>>> To have a go at answering my own question....
>>>
>>> I'm hoping (but need to test) this:
>>>
>>> Requirements = ... && (has_dynamic =?= True)
>>> Request_CPUs =
>>>
>>>some-conditional-expression-using-has_dynamic4-etc-that-evaluates-to-corr
>>>ec
>>> t-number
>>
>>Here's a simple example which seems to work on my end. It requests a
>>entire machine using the TotalCpus attribute:
>>
>>Universe = vanilla
>>Executable = /bin/sleep
>>Arguments = 60
>>Output = test.out
>>Error = test.err
>>Requirements = (TARGET.TotalCpus =!= UNDEFINED) && \
>>((Target.PartitionableSlot =?= TRUE) || (TARGET.DynamicSlot =?= TRUE))
>># Request an entire machine
>>request_cpus = TARGET.TotalCpus
>>queue
>>
>>I think this should do what you want, but as we only have 8 core
>>systems, it is hard for me to test all the possibilities you laid out
>>(2, 4, 8, 16). Let me know if it works.
>>
>>Have a good day,
>>DJH
>>
>>
>>
>>_______________________________________________
>>Condor-users mailing list
>>To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
>>subject: Unsubscribe
>>You can also unsubscribe by visiting
>>https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>>
>>The archives can be found at:
>>https://lists.cs.wisc.edu/archive/condor-users/
>
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
>
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/
>