If you are running Ubuntu, it is strongly suggested to use a package manager like aptitude or synaptic to download and install packages, instead of doing so manually via this website. So instead of installing manually, use: $ sudo apt install mpich Reading package lists. Done Building dependency tree Reading state information.
![]() ![]()
Alternatively, you can use the command line to compile and link your program (replacing steps 1-6 above). Note that I have added “C:Program Files (x86)Microsoft Visual Studio 12.0VCbinamd64” to my path environment variable so that cl.exe and link.exe are available.
To compile your program into .obj files:
cl /I'C:Program Files (x86)Microsoft SDKsMPIInclude' /I'C:Program Files (x86)Microsoft SDKsMPIIncludex64' /I. /I'C:Program Files (x86)Microsoft SDKsWindowsv7.1AInclude' /I'C:Program Files (x86)Microsoft Visual Studio 12.0VCinclude' /c MPIHelloWorld.cpp Linking the .obj files: link /machine:x64 /out:MpiHelloWorld.exe /dynamicbase 'msmpi.lib' /libpath:'C:Program Files (x86)Microsoft SDKsMPILibx64' /LIBPATH:'C:Program Files (x86)Microsoft Visual Studio 12.0VClibamd64' /LIBPATH:'C:Program Files (x86)Microsoft SDKsWindowsv7.1ALibx64' MPIHelloWorld.obj
Please feel free to contact the MS-MPI team should you have any questions, or have suggestions for things you would like to see on this blog. You can reach us at [email protected]
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |