Skip to content

Commit

Permalink
Update fpm.rsp and README.md.
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Dec 14, 2023
1 parent a7a6480 commit e251f01
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 15 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@ fpm @ifx-test
fpm @ifx-test-coarray
```

Tested with GNU compiler: GNU Fortran (GCC) 13.1.0
Tested with NVIDIA compiler: nvfortran 23.11-0 64-bit target on x86-64 Linux

```shell
fpm @gfortran-test
fpm @nvfortran-test
```

**Run examples:**
Expand All @@ -90,8 +90,9 @@ fpm @ifx-example
fpm @ifx-example-coarray
```


```shell
fpm @gfortran-example
fpm @nvfortran-example
```

Results with `-coarray-num-images=4`:
Expand Down
33 changes: 21 additions & 12 deletions fpm.rsp
Original file line number Diff line number Diff line change
@@ -1,21 +1,14 @@
@gfortran-test
options test --compiler gfortran --flag "-Ofast -march=native -llapack -lblas -fopenmp"

@gfortran-example
options run --example --all --compiler gfortran --flag "-Ofast -march=native -llapack -lblas -fopenmp"


@ifort-test
options test --compiler ifort --flag "-Ofast -mtune=native -xHost -qmkl -qopenmp"
options test --compiler ifort --flag "-Ofast -mtune=native -xHost -qmkl -qopenmp -ipo"

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

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

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



Expand All @@ -29,4 +22,20 @@ options test --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl -qopenmp -
options run --example --all --compiler ifx --flag "-Ofast -mtune=native -xHost -qmkl -qopenmp"

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



@nvfortran-test
options test --compiler nvfortran --flag "-Ofast -fast -march=native -mtune=native -stdpar=gpu,multicore -llapack -lblas -openmp"

@nvfortran-example
options run --example --all --compiler nvfortran --flag "-Ofast -fast -march=native -mtune=native -stdpar=gpu,multicore -llapack -lblas -openmp"



#@gfortran-test
#options test --compiler gfortran --flag "-Ofast -march=native -llapack -lblas -fopenmp -flto"

#@gfortran-example
#options run --example --all --compiler gfortran --flag "-Ofast -march=native -llapack -lblas -fopenmp -flto"

0 comments on commit e251f01

Please sign in to comment.