Then click on Build and the resulting executable will be placed in the foler c:\Users\\Documents\Visual Studio 2010\Projects\hello_MPI\Debug\ Then write the program adding a new C File in Source Files and give it the name hello_MPI.cpp. In case you do not have access to any cluster and simply want to run the program in your local computer, edit the variable Run Environment and in the window that pops up choose localhost and the number of concurrent processes (eg. In the Configuration Properties > Debugging menu choose Local Windows Debugger : MPI Cluster Debugger In the Configuration Properties > Linker > Input menu and the variable Additional Dependencies add the library msmpi.lib In our example the path is C:\Program Files\Microsoft HPC Pack 2012. In the Configuration Properties > VC Directories menu add the folders Inc and Lib\i386 from the path where MS HPC Pack 2012 was installed. Right clicking on Project choose Properties In Application Settings click on Empty Project The following example is based on Visual Studio 2010.Ĭreate a new Win32 Console Application Project and give it any namme (here we caled it hello_MPI).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |