Intel® MPI Library User's Guide for Linux* OS
Use the mpitune utility to find optimal settings for your specific application.
$ mpitune --application \”your_app\” –-output-file yourapp.conf
Where “your_app” is the exact command line you use to start your application. For example:
“mpitune –-application \"./my_test\" –-output-file $PWD/my_test.conf
Tuned settings are saved in yourapp.conf file. To apply them, call mpirun as:
$ mpirun -tune $PWD/yourapp.conf -perhost 8 –n 64 ./your_app
“your_app” is not only executable file but any script which can be started as a separate process.
The script should not change the I_MPI_* variables.