LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Loerenz Praeiji (loerenz_at_[hidden])
Date: 2007-11-22 19:48:59


Is there a way to set the number of processors from within the source
code in MPI? I want to develop an application that evaluates the
number of processors needed depending on custom command line
arguments. If this is impossible, is there a way to set the number of
processors via an environment variable? Or is using "mpirun -np" the
only way?

Thanks in advance,

-- 
Loerenz Praeiji