Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] 1.7.4rc2r30168 - warnings for pointer/integer of different size
From: Paul Hargrove (phhargrove_at_[hidden])
Date: 2014-01-09 04:18:55


And FWIW, all of those warnings occur on a Linux/x86 host with InfiniBand.
So, despite the platforms shown in my previous email the problem is not
related to use of NetBSD or Solaris.

/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/btl_openib.c:272:
warning: cast from pointer to integer of different size
/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c:1455:
warning: cast to pointer from integer of different size
/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_module.c:404:
warning: cast to pointer from integer of different size
/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_module.c:1345:
warning: cast to pointer from integer of different size
/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_component.c:884:
warning: cast to pointer from integer of different size
/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_send.c:138:
warning: cast to pointer from integer of different size
/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/fcoll/dynamic/fcoll_dynamic_file_read_all.c:591:
warning: cast to pointer from integer of different size
/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/fcoll/dynamic/fcoll_dynamic_file_read_all.c:606:
warning: cast to pointer from integer of different size
/home/pcp1/phargrov/OMPI/openmpi-1.7-latest-linux-x86/openmpi-1.7.4rc2r30168/ompi/mca/io/ompio/io_ompio.c:249:
warning: cast from pointer to integer of different size

-Paul

On Thu, Jan 9, 2014 at 1:07 AM, Paul Hargrove <phhargrove_at_[hidden]> wrote:

> The following three warnings occur on 32-bit targets, and can each be
> avoided by adding an intermediate cast to uintptr_t or intptr_t:
>
> -bash-4.2$ grep -B2 'different size' make.log
> CC fcoll_dynamic_file_read_all.lo
> /home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/fcoll/dynamic/fcoll_dynamic_file_read_all.c:
> In function 'mca_fcoll_dynamic_file_read_all':
> /home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/fcoll/dynamic/fcoll_dynamic_file_read_all.c:591:5:
> warning: cast to pointer from integer of different size
> /home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/fcoll/dynamic/fcoll_dynamic_file_read_all.c:606:9:
> warning: cast to pointer from integer of different size
> --
> CC io_ompio.lo
> /home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/io/ompio/io_ompio.c:
> In function 'ompi_io_ompio_generate_current_file_view':
> /home/phargrov/OMPI/openmpi-1.7-latest-netbsd6-i386/openmpi-1.7.4rc2r30168/ompi/mca/io/ompio/io_ompio.c:249:17:
> warning: cast from pointer to integer of different size
>
> The following additional warnings show up on a 32-bit Solaris system with
> InfiniBand.
> I've not looked at whether or not an (u)intptr_t cast is appropriate for
> these.
> $ grep -B2 'different size' make.log
> CC btl_openib.lo
>
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/btl_openib.c:
> In function 'check_if_device_support_modify_srq':
>
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/btl_openib.c:272:21:
> warning: cast from pointer to integer of different size
> --
> CC connect/btl_openib_connect_udcm.lo
>
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c:
> In function 'udcm_post_send':
>
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/openib/connect/btl_openib_connect_udcm.c:1455:17:
> warning: cast to pointer from integer of different size
> --
> CC btl_usnic_module.lo
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_module.c:
> In function 'prepare_src_small':
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_module.c:404:17:
> warning: cast to pointer from integer of different size
>
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_mo
> dule.c: In function 'usnic_send':
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_module.c:1345:21:
> warning: cast to pointer from integer of different size
> --
> CC
> btl_usnic_component.lo/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_component.c:
> In function 'usnic_component_progress':
>
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_component.c:884:28:
> warning: cast to pointer from integer of different size
> --
> CC
> btl_usnic_send.lo/shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_send.c:
> In function 'ompi_btl_usnic_finish_put_or_send':
> /shared/OMPI/openmpi-1.7-latest-solaris11-x86-ib-gcc452/openmpi-1.7.4rc2r30168/ompi/mca/btl/usnic/btl_usnic_send.c:138:21:
> warning: cast to pointer from integer of different size
>
>
> -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
>

-- 
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