<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Mon, Feb 9, 2015 at 12:29 PM, Hajime Fujita <span dir="ltr"><<a href="mailto:hfujita@uchicago.edu" target="_blank">hfujita@uchicago.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hello,<br>
<br>
I think I found an issue in MPI_Win_get_attr, when MPI_WIN_SIZE is specified. It is supposed to return the size of the window, but it seems to give a random number.<br>
<br>
Just wanted to confirm one thing: I think MPI_Win_get_attr is supposed to return a value of type MPI_Aint, when MPI_WIN_SIZE is specified. Is it correct?<br></blockquote><div><br></div><div>No. According to p415 of MPI-3.0 spec, in C bindings, MPI_Win_get_attr(..., MPI_WIN_SIZE, &size, ...) return in size "pointer" to the size of the window. In Fortran bindings, it returns a value instead. </div>







<div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
<br>
Test program:<br>
See the attached file<br>
<br>
Result I got:<br>
hfujita@lssg-lp-00:~/work/mpi_win_size_test$ ./win_size_test<br>
Got size=140729394560728, while expecting 1024<br>
hfujita@lssg-lp-00:~/work/mpi_win_size_test$ ./win_size_test<br>
Got size=139994694213336, while expecting 1024<br>
hfujita@lssg-lp-00:~/work/mpi_win_size_test$ ./win_size_test<br>
Got size=139739628887768, while expecting 1024<br>
hfujita@lssg-lp-00:~/work/mpi_win_size_test$ ./win_size_test<br>
Got size=140131810524888, while expecting 1024<br>
hfujita@lssg-lp-00:~/work/mpi_win_size_test$ ./win_size_test<br>
Got size=139859819581144, while expecting 1024<br>
<br>
Expected result:<br>
If the MPI library works as I expected, the test program won’t show any message.<br>
<br>
MPICH version and configuration:<br>
$ mpichversion<br>
MPICH Version:          3.2a2<br>
MPICH Release date:     unreleased development copy<br>
MPICH Device:           ch3:nemesis<br>
MPICH configure:        CC=gcc CXX=g++ FC=gfortran F77=gfortran CFLAGS=-O0 --prefix=/home/hfujita/opt/mpich-3.2 --disable-mpe --disable-romio --enable-g=all --enable-spawn --enable-maintainer-mode --enable-error-checking=all --with-pm=hydra --with-pmi=simple --disable-cxx --enable-fortran --enable-strict=noopt --disable-fast --disable-perftest --no-create --no-recursion<br>
MPICH CC:       gcc -O0   -Wall -Wextra -Wno-missing-field-initializers -Wmissing-prototypes -DGCC_WALL -Wno-unused-parameter -Wno-unused-label -Wshadow -Wmissing-declarations -Wno-long-long -Wundef -Wno-endif-labels -Wpointer-arith -Wbad-function-cast -Wwrite-strings -Wno-sign-compare -Wno-multichar -Wno-deprecated-declarations -Wpacked -Wnested-externs -Winvalid-pch -Wno-pointer-sign -Wvariadic-macros -Wno-format-zero-length -Wtype-limits -Werror-implicit-function-declaration -D_POSIX_C_SOURCE=200112L -std=c99 -D_STDC_C99= -g -O0<br>
MPICH CXX:      no   -g<br>
MPICH F77:      gfortran   -g -O0<br>
MPICH FC:       gfortran   -g -O0<br>
<br>
Git revision info:<br>
I got the MPI source from git (<a href="http://git.mpich.org/mpich.git" target="_blank">http://git.mpich.org/mpich.git</a> master) and the id is 7dfe2840<br>
<br>
Platform:<br>
Ubuntu 12.04 amd64<br>
<br>
<br>
Thanks,<br>
Hajime<br>
<br>
--<br>
Hajime Fujita<br>
Postdoctoral Scholar, Large-Scale Systems Group<br>
Department of Computer Science, The University of Chicago<br>
<a href="http://www.cs.uchicago.edu/people/hfujita" target="_blank">http://www.cs.uchicago.edu/people/hfujita</a><br>
<br>
<br>_______________________________________________<br>
discuss mailing list     <a href="mailto:discuss@mpich.org">discuss@mpich.org</a><br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss" target="_blank">https://lists.mpich.org/mailman/listinfo/discuss</a><br></blockquote></div><br></div></div>