apple silicon fortran

Jerry DeLisle jvdelisle2@gmail.com
Sat Jan 9 17:29:40 GMT 2021


Hi all,

https://jaimyn.com.au/how-to-build-multi-architecture-docker-images-on-an-m1-mac/

Above link build a docker containers on the subject machine.

I have a DockerFile that as all the good working.

Ask if you would like a copy.  I will post to my gfortran-dev slack channel.

https://gfortran.slack.com/archives/C013YLPNVS8/p1610212997054700

To build:   sudo docker build . -t fed1

To run:  sudo docker run -it fed1 /bin/bash

Cheers,

Jerry

On 1/8/21 2:18 PM, Thomas Koenig wrote:
> Hi Rosemary,
>
>> It seems NAG have a fortran compiler but it is quite expensive 
>> (GBP250 - I enquired):
>>
>> https://www.nag.com/news/first-fortran-compiler-apple-silicon-macs
>
> Well, NAG sort of cheat - they compile Fortran to C and then use the
> native C compiler.  Makes it easier if there is already a C compiler
> on the target, no need to worry about ABIs and such. (Interestingly
> enough, the whole NAG compiler has a similar scope as the gfortran
> front end and library).
>
> It would be interesteing to see the C code they emit for certain
> constructs, for example for code accessing variables in an outer
> scope from contained procedures. Not sure if there is an option to
> do this.
>
> Best regards
>
>     Thomas



More information about the Fortran mailing list