Hi, Am 28.10.2016 um 22:59 schrieb berg...@merctech.com:
> Some of our compute nodes have multiple versions of specific resources and > I'm looking for an easy way to enable users match their job requirement > against the per-node list. > > For example software package "foobar" might exist on the following nodes > with these versions: > > node_a: foobar 7, 7.5 > node_b: foobar 7, 7.5 > node_c: foobar 6.5 > node_d: foobar 7.5, 8 > node_e: foobar 7.5, 8 > > Is there a way to define a per-host complex attribute that consists of > a list of discrete values, so users can construct a submit command that > will do an execat (non-regex) match against the list? > > Using qconf syntax, this could be: > > qconf -mattr exechost complex_values versions=[7|7.5] node_a > qconf -mattr exechost complex_values versions=[6.5] node_c > qconf -mattr exechost complex_values versions=[7.5|8] node_d > > Then a user could run: > > qsub -l foobar=7.5 What about the opposite way (when "versions" is a RESTRING): qconf -mattr exechost complex_values versions=_7_7.5_ node_a qconf -mattr exechost complex_values versions=_6.5_ node_c qconf -mattr exechost complex_values versions=_7.5_8_ node_d Then a user could run: qsub -l "versions=*_7.5_*" ... The surrounding _ should avoid that *7* finds 7, 7.5 or 17 -- Reuti > and the job would run on either node_a or node_d. > > Is this possible wtih complex_values using SGE 8.1.6? > > I think I could achieve this with a JSV that takes the user-supplied > requirement for the 'foobar' version and does a lookup against an external > list, but that's not ideal. > > Thanks, > > Mark > _______________________________________________ > users mailing list > users@gridengine.org > https://gridengine.org/mailman/listinfo/users _______________________________________________ users mailing list users@gridengine.org https://gridengine.org/mailman/listinfo/users