• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cxx/H08-Oct-2012-7855

developers/H08-Oct-2012-308234

f77/H08-Oct-2012-14897

f90/H08-Oct-2012-8638

mpiexec/H08-Oct-2012-

windows/H08-Oct-2012-6,4535,451

.codingcheckH A D02-Nov-2007617 2218

Makefile.amH A D04-Oct-20123.3 KiB9848

Makefile.inH A D08-Oct-201236.8 KiB1,069953

READMEH A D02-Nov-20072.1 KiB5338

child.cH A D02-Nov-2007678 3319

cpi.cH A D02-Nov-20071.5 KiB6546

cpi.vcprojH A D02-Jul-20108 KiB375374

examples.slnH A D02-Jul-201013 KiB178177

hellow.cH A D02-Nov-2007455 2213

icpi.cH A D02-Nov-20071.8 KiB7454

parent.cH A D02-Nov-20071 KiB4527

pmandel.cH A D31-Aug-201045.3 KiB1,4691,083

pmandel.vcprojH A D02-Jul-20108 KiB373372

pmandel_fence.cH A D31-Aug-201046.7 KiB1,5501,216

pmandel_fence.vcprojH A D02-Jul-20108.1 KiB373372

pmandel_service.cH A D31-Aug-201044.5 KiB1,4031,058

pmandel_service.vcprojH A D02-Jul-20108.1 KiB373372

pmandel_spaserv.cH A D31-Aug-201046.4 KiB1,4411,104

pmandel_spaserv.vcprojH A D02-Jul-20108.1 KiB373372

pmandel_spawn.cH A D31-Aug-201048.7 KiB1,5611,156

pmandel_spawn.vcprojH A D02-Jul-20108.1 KiB373372

spawn_merge_child1.cH A D02-Nov-20071.1 KiB4525

spawn_merge_child2.cH A D02-Nov-2007694 3319

spawn_merge_parent.cH A D02-Nov-20071.8 KiB6845

spawntest.vcprojH A D02-Nov-20073.5 KiB139138

srtest.cH A D02-Nov-20071.6 KiB5642

README

1Example MPI programs
2
3This directory contains some example MPI programs.  They are described below.
4Examples of MPI programs in Fortran 77, Fortran 90, and C++ are found in the
5directories f77, f90, and cxx respectively.
6
7cpi - A simple program to compute pi
8
9Optional programs
10These programs are not built by default, but may be built and run
11
12hellow - A simple "hello world" program
13icpi - An interactive version of cpi
14
15parent and child - A simple example of using MPI_Comm_spawn
16
17pmandel* - Programs to solve the Mandelbrot set
18
19Running the pmandel* programs
20-----------------------------
21 The programs pmandel* solve the Mandelbrot set. The input to the program
22 are the coordinates, scale etc for plotting the output of the program and the
23 number of iterations to solve the set. The output is an image file (default is
24 pmandel.ppm) of the Portable Pixel Map format. Help on using the program can
25 be obtained by running the executable with "-help" parameter.
26
27 To run the pmandel* tests you can either run it in the interactive mode (-i option)
28 or run it in a non-interactive mode. In the interactive mode the output of the
29 program is saved as an image file (you can specify the name of the file using -out
30 option of the program). In the non-interactive mode you need a visualizer for the
31 output (A Visualizer is available in Windows. Compile the project pman_vis for the
32 visualizer.).
33 Non-interactive execution eg --
34	mpiexec -n 2 pmandel -i
35 (The program prompts for entering the coordinates, scales and no of iterations
36  and output is saved in pmandel.ppm file)
37
38 Interactive execution eg --
39	mpiexec -n 2 pmandel
40
41  (Now open the visualizer program, pman_vis.exe, created by compiling pmandel_vis
42   project in windows. Click on File -> Connect and select "TCP Socket Connect".
43   Leave the default settings and click connect. The visualizer program connects to
44   pmandel program and displays the output)
45
46 pmandel* programs differ in the MPI functionalities used. For example,
47 pmandel_service.c uses MPI_Open_Port() to connect to the visualizer while pmandel.c
48 uses the sockets directly for the connection.
49
50
51Others will be documented later.
52
53