hello, i have some questions about MPI-I/O.<div><br></div><div>1) when i trying execute my program using MPI-I/O. why when iam execute with 1 proses, execute time more good than when iam execute with 2 proses. am i wrong? this is my source code.</div>
<div><div>       MPI_File_open (MPI_COMM_WORLD, file_akhir, MPI_MODE_CREATE | MPI_MODE_WRONLY, MPI_INFO_NULL, &hasil);</div><div>        int jumlah1 = (((block-1)*16)+pad);</div><div>           int  jumlah = jumlah1 / size;</div>
<div>            </div><div> </div><div>              MPI_File_set_view(hasil, rank * jumlah * sizeof(char),MPI_CHAR, MPI_CHAR, "native", MPI_INFO_NULL);</div><div>              MPI_File_write (hasil, output, jumlah1, MPI_CHAR, MPI_STATUS_IGNORE);</div>
<div>        </div><div>        MPI_File_close(&hasil);</div><div><br></div><div>2) and after that i have compared that source using MPI - I/O and with sequential I/O, apparently, sequential i / o is better than the parallel i / o. how it could be happen? this is my sequential source. <br>
<div>if (rank==0) {</div><div>       </div><div>        hasil = fopen (file_akhir, "wb");</div><div>        int test = (((block-1)*16)+pad);</div><div>          fwrite (output, sizeof(char), test, hasil );</div>
<div>       fclose (hasil);</div><div>     }</div></div><div>        </div></div><div>thanks a lot for your attention</div>