[mpich-discuss] mpi program with argumets
Sole Eko
sole.eko at gmail.com
Thu Feb 26 07:23:24 CST 2009
Hi,
I would like to make example program cpi.c to be able to run wih one or more
arguments, for example:
mpiexec cpi.exe 1000
where 1000 is, say, number of rectangles.
I saw that MPI_Init(&argc,&arv) uses argumets passed to main method, but not
more than that..
how can I acheve passing number of rectangles to cpi.exe?
I attached original version of cpi.c
Sole
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090226/63f4f193/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cpi.c
Type: application/octet-stream
Size: 1514 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20090226/63f4f193/attachment.obj>
More information about the mpich-discuss
mailing list