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

Tealeaf #1464

Open
Sezoir opened this issue Feb 10, 2022 · 1 comment
Open

Tealeaf #1464

Sezoir opened this issue Feb 10, 2022 · 1 comment
Assignees
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 Tealeaf 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.

TeaLeaf Repository:

https://github.com/UK-MAC/TeaLeaf

The main TeaLeaf repository contains several different versions of TeaLeaf for different implementations of TeaLeaf. For compiling with Fortran, we are interested in the TeaLeaf_ref repository.

Initial report for TeaLeaf_ref:

  • Minimum version of Fortran required using gfortran: F2008
    • 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/UK-MAC/TeaLeaf_ref.git
    cd TeaLeaf_ref
    
    1. For this project you require an MPI compiler. For this I used openmpi as a wrapper compiler around gfortran. Now you can compile the project by running:
    make COMPILER=GNU MPI_COMPILER=/path/to/mpifort C_MPI_COMPILER=/path/to/mpicc
    
    Where the paths to the MPI compilers are correctly substituted in to your MPI compilers.
  • Does it compile with flang-new: No
    • Requires MPI which we don't currently support. Most MPI usage in global_mpi.f90, so you might be able to manually remove/replace required MPI usage.
    • Error received before MPI required when trying to compile:
    $ make COMPILER=GNU MPI_COMPILER=flang-new C_MPI_COMPILER=clang-12
    error: loc("./pack_kernel.f90":162:7): /.../f18-llvm-fork/flang/lib/Lower/Bridge.cpp:2091: not yet implemented procedure pointer assignment
    make: *** [Makefile:196: pack_kernel.o] Error 1
    

Versions:

  • gcc version used: 9.3.0
  • gfortran version used: 9.3.0
  • flang-new, fir-dev branch, HEAD: fb8eb63
  • clang-12: 12.0.0
  • openmpi version used: 4.1.1
  • TeaLeaf_ref, master branch, HEAD: 019aa2f7da9df9559e6a0890d14f961738711ca7
  • Architecture for compilation: aarch64

@banach-space banach-space added the apps Building Fortran applications with Flang - status + instructions label Feb 24, 2022
@od102 od102 self-assigned this May 2, 2022
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

4 participants