AMD AOMP compilers (new flang)

Has anyone tried the AMDs AOMP compilers based on new LLVM flang (not classic flang like their AOCC compilers). Just wondering if its worth spending the time trying to get them installed on my Linux boxes. I’ve tried to install the precompiled LLVM flang versions on the LLVM site but can’t get them to work. Best I can figure out its looking for a particular version of (g)libc. The error message just says it can’t find libc. Maybe its a path problem though.

2 Likes

For those who are interested in trying, below is a script for installing the new flang provided by AMD AOMP (aka amdflang) on GitHub Actions, of course, before setup-fortran supports it (@wpbonelli).

It has been used at

and

N.B.:

  1. The script installs the compiler only. It does not install the HIP libraries. If you need them, you may modify the script yourself.

  2. If you would like to use it on your local machine (Ubuntu), remove the following two lines:

# Set environment variable for subsequent steps
echo "PATH=$PATH:$AOMP_DIR/bin" >> "$GITHUB_ENV"
1 Like

Also, a new version of the AMD AOCC compilers (V5.1) was released on Jan 2.

1 Like

The following script installs it for GitHub Actions.

For those who are interested in the ARM Fortran Compiler, which is also based on the LLVM Flang: