Skip to content

Commit

Permalink
Update fpm.rsp
Browse files Browse the repository at this point in the history
- Added -test-coarray -example-coarray to fpm.rsp.
- Update README.
  • Loading branch information
gha3mi committed Dec 10, 2023
1 parent 09c6122 commit 84fd911
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
20 changes: 18 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,20 @@ Tested with Intel compiler: ifort (IFORT) 2021.10.0 20230609
fpm @ifort-test
```

```shell
fpm @ifort-test-coarray
```

Tested with Intel compiler: ifx (IFX) 2023.2.0 20230622

```shell
fpm @ifx-test
```

```shell
fpm @ifx-test-coarray
```

**Run examples:**

To set the stack size to unlimited, use the following command: `ulimit -s unlimited`.
Expand All @@ -64,10 +72,18 @@ You have the option to modify the number of images in the `fpm.rsp` file by usin
fpm @ifort-example
```

```shell
fpm @ifort-example-coarray
```

```shell
fpm @ifx-example
```

```shell
fpm @ifx-example-coarray
```

Results with `-coarray-num-images=4`:

```shell
Expand All @@ -91,13 +107,13 @@ To set the stack size to unlimited, use the following command: `ulimit -s unlimi
**Intel Fortran Compiler (ifort)**

```shell
fpm run --example benchmark3 --compiler ifort --flag "-Ofast -xHost -qopenmp -qmkl -coarray -coarray-num-images=4"
fpm run --example benchmark3 --compiler ifort --flag "-Ofast -xHost -qopenmp -qmkl -coarray -coarray-num-images=4 -DUSE_COARRAY"
```

**Intel Fortran Compiler (ifx)**

```shell
fpm run --example benchmark3 --compiler ifx --flag "-Ofast -xHost -qopenmp -qmkl -coarray -coarray-num-images=4"
fpm run --example benchmark3 --compiler ifx --flag "-Ofast -xHost -qopenmp -qmkl -coarray -coarray-num-images=4 -DUSE_COARRAY"
```

You can then use the provided Python script to generate visual plots for the benchmark3 data:
Expand Down
18 changes: 13 additions & 5 deletions fpm.rsp
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
@ifort-test
options test --compiler ifort --flag "-Ofast -mtune=native -xHost -qmkl"

@ifort-test-coarray
options test --compiler ifort --flag "-Ofast -mtune=native -xHost -qmkl -coarray -coarray-num-images=4 -DUSE_COARRAY"
# options test --compiler ifort --flag "-Ofast -mtune=native -xHost -qmkl"

@ifort-example
options run --example --all --compiler ifort --flag "-Ofast -mtune=native -xHost -qmkl"

@ifort-example-coarray
options run --example --all --compiler ifort --flag "-Ofast -mtune=native -xHost -qmkl -coarray -coarray-num-images=4 -DUSE_COARRAY"
# options run --example --all --compiler ifort --flag "-Ofast -mtune=native -xHost -qmkl"

@ifx-test
options test --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl"

@ifx-test-coarray
options test --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl -coarray -coarray-num-images=4 -DUSE_COARRAY"
# options test --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl"

@ifx-example
options run --example --all --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl -coarray -coarray-num-images=4 -DUSE_COARRAY"
# options run --example --all --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl"
options run --example --all --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl"

@ifx-example-coarray
options run --example --all --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl -coarray -coarray-num-images=4 -DUSE_COARRAY"

0 comments on commit 84fd911

Please sign in to comment.