How do I determine the number of cpus I have allocated in a batch job?
For cherax users: A script called ‘getnumcpus.pl’ is available that will print to standard output the number of cpus available to your batch job (or indeed interactive shell). This is useful where you need to specify the number of cpus in multiple places withing your script. eg. OpenMP and MPI use Here are some notes on Using getnumcpus.
Related Questions
- How does the analyst collect the information needed to determine the Job requirements and what functions are actually being performed?
- I need to run "cvs update" at the beginning of my batch job. How do I execute "cvs update" from batch?
- How do I determine the number of cpus I have allocated in a batch job?