<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: times new roman,new york,times,serif; font-size: 12pt; color: #000000'><font face="times new roman, new york, times, serif" size="3">Hi,</font><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">I'm implementing an ADIO backend and I'm having problems retrieving values from the MPI_Info attached to the file.</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;">On the application side, I have something like this:</div><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><br></div><div><div><font face="times new roman, new york, times, serif"> MPI_Info_create(&info);</font></div><div><font face="times new roman, new york, times, serif"> MPI_Info_set(info,"cb_buffer_size","64");</font></div><div><font face="times new roman, new york, times, serif"> MPI_Info_set(info,"xyz","3");</font></div><div><font face="times new roman, new york, times, serif"> MPI_File_open(comm, "file", </font></div><div><font face="times new roman, new york, times, serif"><span class="Apple-tab-span" style="white-space: pre;"> </span>MPI_MODE_WRONLY | MPI_MODE_CREATE, info, &fh);</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif">then a call to a MPI_File_write, which ends up calling my implementation of ADIOI_xxx_WriteContig. In this function, I try to read back these info:</font></div><div><font face="times new roman, new york, times, serif"><br></font></div><div><font face="times new roman, new york, times, serif"><div> int info_flag;</div><div> char* value = (char *) ADIOI_Malloc((MPI_MAX_INFO_VAL+1)*sizeof(char));</div><div> ADIOI_Info_get(fd->info, "xyz", MPI_MAX_INFO_VAL, value,&info_flag);</div><div> if(info_flag) fprintf(stderr,"xyz = %d\n",atoi(value));</div><div> ADIOI_Info_get(fd->info, "cb_buffer_size", MPI_MAX_INFO_VAL, value,&info_flag);</div><div> if(info_flag) fprintf(stderr,"cb_buffer_size = %d\n",atoi(value));</div><div><br></div><div>I can get the 64 associated to the cb_buffer_size key (which is a reserved hint), but I don't get the second value.</div><div>Where does the problem come from?</div><div>I tried everything: re-ordering the calls, changing the name of the key, calling MPI_Info_get in the application to check that the values are properly set (they are)...</div><div><br></div><div>Thanks</div></font></div><br><div style="color: rgb(0, 0, 0); font-family: 'times new roman', 'new york', times, serif; font-size: 12pt;"><span name="x"></span><font size="2"><font size="3">Matthieu Dorier<br>
</font>PhD student at ENS Cachan Brittany and IRISA<br><a href="http://people.irisa.fr/Matthieu.Dorier">http://people.irisa.fr/Matthieu.Dorier</a></font><span name="x"></span><br></div></div></div></body></html>