mpicc(1)
π 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_nameis the name of the configuration file (profile) that loads the corresponding profiling library. The profiles are taken from<installdir>/<arch>/etc. πΈ-tor-traceβ Use the-tor-traceoption to link the resulting executable file against the Intel(R) Trace Collector library. Using this option has the same effect as the-profile=vtoption. π₯-trace-imbalanceβ Use the-trace-imbalanceoption 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=vtimoption. π«-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=vtmcoption. β-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-i8option of Intel(R) Fortran Compiler. π«Ά-dynamic_logβ Use this option in combination with the-toption 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 thempiicc,mpiicpc, andmpiifortIntel 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 formpiiccor 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-traceoption ofmpiiccor another Intel MPI Library compiler wrapper. TheI_MPI_{CC,CXX,F77,F90}_PROFILEenvironment variable overridesI_MPI_TRACE_PROFILE. βI_MPI_CHECK_PROFILEβ Set this environment variable to select a specific MPI checking library to be used with the-check_mpioption tompiiccor another Intel MPI Library compiler wrapper. TheI_MPI_{CC,CXX,F77,F90}_PROFILEenvironment variable overridesI_MPI_CHECK_PROFILE. βI_MPI_CHECK_COMPILERβ IfI_MPI_CHECK_COMPILERis set toenable, 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. π§Ό
π COPYRIGHT INFORMATION π
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
- arch rolling: intel-oneapi-toolkit 2026.0.1.27+c9c3d3e3_ddb4_490e_bb41_6e9041ba32a7-2 Β· LicenseRef-Intel-EULA-Developer-Tools AND LicenseRef-Intel-Simplified
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms