Skip to content

Commit

Permalink
doc(README): update compiler commands/versions
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Rouson committed Nov 8, 2024
1 parent 1c60620 commit c18022d
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```
Expand All @@ -96,10 +104,16 @@ fpm test --compiler=nagfor --profile release --flag "-coarray=cosmp -fpp -f2018"
fpm test --compiler ifx --profile release --flag -coarray
```
### Building and testing with the LLVM `flang-new` compiler

#### `flang-new` 19 or earlier
```
fpm test --compiler flang-new --flag "-mmlir -allow-assumed-rank -O3"
```

#### `flang-new` 20 or later
```
fpm test --compiler flang-new --flag "-O3"
```
### Building and testing with the Numerical Algorithms Group (NAG) compiler
```
fpm test --compiler nagfor --profile release --flag "-fpp -coarray=cosmp"
Expand Down

0 comments on commit c18022d

Please sign in to comment.