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

Re: [HTCondor-users] passing request_cpus to job



On 6/4/2015 12:27 PM, Michael Di Domenico wrote:
Is it possible to pass the request_* parameters into a job?

for example

executable = someprog
log = log.$(cluster)
output = out.$(cluster).$(process)
request_cpus=4
request_memory=32000
queue 1


is there some way to pass the value of request_cpus to my exectuable?

So for instance you'd like HTCondor to invoke "someprog 4" if request_cpus=4 ? Take a peek at the below, note the use of the 'arguments' entry in the job submit file to specify command-line arguments to the job.

executable = someprog
arguments = $(request_cpus)
log = log.$(cluster)
output = out.$(cluster).$(process)
request_cpus=4
request_memory=32000
queue 1