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

Re: [Condor-users] Obtaining slot-number in a job



What about SlotID?

-B

On 2010-08-04, at 7:40 PM, William Brodie-Tyrrell wrote:

> Hi all,
> 
> I'm new to Condor and trying to run an old program that makes use of shared memory.  I would like to run 4 copies on each host (4-way SMP boxes) but they conflict with each other unless given a unique argument, i.e. the slot-number.
> 
> Is there any variable akin to $(process) and $(cluster) to obtain the slot number?  I also tried $$(slot), thinking that the value would be resolved only when the job is allocated to a particular execute machine, but the job gets held with "Cannot expand $$(slot)".
> 
> I would like to avoid trying to parse the user-ID inside my jobs or using lock-files to allocate shm slots.
> 
> 
> thanks,
> 
> --
> William Brodie-Tyrrell, B.E, Ph.D
> Systems Engineer
> Modelling & Analysis
> 
> Direct + 61 8 8343 3376
> william.brodie-tyrrell@xxxxxxxxxxxxxxxx<mailto:william.brodie-tyrrell@xxxxxxxxxxxxxxxx>
> 
> Saab Systems
> 21 Third Avenue, Mawson Lakes
> SA 5095 Australia
> www.saabsystems.com.au<http://www.saabsystems.com.au/>
> ------------------------
> This e-mail is private and confidential between the sender and the addressee.
> In the event of misdirection, the recipient is prohibited from using, copying or
> disseminating it or any information in it. Please notify the above if any misdirection
> 
> _______________________________________________
> Condor-users mailing list
> To unsubscribe, send a message to condor-users-request@xxxxxxxxxxx with a
> subject: Unsubscribe
> You can also unsubscribe by visiting
> https://lists.cs.wisc.edu/mailman/listinfo/condor-users
> 
> The archives can be found at:
> https://lists.cs.wisc.edu/archive/condor-users/