Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

snbone #1462

Open
Sezoir opened this issue Feb 10, 2022 · 2 comments
Open

snbone #1462

Sezoir opened this issue Feb 10, 2022 · 2 comments
Labels
apps Building Fortran applications with Flang - status + instructions

Comments

@Sezoir
Copy link
Collaborator

Sezoir commented Feb 10, 2022

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

@Sezoir
Copy link
Collaborator Author

Sezoir commented Feb 10, 2022

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: fb8eb63
  • Architecture for compilation: aarch64

@banach-space banach-space added the apps Building Fortran applications with Flang - status + instructions label Feb 24, 2022
@AlexisPerry
Copy link
Collaborator

Anthony Cabrera (@cabreraam) is working on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
apps Building Fortran applications with Flang - status + instructions
Projects
None yet
Development

No branches or pull requests

3 participants