Nvidia is supporting Flang: Fortran compiler via LLVM. Flang is supported by Cmake ≥ 3.10. Currently, installing the LLVM Flang Fortran compiler requires building from source, which is a resource-intensive process.
Flang compile tips
- You need a moderately powerful PC to compile Flang with > 100 GB of free space on the drive you build Flang on. Flang install is small, but Flang build process requires a lot of drive space.
- Don’t use too much RAM with the
makefor building Flang. It maxed out RAM on a PC with 32 GB of RAM with
make -j7. Maybe try
make -j2or just plain
- follow the Flang build instructions sequentially. Don’t try to build later parts while earlier parts are still building, this will not work properly.