Re: [mpich-discuss] MPI i/o like fopen (filename, "rb")
You can Google or go to http://www.mcs.anl.gov/research/projects/mpi/www/www3/ to get documentation for how to use the following commands: MPI_File_get_size MPI_File_open MPI_File_read MPI_File_write MPI_File_close These are the ones you need to do a straightforward conversion of your code. Best, Jeff On Fri, Nov 16, 2012 at 11:34 AM, Muhammad Zulfikar Handana <[email protected]> wrote:
dear, i have a little confused about MPI i/o, because iam new for this programming. i have some question. if i want make some program with this code
1)
int get_size(char *filename) { struct stat buf; stat(filename,&buf); int j =buf.st_size;
return j; }
2) key = fopen(key_file, "rb"); fread(Kunci, pk, 1, key); for(i=0;i<Nk*4;i++) Key[i]=Kunci[i];
3) hasil = fopen (file_akhir, "wb"); for (k=0;k<(((block-1)*16)+pad);k++) { fputc(output[k], hasil); } fclose (hasil);
how to translate that code into MPI i / o ? thanks a lot for your attention
Regards
Handana
_______________________________________________ discuss mailing list [email protected] To manage subscription options or unsubscribe: https://lists.mpich.org/mailman/listinfo/discuss
-- Jeff Hammond Argonne Leadership Computing Facility University of Chicago Computation Institute [email protected] / (630) 252-5381 http://www.linkedin.com/in/jeffhammond https://wiki.alcf.anl.gov/parts/index.php/User:Jhammond
participants (1)
-
Jeff Hammond