f18-llvm-project
f18-llvm-project copied to clipboard
snbone
Enable building and execution of the SNbone application with the LLVM Flang compiler.
Next steps: I am not planning to take on this project. This is just an initial report found. Please feel free to work on this.
SNbone:
https://proxyapps.exascaleproject.org/app/snbone/ https://github.com/ANL-CESAR/SNbone
Initial report for SNbone:
- Minimum version of Fortran required using gfortran: F95
- Required arguments to compile with version: "-fdec"
- How to compile with gfortran:
- First you can download the project by running in bash:
git clone https://github.com/ANL-CESAR/SNbone.git cd SNbone- Now you can compile the project by running:
By default, SNbone compiles with OpenMP. To turn this off you can appendcd src_fortran make COMPILER=gfortranTHREAD=nowhen callingmake. - Does it compile with flang-new: No
When running
make FF=flang-new LD=flang-newwe get a missingabortintrinsic lowering error:flang-new -c -o Basic_Abort.o Basic_Abort.F90 error: loc("./Basic_Abort.F90":21:1): TODO: missing intrinsic lowering: abort make: *** [Makefile:128: Basic_Abort.o] Error 1
Versions:
- gfortran version used: 9.3.0
- flang-new, fir-dev branch, HEAD: fb8eb638b46eae15c89ca8fc448831a99b675c61
- Architecture for compilation: aarch64
Anthony Cabrera (@cabreraam) is working on this