Skip to content

Commit 66624e9

Browse files
authored
Merge pull request #174 from BerkeleyLab/doc-ifx
Documentation: Add ifx build/test instructions to README.md
2 parents 6122f55 + 540670b commit 66624e9

4 files changed

Lines changed: 29 additions & 28 deletions

File tree

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- name: Checkout code
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

1717
- name: Install fpm
18-
uses: fortran-lang/setup-fpm@v4
18+
uses: fortran-lang/setup-fpm@v7
1919
with:
2020
github-token: ${{ secrets.GITHUB_TOKEN }}
2121

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313

1414
steps:
1515
- name: Checkout code
16-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1717

1818
- name: Install Dependencies Ubuntu
1919
run: |

.github/workflows/draft-pdf.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

README.md

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,46 @@ Prerequisites
1515
Downloading, Building, and Testing
1616
---------------------------------
1717

18-
### Single-image (serial) execution
18+
### GNU Compiler Collection (GCC) `gfortran` Compiler
19+
20+
#### Single-image (serial) execution
1921
With `gfortran` installed, download, build, run and test Matcha in a single image by entering the following commands in a `bash`-like shell:
2022
```
2123
git clone https://github.com/rouson/matcha
2224
cd matcha
2325
fpm test
2426
```
2527

26-
### Multi-image (parallel) execution
28+
#### Multi-image (parallel) execution
2729
With `gfortran` and OpenCoarrays installed, build, test, and run Matcha in multiple images by entering the following commands in a `bash`-like shell:
2830
```
2931
fpm test --compiler caf --runner "cafrun -n 2"
3032
fpm run --compiler caf --runner "cafrun -n 2"
3133
```
3234
Change '2' above to the number of images that you would like to launch in parallel.
3335

36+
### Intel OneAPI `ifx` Compiler
37+
#### Multi-image (parallel) execution
38+
The unit test suite uses small grids to minimize runtime, which limits the scalability of the test suite only.
39+
Hence, the test suite is _not_ designed for execution in a large number of images.
40+
All tests pass when running the test suite in 1-4 images:
41+
```
42+
export FOR_COARRAY_NUM_IMAGES=4
43+
fpm test --compiler ifx --profile release --flag "-heap-arrays -coarray"
44+
```
45+
46+
#### Single-image (serial) execution
47+
Same as multi-image execution except `FOR_COARRAY_NUM_IMAGES=1`.
48+
49+
#### Automatic GPU-based acceleration: _Experimental_
50+
The following command is listed here for reference while we investigate what appear to be platform-specific compiler issues causing a crashe when automatic GPU-based acceleration is enabled with the required coarray features:
51+
```
52+
fpm test \
53+
--compiler ifx \
54+
--profile release \
55+
--flag "-heap-arrays -coarray -fopenmp-target-do-concurrent -qopenmp -fopenmp-targets=spir64"
56+
```
57+
3458
## Documentation
3559
Please visit the [Matcha Github Pages](https://berkeleylab.github.io/matcha) site to see HTML Documentation generated with ford.
3660

0 commit comments

Comments
 (0)