[mpich-discuss] MPI i/o like fopen (filename, "rb")
Muhammad Zulfikar Handana
zulfikarhandana at gmail.com
Fri Nov 16 11:34:23 CST 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mpich.org/pipermail/discuss/attachments/20121117/1e39054f/attachment.html>
More information about the discuss
mailing list