Monday, February 11, 2013

Display information about the Open MPI installation - ompi_info

ompi_info provides detailed information about the Open MPI installation. It is useful for checking local configuration and seeing how Open MPI was installed and listing of installed Open MPI Plugins and querying what MCA parameters they support. For more information, see man ompi_info

Sample Example of usage from MAN page

1. Show configuration Options
# ompi_info -c

Configured by: root
           Configured on: Sun Mar 27 22:06:50 SGT 2011
          Configure host: HeadNode.mycluster.com
                Built by: root
                Built on: Sun Mar 27 22:17:13 SGT 2011
              Built host: HeadNode.mycluster.com
              C bindings: yes
            C++ bindings: yes
      Fortran77 bindings: yes (all)
      Fortran90 bindings: yes
 Fortran90 bindings size: small
              C compiler: icc
     C compiler absolute: /opt/intel/composerxe-2011.2.137/bin/intel64/icc
             C char size: 1
             C bool size: 1
            C short size: 2
              C int size: 4
             C long size: 8
            C float size: 4
           C double size: 8
          C pointer size: 8
            C char align: 1
            C bool align: 1
             C int align: 4
           C float align: 4
          C double align: 8
.....
.....
.....

2. Output is displayed in a nice-to-read format
$ ompi_info --pretty

.....     

C compiler absolute: /opt/intel/composerxe-2011.2.137/bin/intel64/icc
            C++ compiler: icpc
   C++ compiler absolute: /opt/intel/composerxe-2011.2.137/bin/intel64/icpc
      Fortran77 compiler: ifort
  Fortran77 compiler abs: /opt/intel/composerxe-2011.2.137/bin/intel64/ifort
      Fortran90 compiler: ifort
  Fortran90 compiler abs: /opt/intel/composerxe-2011.2.137/bin/intel64/ifort
             C profiling: yes
           C++ profiling: yes
     Fortran77 profiling: yes
     Fortran90 profiling: yes
          C++ exceptions: no
          Thread support: posix (mpi: no, progress: no)
           Sparse Groups: no
  Internal debug support: no
     MPI parameter check: runtime
Memory profiling support: no
Memory debugging support: no
         libltdl support: yes
.....
.....
.....

3. Display All MCA Parameters For OpenIB

# ompi_info --param btl openib

.....
.....
.....  MCA btl: parameter "btl_openib_max_btls" (current value: "-1", data source: default value)
                          Maximum number of device ports to use (-1 = use all available, otherwise must be >= 1)
                 MCA btl: parameter "btl_openib_free_list_num" (current value: "8", data source: default value)
                          Intial size of free lists (must be >= 1)
                 MCA btl: parameter "btl_openib_free_list_max" (current value: "-1", data source: default value)
                          Maximum size of free lists (-1 = infinite, otherwise must be >= 0)
                 MCA btl: parameter "btl_openib_free_list_inc" (current value: "32", data source: default value)
                          Increment size of free lists (must be >= 1)
.....
.....
.....

If you are using TCP, you can use similar command

# ompi_info --param btl tcp


For more information, see Using MCA Parameters With mpirun

No comments: