Peter,

at first glance, your test program looks correct.

can you please try to run
mpirun --mca osc pt2pt -np 4 ...

I  might have identified a bug with the sm osc component.

Cheers,

Gilles

On Tuesday, February 2, 2016, Peter Wind <peter.w...@met.no> wrote:

> Enclosed is a short (< 100 lines) fortran code example that uses shared
> memory.
> It seems to me it behaves wrongly if openmpi is used.
> Compiled with SGI/mpt , it gives the right result.
>
> To fail, the code must be run on a single node.
> It creates two groups of 2 processes each. Within each group memory is
> shared.
> The error is that the two groups get the same memory allocated, but they
> should not.
>
> Tested with openmpi 1.8.4, 1.8.5, 1.10.2 and gfortran, intel 13.0, intel
> 14.0
> all fail.
>
> The call:
>    call MPI_Win_allocate_shared(win_size, disp_unit, MPI_INFO_NULL,
> comm_group, cp1, win, ierr)
>
> Should allocate memory only within the group. But when the other group
> allocates memory, the pointers from the two groups point to the same
> address in memory.
>
> Could you please confirm that this is the wrong behaviour?
>
> Best regards,
> Peter Wind

Reply via email to