Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Condor-users] Looking for suggestions for inhomogeneous pool
- Date: Tue, 22 Nov 2011 07:15:03 -0500
- From: Ben Cotton <bcotton@xxxxxxxxxx>
- Subject: Re: [Condor-users] Looking for suggestions for inhomogeneous pool
On Tue, Nov 22, 2011 at 4:09 AM, Steffen Grunewald
<Steffen.Grunewald@xxxxxxxxxx> wrote:
> Is there a means to overrule the current NEGOTIATOR_PRE_JOB_RANK setting
> for parallel universe jobs only? Another term in the expression, like
> 1000000000*(Target.JobUniverse == 11)
Perhaps using ifThenElse? For example:
NORMAL_PRE_JOB_RANK = 1000000 - 100 * Memory - $(SWEEP_DIFF)
PARALLEL_PRE_JOB_RANK = 1000000000
NEGOTIATOR_PRE_JOB_RANK = ifThenElse( (Target.JobUniverse==11),
$(PARALLEL_PRE_JOB_RANK), $(NORMAL_PRE_JOB_RANK) )
> ? (BTW, can I somehow avoid those "magic numbers"?)
> Anything I would have to add to *_ATTRS / *_EXPRS?
>
The default condor_config has things like:
VANILLA = 5
IsVanilla = (TARGET.JobUniverse == $(VANILLA))
So you could add
PARALLEL = 11
IsParallel = (TARGET.JobUniverse == $(PARALLEL))
And then use $(IsParalleL) in other expressions (e.g. N_P_J_R)
--
Ben Cotton
Systems Research Engineer
IT Research Systems
Purdue University