Multi-threaded Applications

To run OpenMP* application and pin threads inside the domain, make sure the KMP_AFFINITY environment variable is set to use the corresponding OpenMP* feature.

Run the application:

  $ mpirun –genv OMP_NUM_THREADS 4 -n <# of processes> ./myprog

For more details see the Interoperability with OpenMP* topic in the Intel® MPI Library Reference Manual for Linux* OS.