Luis,

you can do this:

struct ompi_info_t * info = &ompi_mpi_info_null.info;
ret = ompi_win_create_dynamic(&info_null->super, comm, win);

Cheers,

Gilles

On Fri, May 15, 2020 at 7:38 PM Luis via devel <devel@lists.open-mpi.org> wrote:
>
> Hi OMPI devs,
>
> I was wondewring if this warning is expected, if not, how should we
> internally call ompi_win_create_dynamic?
>
> res = ompi_win_create_dynamic(MPI_INFO_NULL, comm, &win);
>                                  ^~~~~~~~~~~~~
> In file included from pnbc_osc_internal.h:40,
>                  from pnbc_osc_iallreduce.c:21:
> ../../../../ompi/win/win.h:143:42: note: expected ‘opal_info_t *’ {aka
> ‘struct opal_info_t *’} but argument is of type ‘struct ompi_info_t *’
>  int ompi_win_create_dynamic(opal_info_t *info, ompi_communicator_t
> *comm, ompi_win_t **newwin);
>
>
> Regards,
> Luis
> The University of Edinburgh is a charitable body, registered in Scotland, 
> with registration number SC005336.

Reply via email to