dividing the program RRS feed

  • Question

  • hai friends

    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

    Friday, February 4, 2011 4:26 AM