From 9449263e69e6534822063bb70e3186847f6dc1c6 Mon Sep 17 00:00:00 2001 From: Damian Rouson Date: Fri, 8 Nov 2024 14:27:21 -0800 Subject: [PATCH 1/2] doc(README): update compiler commands/versions --- README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index a284e61..68aae9f 100644 --- a/README.md +++ b/README.md @@ -74,14 +74,22 @@ cd assert ### Building and testing with `gfortran` #### Single-image (serial) execution -The following command builds Assert and runs the full test suite in a single image: +The command below builds Assert and runs the full test suite in a single image. +For `gfortran` 14 or later, use +``` +fpm test --profile release +``` +For `gfortran` 13 or earlier, use ``` fpm test --profile release --flag "-ffree-line-length-0" ``` -which builds the Assert library (with the default of assertion enforcement disabled) and runs the test suite. - +The above commands build the Assert library (with the default of assertion enforcement disabled) and runs the test suite. #### Multi-image (parallel) execution -With `gfortran` and OpenCoarrays installed, +With `gfortran` 14 or later versions and OpenCoarrays installed, use +``` +fpm test --compiler caf --profile release --runner "cafrun -n 2" +``` +With `gfortran` 13 or earlier versions and OpenCoarrays installed, ``` fpm test --compiler caf --profile release --runner "cafrun -n 2" --flag "-ffree-line-length-0" ``` @@ -103,11 +111,11 @@ fpm test --compiler ifx --profile release --flag "-coarray -DASSERT_MULTI_IMAGE" ``` ### Building and testing with the LLVM `flang-new` compiler -#### LLVM 19 Version +#### LLVM version 19 or earlier ``` fpm test --compiler flang-new --flag "-mmlir -allow-assumed-rank -O3" ``` -#### LLVM 20 or later +#### LLVM version 20 or later ``` fpm test --compiler flang-new --flag "-O3" ``` From ab0958fb67247b4c450495ad705d7d34988ead41 Mon Sep 17 00:00:00 2001 From: Dan Bonachea Date: Tue, 1 Apr 2025 03:02:59 -0400 Subject: [PATCH 2/2] Update README.md Co-authored-by: Damian Rouson --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 68aae9f..e2d847d 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ fpm test --compiler ifx --profile release --flag "-coarray -DASSERT_MULTI_IMAGE" ``` ### Building and testing with the LLVM `flang-new` compiler -#### LLVM version 19 or earlier +#### LLVM version 19 ``` fpm test --compiler flang-new --flag "-mmlir -allow-assumed-rank -O3" ```