f18-llvm-project icon indicating copy to clipboard operation
f18-llvm-project copied to clipboard

snbone

Open Sezoir opened this issue 3 years ago • 2 comments

Enable building and execution of the SNbone application with the LLVM Flang compiler.

Sezoir avatar Feb 10 '22 11:02 Sezoir

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:
    1. First you can download the project by running in bash:
    git clone https://github.com/ANL-CESAR/SNbone.git
    cd SNbone
    
    1. Now you can compile the project by running:
    cd src_fortran
    make COMPILER=gfortran
    
    By default, SNbone compiles with OpenMP. To turn this off you can append THREAD=no when calling make.
  • Does it compile with flang-new: No When running make FF=flang-new LD=flang-new we get a missing abort intrinsic 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

Sezoir avatar Feb 10 '22 11:02 Sezoir

Anthony Cabrera (@cabreraam) is working on this

AlexisPerry avatar Sep 14 '22 16:09 AlexisPerry