Hi, Werner: Condor cgroups can limit the usage of cpus at job level, but it works only when there is contention for the cpu. Cheers,Gang On 12/12/2014 11:52, Werner Hack wrote:
Hi all, we are running a lot of matlab jobs here. Due to the fact matlab attempts to allocate all cpu cores on a node, we limit cpu usage to a single core using the matlab command option "-singleCompThread" or the function maxNumCompThreads(1) in matlabrc. This is Ok for most cases. But what can I do, if I want to use more cores/threads (request_cpus >1) in matlab? Can HTCondor provide any info to the matlab job (environment variable? ) about the assigned request_cpus? If I check all environment variables in a job I can not see such info. Any ideas? Regards, Werner |