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

[HTCondor-users] Same random value for batches of N jobs within a larger cluster?



Hi folks,

I've got a situation where I need to iterate over two values in a submit description, and the outer iterator should be tied to the same random number, so that all inner iterator runs have the same random value within each of the outer iterators.

So for A = 1..10 and B = 1..10, A1:B1..10 would have the same random value, A2:B1..10 would have another random value, and so on, out to the ten batches of ten tasks, for a total of ten random values.

The trouble is that $RANDOM_INTEGER() updates for each job, but batches of 10 jobs in the example above would need to share the same value.

I'm puzzling over whether there's some clever way to do this entirely in the submit description, ideally with varying numbers of outer iterators.

Maybe I'd just need to have an include command generate a scratch file with an appropriate-length list of random numbers from Perl or the shell or whatever, and "queue 10 from" that file?


Michael V. Pelletier
Principal Engineer
Information Technology
Future Technologies & Cloud
Integrated Defense Systems
Raytheon Company