Am 26.07.2011 um 22:23 schrieb Wagner, Justin:

> I am wondering if there is a way that I can group complex resource attributes 
> together in the following manner.
> 
> Say a job is launched with 'qsub ... -l group_a=1'
> 
> Then it would know that every complex resource attribute listed in group_a is 
> requested and how much of each resource is requested.
> 
> I am thinking of an application we have were there can be multiple licenses 
> required for a particular job.  And we have a limited number of job types.  
> So we would just maintain a list of which licenses are required for each job 
> type.  And then by specifying '-l group_a=1' would tell us that all the 
> complex resources defined in group_a are needed.  (group_a being the 
> identifier for a particular job type)
> 
> I realize that I can do this by just explicitly stating each license required 
> as '-l license_a=1 license_b=1, etc...' but I want to simplify the script 
> used to generate our qsub commands.
> 
> Can anybody think of another way of accomplishing what I have explained?

You can use a JSV to change an arbitrary request to the desired hard resource 
request. Althought the best would be to use a RESTRING complex from the user's 
point of view, it seems necessary for now to use either and environment 
variable "-v request=group1" or a job context "-ac request=group2" which you 
can check in the JSV and real resource requests as necessary.

Another mail will follow.

-- Reuti
_______________________________________________
users mailing list
[email protected]
https://gridengine.org/mailman/listinfo/users

Reply via email to