From 84fd9113f7b2855d9fd2f2286ebcce2a5bb302b3 Mon Sep 17 00:00:00 2001 From: Seyed Ali Ghasemi Date: Sun, 10 Dec 2023 22:28:08 +0100 Subject: [PATCH] Update fpm.rsp - Added -test-coarray -example-coarray to fpm.rsp. - Update README. --- README.md | 20 ++++++++++++++++++-- fpm.rsp | 18 +++++++++++++----- 2 files changed, 31 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 252c0eb..46eba33 100644 --- a/README.md +++ b/README.md @@ -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`. @@ -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 @@ -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: diff --git a/fpm.rsp b/fpm.rsp index 9d0d98a..cc2a159 100644 --- a/fpm.rsp +++ b/fpm.rsp @@ -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" \ No newline at end of file +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" \ No newline at end of file