MPI
-
יום ראשון 10 אוקטובר 2010 02:42
i am using windows 7
i am interested in doing mpi programs on my computer
i dont know any thing,i had gone through some procedures but no use
can some one give me detailed description on how to install and execute one single program
כל התגובות
-
יום ראשון 10 אוקטובר 2010 20:32
Hello,
You can download the redistributed MSMPI pack from the site:
After the installation, the following are the ENVs which you may need to compile and link your applications: (the values will vary based on your installation choice):
MSMPI_INC=C:\Program Files\Microsoft HPC Pack 2008 R2\Inc\
MSMPI_LIB32=C:\Program Files\Microsoft HPC Pack 2008 R2\Lib\i386\
MSMPI_LIB64=C:\Program Files\Microsoft HPC Pack 2008 R2\Lib\amd64\The following is Microsoft technet link which you may refer to start to write your MPI application:
http://technet.microsoft.com/en-us/library/cc720120(WS.10).aspx
Thanks,
James
- הוצע כתשובה על-ידי Don PatteeModerator יום שישי 04 פברואר 2011 19:46
-
יום רביעי 13 אוקטובר 2010 06:01
i have successfully installed mpich2 ,and .net framework
then i had also sucessfully executed pi.exe by just double clicking it
......................ok
but
i dont know how to execute programs by cmd prompt
i have example program as,
#include "mpi.h"
#include <stdio.h>
int main( int argc, char *argv[] )
{
MPI_Init( &argc, &argv );
printf( "Hello World\n" );
MPI_Finalize();
return 0;
}
please can u guide me in successfully executing the above program
also i dont know no in what extension to save the above program
farooq -
יום שלישי 16 נובמבר 2010 19:39
Hello,
You can save the file as .cpp or just .c file
After you compile it, you can execute with
mpiexec -n 2 [youappname].exe, it will have output like:
Hello World
Hello World
For the usage of mpiexec, please type mpiexec /? for more details.
Thanks,
James
-
יום רביעי 01 דצמבר 2010 02:39
ok its clear for me now
u can help me now in creating the .exe file for helloworld program
please ............
farooq -
יום חמישי 16 דצמבר 2010 21:03
Hello,
You can compile the HelloWorld.c and get your executable. If you have Visual Studio installed, this is a good site you can follow to compile your mpi app:
http://blogs.msdn.com/b/risman/archive/2009/01/04/ms-mpi-with-visual-studio-2008.aspx
Thanks,
James
-
יום שני 27 דצמבר 2010 00:28when iam building the project i am getting the folowing erorr >LINK : error LNK2001: unresolved external symbol _mainCRTStartup
farooq -
יום שלישי 04 ינואר 2011 18:31
Did you use the /NODEFAULT lib option? If so, you may remove it and try again.
You can find this option in: Linker->Input->Ignore All Default Libraries.
Thanks,
James
-
יום שני 12 ספטמבר 2011 17:08This sample deals with c++, are there samples available in c# for inter-process communications.
Prasenna -
יום שני 18 יוני 2012 16:48
Hi Prasenna,
Check out the parallel dwarfs at http://paralleldwarfs.codeplex.com. Here you will find example programs that use MPI and MPI.NET that you can compare.
Best,
Robert
- הוצע כתשובה על-ידי Prasenna Kannan יום שישי 22 יוני 2012 12:56
-
יום שישי 22 יוני 2012 12:56Thanks Robert..
Prasenna