Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] One-line patch for warning in 1.7rc6
From: Ralph Castain (rhc_at_[hidden])
Date: 2013-01-25 21:21:39


I believe we turned that component completely off, though it may have happened after rc6 was rolled (I'll check to make sure we did) - you definitely don't want to build it as it is broken and will often segfault.

On Jan 25, 2013, at 6:16 PM, Paul Hargrove <phhargrove_at_[hidden]> wrote:

> While building 1.7rc6 on a i386 w/ InfiniBand I saw numerous instances of this warning:
> ../../../../../orte/mca/oob/ud/oob_ud.h:93: warning: cast from pointer to integer of different size
>
> The following 1-line change fixes this.
> Alternatively, a single cast to type uintptr_t is probably sufficient.
>
> --- openmpi-1.7rc6/orte/mca/oob/ud/oob_ud.h~ 2013-01-25 18:03:20.000000000 -0800
> +++ openmpi-1.7rc6/orte/mca/oob/ud/oob_ud.h 2013-01-25 18:03:37.000000000 -0800
> @@ -90,7 +90,7 @@ static inline void mca_oob_ud_fill_recv_
> static inline void mca_oob_ud_fill_sge (struct ibv_sge *sge, void *addr,
> uint32_t length, uint32_t lkey)
> {
> - sge->addr = (uint64_t)addr;
> + sge->addr = (uint64_t)(uintptr_t)addr;
> sge->length = length;
> sge->lkey = lkey;
> }
>
>
> -Paul
>
> --
> Paul H. Hargrove PHHargrove_at_[hidden]
> Future Technologies Group
> Computer and Data Sciences Department Tel: +1-510-495-2352
> Lawrence Berkeley National Laboratory Fax: +1-510-486-6900
> _______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel