[petsc-dev] annoying MPI Attribute type warnings

Barry Smith bsmith at mcs.anl.gov
Sat Apr 25 22:27:00 CDT 2015


  Satish, 

     Thanks, based on this 

#undef MPICH_DEFINE_ATTR_TYPE_TYPES
#if defined(__has_attribute)
#  if __has_attribute(pointer_with_type_tag) && \
      __has_attribute(type_tag_for_datatype) && \
      !defined(MPICH_NO_ATTR_TYPE_TAGS)


   what about defining MPICH_NO_ATTR_TYPE_TAGS and just turn off this type checking until this gets fixed?

   Everyone, what are your thoughts?

  Barry

> On Apr 25, 2015, at 10:04 PM, Satish Balay <balay at mcs.anl.gov> wrote:
> 
> Barry,
> 
> I tried a build with mpich-3.2b2 - the messages persist.
> 
> Satish
> 
> --------
> 
> 
> /scratch/petsc/petsc/src/dm/interface/dm.c:1702:47: warning: argument type 'const PetscScalar *' (aka 'const double *') doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
>    ierr = PetscSFBcastBegin(sf, MPIU_SCALAR, gArray, lArray);CHKERRQ(ierr);
>                                 ~~~~~~~~~~~  ^~~~~~
> 
> 
> etc..
> 
> 
> On Sat, 25 Apr 2015, Barry Smith wrote:
> 
>> 
>>  Satish,
>> 
>>   Does the latest beta release of MPICH resolve the warning below? I am really getting sick of this think hanging around so long and no one seeming to care.
>> 
>>   Thanks,
>> 
>>   Barry
>> 
>>> 
>>> src/dm/interface/dm.c:1903
>>>   [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/04/25/build_master_arch-linux-pkgs-dbg-ftn-interfaces_crank.log]
>>>     /sandbox/petsc/petsc.clone-3/src/dm/interface/dm.c:1903:48: warning: argument type 'const PetscScalar *' (aka 'const double *') doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
>>> 
>>> src/dm/interface/dm.c:1996
>>>   [http://ftp.mcs.anl.gov/pub/petsc/nightlylogs/archive/2015/04/25/build_master_arch-linux-pkgs-dbg-ftn-interfaces_crank.log]
>>>     /sandbox/petsc/petsc.clone-3/src/dm/interface/dm.c:1996:46: warning: argument type 'const PetscScalar *' (aka 'const double *') doesn't match specified 'MPI' type tag that requires 'double *' [-Wtype-safety]
>>> 
>>> ----
>>> To opt-out from receiving these messages - send a request to petsc-dev at mcs.anl.gov.
>> 
>> 
> 




More information about the petsc-dev mailing list