Running multithreaded / multi-CPU apps

  • khusid
Posted: Wed, 07/07/2010 - 10:40

I was wondering if you could provide some guidence on setting up NC to run multi-threaded and multi-CPU apps.

In case of multi-threaded, one way I can think of is to control 'CPUS' resource.  For example, a single-threaded job would request -r+ CPUS/1  and 4-threaded -r+ 4/CPUS.  Would this work, any pitfalls?  How can default all jobs to request 1 CPU (i.e. decrement CPU count)a

thanks in advance

max