<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">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>
<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=""></a>http://git.mpich.org/mpich.git 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">http://www.cs.uchicago.edu/people/hfujita</a><br>
<br>
</div>
</span></font></div>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">_______________________________________________<br>
discuss mailing list     discuss@mpich.org<br>
To manage subscription options or unsubscribe:<br>
<a href="https://lists.mpich.org/mailman/listinfo/discuss">https://lists.mpich.org/mailman/listinfo/discuss</a></div>
</span></font></div>
</body>
</html>