[petsc-users] Quad precision

Satish Balay balay at mcs.anl.gov
Thu Apr 28 14:15:59 CDT 2022


Hm - I don't find quadmath.h on M1

compute-macos-240-02:petsc svcpetsc$ which gcc-11
/opt/homebrew/bin/gcc-11
compute-macos-240-02:petsc svcpetsc$ find /opt/homebrew -name quadmath.h -print
compute-macos-240-02:petsc svcpetsc$ 

But I see it on intel box

compute-macos-240-01:~ balay$ which gcc-11
/usr/local/bin/gcc-11
compute-macos-240-01:~ balay$ find /usr/local -name quadmath.h
/usr/local/Cellar/gcc/11.3.0/lib/gcc/11/gcc/x86_64-apple-darwin21/11/include/quadmath.h
compute-macos-240-01:~ balay$ 


So perhaps this feature is missing with gcc on M1?

Satish

On Thu, 28 Apr 2022, Sanjay Govindjee wrote:

> I'm trying to set up some computations in quad precision on a
> new Mac (OS 12.3.1, M1 2020) and my homebrew gfortran (11.3.0) is complaining
> about real (kind=16).  In fact selected_real_kind(30,300) returns -1.
> 
> Has anyone else encountered this issue? and have a work around?
> 
> 


More information about the petsc-users mailing list