MPI
mpicc, mpic++, mpicxx mpiexec, mpirun mpichversion
mpicc 仅可编译 .c 文件,编译 .cpp文件会报错 mpic++ 编译 .cpp 文件
MPI标准的不同实现:MPICH、MVAPICH、MVAPICH2、Open MPI
mpicc, mpic++, mpicxx mpiexec, mpirun mpichversion
mpicc 仅可编译 .c 文件,编译 .cpp文件会报错 mpic++ 编译 .cpp 文件
MPI标准的不同实现:MPICH、MVAPICH、MVAPICH2、Open MPI
The difference between these two variables is that environment variables can be interviewed by child processes, i.e. the so-called global variables are only shared within the process hierarchy of the current process(进程链), existing only between the current process and its child processes. Environment variables of other processes and those of the current process are not shared. But Shell variables can only be interviewed by current process.
It should be noted that the usage of site a variable in makefile is different from using it in shell.