Recently, algorithm analysis jobs need to be handed in. Learn MPI. Below is a post on Basic Environment Configuration
Environment configuration for MPI parallel programming
Mpich2 and VC ++ 6.0
(1) Installation of VC ++ (omitted)
(2) install mpich2 (omitted)
(3) Under directories in tools> options in VC ++ 6.0, add the include directory of mpich2 under the include files option, such as: C: /program files/mpich2/include; Add the lib directory of mpich2 under the library files option, such as C:/program files/mpich2/lib, from then on, you can use the MPI library in VC, instead of setting
(4) After each project is created, under project-> Settings, under the link tab, add MPI. lib to the object/library modules.
(5) In the program # include "MPI. H "before adding # define mpich_skip_mpicxx, this is because the CPP Io library conflicts with the macro definition in the MPI header file. After adding this definition, you can skip the mpicxx definition during compilation.
(6) After mpich2 is installed, there are several mpich2programs in the Start Menu> program. wmpiregister.exe registers an account. This account must be an existing account of the current system and must have administrator privileges (Note: setting is a setup program, after setting the account, you do not need to set it again here. If you have set it correctly before, click scan hostsand the name in the hostsdirectory should be green. Run your program with wmpiexec.exe. After setting the number of parallel programs, you can run it.