You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling mpicc shmem.c and running with two or more processes on a single node/workstation everything looks good:
$ mpirun -prepend-rank -n 2 ./a.out
[0] Allocated shared memory segment: 1024 0
[0] Value of pointer: 0x7e5818510000
[0] Allreduce: 1024 2048
[0] Got winsize: 1024 0
[0] Value of pointer: 0x7e5818510000
[1] Allocated shared memory segment: 1024 0
[1] Value of pointer: 0x7052b7629400
[1] Allreduce: 1024 2048
[1] Got winsize: 1024 0
[1] Value of pointer: 0x7052b7629000
When running the program using a single process, the winsize and baseptr returned from MPI_Win_shared_query is null:
$ mpirun -prepend-rank -n 1 ./a.out
[0] Allocated shared memory segment: 1024 0
[0] Value of pointer: 0x561e2bf07560
[0] Allreduce: 1024 1024
[0] Got winsize: 0 0
[0] Value of pointer: (nil)
I tried the example with Open MPI and Intel MPI and both works as expected (i.e. I get a non-null pointer and winsize), both with a single and multiple processes.
Could this be a bug in MPICH? Thanks for all comments and help.
The text was updated successfully, but these errors were encountered:
I'm using MPICH 4.2.1 on Linux and have the example program:
When compiling
mpicc shmem.c
and running with two or more processes on a single node/workstation everything looks good:When running the program using a single process, the
winsize
andbaseptr
returned fromMPI_Win_shared_query
is null:I tried the example with Open MPI and Intel MPI and both works as expected (i.e. I get a non-null pointer and winsize), both with a single and multiple processes.
Could this be a bug in MPICH? Thanks for all comments and help.
The text was updated successfully, but these errors were encountered: