On 09/23/2013 12:05 AM, Tiago Macarios wrote:
Hi, I was wondering is there a way to make "request_cpus" request the "remaining CPUs" of a machine and pass that number to the job? For example if a machine has 3 cores available the job would be assigned to that machine and the "3 cpus" would be passed to the executable, so that OpenMP instructions can be enabled and set to 3. Cheers, Tiago
request_cpus actually takes an expression. So you can have request_cpus = Cpus. You can find the number of cpus you got in the .machine.ad file available to your job. You might be able to use arguments = $$(Cpus).
Best, matt