Skip to content

test(compiler_test): identify flang(-new) #70

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

Merged
merged 3 commits into from
Mar 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 16 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ compiler standard-conformance, including a test for each scenario in which the
the Fortran 2018 standard requires that an object be finalized. The table below
summarizes the observed compiler behaviors:

| _Compiler_ | _Test failures_ | _Version tested_ |
| :--- | :---: | :--- |
| AMD | N.A. (see Note 1.) | `flang` 13.0.0 (AOCC_3.2.0-Build\#128 2021\_11\_12) |
| Cray | >= 3 (see Note 2.) | `ftn` 13.0.1 |
| GCC :trophy: | 0 | `gfortran` 13.1.0 |
| IBM | 1 | `xlf2008_r` 17.1.0 on AIX |
| Intel | 1 | `ifort` 2021.7.0 Build 20220726_000000 |
| | 1 | `ifx` 2024.0.0 Build 20231017 |
| LLVM | N.A. (see Note 3.) | `git` commit `f5253058144aca1e9fcacd` (9/20/2022) |
| NAG :trophy: | 0 | `nagfor` 7.1 Build 7113 |
| NVIDIA | 2 | `nvfortran` 22.7-0 |
| _Compiler_ | _Test failures_ | _Version tested_ |
| :--- | :---: | :--- |
| AMD `flang` | N.A. (see Note 1.) | 13.0.0 (AOCC_3.2.0-Build\#128 2021\_11\_12) |
| Cray `ftn` | >= 3 (see Note 2.) | 13.0.1 |
| GCC `gfortran` :trophy: | 0 | 13.1.0 |
| IBM `xlf2008_r` | 1 | 17.1.0 on AIX |
| Intel `ifort` | 1 | 2021.7.0 Build 20220726_000000 |
| Intel `ifx` | 1 | 2024.0.0 Build 20231017 |
| LLVM `flang` :trophy: | 0 | `git` commit `f5253058144aca1e9fcacd` (9/20/2022) |
| NAG `nagfor` :trophy: | 0 | 7.1 Build 7113 |
| NVIDIA `nvfortran` | 2 | 22.7-0 |

**Notes**
1. Fails to build due to an internal compiler error (ICE).
Expand Down Expand Up @@ -119,6 +119,11 @@ fpm test --archiver ar --compiler xlf2008_r --flag -DXLF
fpm test
```

### LLVM
```
fpm test --compiler flang-new
```

### NVIDIA
```
fpm test --compiler nvfortran --flag -Mpreprocess
Expand Down
2 changes: 2 additions & 0 deletions test/compiler_test_m.f90
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,8 @@ function fpm_compiler_arguments() result(args)
args = "--compiler ftn"
else if (index(compiler_identity, "XLF")==1) then
args = "--compiler xlf2008_r"
else if (index(compiler_identity, "flang")==1) then
args = "--compiler flang-new"
else
error stop "----> Unrecognized compiler_version() in function fpm_compiler_arguments. <----"
end if
Expand Down