mpicc(1)

πŸ“¦ version 2026.0.1.27+c9c3d3e3_ddb4_490e_bb41_6e9041ba32a7, in arch rolling

πŸ’… mpicc(1) β€” the MPI compiler wrappers manual, bestie ✨

🌸 NAME 🌸

mpicc, mpifc, mpiicc, mpiifort, mpiicpc, mpigcc, mpigxx, mpif77, mpif90 β€” the whole squad that compiles and links MPI programs πŸ’–

πŸ’– DESCRIPTION πŸ’–

Okay so these commands can be used to compile and link MPI programs written in C, C++, and Fortran. They provide the options and any special libraries that are needed to compile and link MPI programs. ✨

bestie, this part is important: use this command, particularly when linking programs, because it provides the necessary libraries. No cap. 🫢

πŸŽ€ COMMAND LINE ARGUMENTS πŸŽ€

  • -static_mpi β€” Use this option to link the Intel(R) MPI Library statically. This option does not affect the default linkage method for other libraries. πŸ’…
  • -static β€” Use this option to link the Intel MPI Library statically. This option is passed to the compiler. ✨
  • -nostrip β€” Use this option to turn off the debug information stripping while linking the Intel MPI Library statically. πŸŽ€
  • -config=<name> β€” Use this option to source a compiler configuration file. The file should contain the environment settings to be used with the specified compiler. πŸ¦‹
  • -profile=<profile_name> β€” Use this option to specify an MPI profiling library. profile_name is the name of the configuration file (profile) that loads the corresponding profiling library. The profiles are taken from <installdir>/<arch>/etc. 🌸
  • -t or -trace β€” Use the -t or -trace option to link the resulting executable file against the Intel(R) Trace Collector library. Using this option has the same effect as the -profile=vt option. πŸ”₯
  • -trace-imbalance β€” Use the -trace-imbalance option to link the resulting executable file against the load imbalance tracing library of Intel Trace Collector. Using this option has the same effect as the -profile=vtim option. πŸ’«
  • -check_mpi β€” Use this option to link the resulting executable file against the Intel Trace Collector correctness checking library. Using this option has the same effect as the -profile=vtmc option. βœ…
  • -ilp64 β€” Use this option to enable partial ILP64 support. All integer arguments of the Intel MPI Library are treated as 64-bit values in this case. πŸ’…
  • -no_ilp64 β€” Use this option to disable the ILP64 support explicitly. This option must be used in conjunction with -i8 option of Intel(R) Fortran Compiler. 🫢
  • -dynamic_log β€” Use this option in combination with the -t option to link the Intel Trace Collector library dynamically. This option does not affect the default linkage method for other libraries. ✨
  • -g β€” Use this option to compile a program in debug mode and link the resulting executable file against the debugging version of the Intel MPI Library. πŸ›
  • -link_mpi=<arg> β€” Use this option to always link the specified version of the Intel MPI Library. πŸ”—
  • -O β€” Use this option to enable compiler optimization. ⚑
  • -fast β€” Use this option to maximize speed across the entire program. This option forces static linkage method for the Intel MPI Library. This option is supported only by the mpiicc, mpiicpc, and mpiifort Intel compiler wrappers. πŸš€
  • -echo β€” Use this option to display everything that the command script does. πŸ‘€
  • -show β€” Use this option to learn how the underlying compiler is invoked, without actually running it. πŸ”
  • -{cc,cxx,fc,f77,f90}=<compiler> β€” Use this option to select the underlying compiler. πŸ› οΈ
  • -compchk β€” Use this option to enable compiler setup checks. In this case, each compiler driver performs checks to ensure that the appropriate underlying compiler is set up correctly. βœ…
  • -v β€” Use this option to print the compiler wrapper script version and its underlying compiler version. πŸ’¬

🌈 ENVIRONMENT VARIABLES 🌈

  • I_MPI_{CC,CXX,FC,F77,F90}_PROFILE β€” Set this environment variable to select a specific MPI profiling library to be used by default. This has the same effect as using -profile=<profile_name> as an argument for mpiicc or another Intel MPI Library compiler wrapper. πŸ’–
  • I_MPI_TRACE_PROFILE β€” Set this environment variable to select a specific MPI profiling library to be used with the -trace option of mpiicc or another Intel MPI Library compiler wrapper. The I_MPI_{CC,CXX,F77,F90}_PROFILE environment variable overrides I_MPI_TRACE_PROFILE. ⭐
  • I_MPI_CHECK_PROFILE β€” Set this environment variable to select a specific MPI checking library to be used with the -check_mpi option to mpiicc or another Intel MPI Library compiler wrapper. The I_MPI_{CC,CXX,F77,F90}_PROFILE environment variable overrides I_MPI_CHECK_PROFILE. βœ…
  • I_MPI_CHECK_COMPILER β€” If I_MPI_CHECK_COMPILER is set to enable, the Intel MPI Library compiler wrapper checks the underlying compiler for compatibility. Normal compilation requires using a known version of the underlying compiler. πŸ”Ž
  • I_MPI_{CC,CXX,FC,F77,F90} β€” Set this environment variable to select a specific compiler to be used. Specify the full path to the compiler if it is not located in the search path. πŸ“
  • I_MPI_ROOT β€” Set this environment variable to specify the installation directory of the Intel MPI Library. πŸ“
  • VT_ROOT β€” Set this environment variable to specify the installation directory of the Intel Trace Collector. πŸ“‚
  • I_MPI_COMPILER_CONFIG_DIR β€” Set this environment variable to change the default location of the compiler configuration files. πŸ—‚οΈ
  • I_MPI_LINK β€” Set this variable to always link against the specified version of the Intel MPI Library. πŸ”—
  • I_MPI_DEBUG_INFO_STRIP β€” Turn on/off the debug information stripping while linking applications statically. 🧼

Intel, the Intel logo are trademarks of Intel Corporation in the U.S. and other countries.

* Other names and brands may be claimed as the property of others.

(C) Intel Corporation.


Signed with love by the mpicc(1) manual from MPI, dated 2016 β€” bye bestie, go compile and link something iconic πŸ’…βœ¨

πŸ“¦ where this page comes from