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

Re: [Condor-users] Dynamic Slots



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