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

Re: [HTCondor-users] passing request_cpus to job



On 06/04/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



As of condor 8.3.5, the RequestCpus value is in the OMP_NUM_THREADS environment variable of the job, otherwise, the job classad is in the file pointed at by the environment variable _CONDOR_JOB_AD, and you can grep all the Request*'s from there, it will look something like

RequestCpus = 4

Or, you could pass it as a command line argument to the job or an environment variable via the job description file's arguments or environment command.

-greg