[mpich-discuss] dividing the program

farooq farooq farooqnmd1220 at gmail.com
Wed Feb 2 23:15:06 CST 2011


hai friends

i am new user now
i am working on parallel programs
---------i want to devide the program such that
 p=26 is the integer
stri[30][100] is the string empty array
and i want to broadcast the p value to all the processes then to
execute the following code
for (k=myrank+1;k<=p;k+=size)
{
 here i am doing some manipulations on the some string string say exstr[]
 and store the result in the stri[k][100]
}
at last i want to gather the result in
stri[][] sequentially from all the processes
and print the result of all processes sequentially from str[][]
some one please help me in writing the code
expecting the reply as early as possible
-- 
--------------------farooq


More information about the mpich-discuss mailing list