Skip to content

Commit

Permalink
Add demo results
Browse files Browse the repository at this point in the history
  • Loading branch information
gha3mi committed Dec 27, 2023
1 parent 80f52be commit 08bd6bc
Show file tree
Hide file tree
Showing 10 changed files with 127 additions and 4 deletions.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,18 @@ fpm run --example demo --compiler ifx --flag "-coarray -coarray-num-images=4 -DU
fpm run --example demo --compiler ifort --flag "-coarray -coarray-num-images=4 -DUSE_COARRAY"
```

After execution, the results will be displayed in the terminal and stored in the results folder.
After execution, the results will be displayed in the terminal and stored in the 'results' folder. See `results/demo.data`, `results/demo_im1.data` for instance.

**Visualizing demo results:**

To visualize benchmarking results, execute the following command in Python, passing the relevant data file as an argument:

`python results/plot.py demo.data`

The output includes graphical representations of benchmarking metrics:

<img alt="ForBenchmark" src="results/demo_time.png" width="350"> <img alt="ForBenchmark" src="results/demo_perf.png" width="350">


## TODO
- [ ] Add MPI module.
Expand Down
4 changes: 2 additions & 2 deletions example/demo.f90
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ program demo
call bench%finalize()

! you can use a python script to plot the results as follows:
! python results/plot.py demo_matmul.data
! python results/plot.py demo.data
! for coarray benchmarks, utilize:
! TODO: python results/plot_co.py demo_matmul.data
! TODO: python results/plot_co.py demo.data
! by default, the script generates two plots: one for elapsed time and one for performance.
! the x-axis corresponds to the first argument in argi, while the y-axis displays elapsed time and performance.

Expand Down
9 changes: 8 additions & 1 deletion results/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
__pycache__
*.data
*.png
*.png
!demo.data
!demo_im1.data
!demo_im2.data
!demo_im3.data
!demo_im4.data
!demo_time.png
!demo_perf.png
21 changes: 21 additions & 0 deletions results/demo.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----------------------------------------------------
ForBenchmark - https://github.com/gha3mi/forbenchmark
-----------------------------------------------------

Demo Benchmark
2023.12.27 - 21:16:16

compiler_version: GCC version 13.2.0
compiler_options: -cpp -I build/gfortran_6E2E351FB09955DB -imultiarch x86_64-linux-gnu -mtune=generic -march=x86-64 -g -Wall -Wextra -Werror=implicit-interface -fPIC -fmax-errors=1 -fbounds-check -fcheck=array-temps -fbacktrace -fcoarray=single -fimplicit-none -ffree-form -J build/gfortran_6E2E351FB09955DB -fpre-include=/usr/include/finclude/math-vector-fortran.h


METHOD | TIME | GFLOPS | NLOOPS | ARGI
m1 0.10000000000000E-03 0.10000000000000E+02 10 100 100 100
m2 0.71000000000000E-02 0.14084507042254E+00 10 100 100 100
m1 0.70000000000000E-03 0.11428571428571E+02 10 200 200 200
m2 0.54400000000000E-01 0.14705882352941E+00 10 200 200 200
m1 0.23000000000000E-02 0.11739130434783E+02 10 300 300 300
m2 0.18760000000000E+00 0.14392324093817E+00 10 300 300 300
m1 0.51000000000000E-02 0.12549019607843E+02 10 400 400 400
m2 0.44990000000000E+00 0.14225383418537E+00 10 400 400 400
end of benchmark
21 changes: 21 additions & 0 deletions results/demo_im1.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----------------------------------------------------
ForBenchmark - https://github.com/gha3mi/forbenchmark
-----------------------------------------------------

Demo Benchmark
2023.12.27 - 21:13:19

compiler_version: Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2024.0.2 Build 20231213
compiler_options: -Ibuild/ifx_69076157971FC046 -c -fpp -coarray -coarray-num-images=4 -DUSE_COARRAY -free -module build/ifx_69076157971FC046 -o build/ifx_69076157971FC046/forbenchmark/src_forbenchmark_coarray.f90.o
image: 1 of 4

METHOD | TIME(avg) | GFLOPS(tot) | TIME(image) | GFLOPS(image) | NLOOPS | ARGI
m1 0.32750000000000E-03 0.12376014789808E+02 0.33000000000000E-03 0.30303030303030E+01 10 100 100 100
m2 0.47500000000000E-03 0.84383256848839E+01 0.47000000000000E-03 0.21276595744681E+01 10 100 100 100
m1 0.25125000000000E-02 0.12737364446426E+02 0.25400000000000E-02 0.31496062992126E+01 10 200 200 200
m2 0.39800000000000E-02 0.80424802075050E+01 0.39800000000000E-02 0.20100502512563E+01 10 200 200 200
m1 0.89050000000000E-02 0.12128941354916E+02 0.88300000000000E-02 0.30577576443941E+01 10 300 300 300
m2 0.13855000000000E-01 0.77984089054935E+01 0.13670000000000E-01 0.19751280175567E+01 10 300 300 300
m1 0.20215000000000E-01 0.12664299408735E+02 0.20260000000000E-01 0.31589338598223E+01 10 400 400 400
m2 0.42755000000000E-01 0.59877528014219E+01 0.42730000000000E-01 0.14977767376550E+01 10 400 400 400
end of benchmark
21 changes: 21 additions & 0 deletions results/demo_im2.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----------------------------------------------------
ForBenchmark - https://github.com/gha3mi/forbenchmark
-----------------------------------------------------

Demo Benchmark
2023.12.27 - 21:13:19

compiler_version: Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2024.0.2 Build 20231213
compiler_options: -Ibuild/ifx_69076157971FC046 -c -fpp -coarray -coarray-num-images=4 -DUSE_COARRAY -free -module build/ifx_69076157971FC046 -o build/ifx_69076157971FC046/forbenchmark/src_forbenchmark_coarray.f90.o
image: 2 of 4

METHOD | TIME(avg) | GFLOPS(tot) | TIME(image) | GFLOPS(image) | NLOOPS | ARGI
m1 0.32750000000000E-03 0.12376014789808E+02 0.30000000000000E-03 0.33333333333333E+01 10 100 100 100
m2 0.47500000000000E-03 0.84383256848839E+01 0.47000000000000E-03 0.21276595744681E+01 10 100 100 100
m1 0.25125000000000E-02 0.12737364446426E+02 0.24900000000000E-02 0.32128514056225E+01 10 200 200 200
m2 0.39800000000000E-02 0.80424802075050E+01 0.39200000000000E-02 0.20408163265306E+01 10 200 200 200
m1 0.89050000000000E-02 0.12128941354916E+02 0.88500000000000E-02 0.30508474576271E+01 10 300 300 300
m2 0.13855000000000E-01 0.77984089054935E+01 0.13670000000000E-01 0.19751280175567E+01 10 300 300 300
m1 0.20215000000000E-01 0.12664299408735E+02 0.20060000000000E-01 0.31904287138584E+01 10 400 400 400
m2 0.42755000000000E-01 0.59877528014219E+01 0.43050000000000E-01 0.14866434378630E+01 10 400 400 400
end of benchmark
21 changes: 21 additions & 0 deletions results/demo_im3.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----------------------------------------------------
ForBenchmark - https://github.com/gha3mi/forbenchmark
-----------------------------------------------------

Demo Benchmark
2023.12.27 - 21:13:19

compiler_version: Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2024.0.2 Build 20231213
compiler_options: -Ibuild/ifx_69076157971FC046 -c -fpp -coarray -coarray-num-images=4 -DUSE_COARRAY -free -module build/ifx_69076157971FC046 -o build/ifx_69076157971FC046/forbenchmark/src_forbenchmark_coarray.f90.o
image: 3 of 4

METHOD | TIME(avg) | GFLOPS(tot) | TIME(image) | GFLOPS(image) | NLOOPS | ARGI
m1 0.32750000000000E-03 0.12376014789808E+02 0.29000000000000E-03 0.34482758620690E+01 10 100 100 100
m2 0.47500000000000E-03 0.84383256848839E+01 0.45000000000000E-03 0.22222222222222E+01 10 100 100 100
m1 0.25125000000000E-02 0.12737364446426E+02 0.24900000000000E-02 0.32128514056225E+01 10 200 200 200
m2 0.39800000000000E-02 0.80424802075050E+01 0.40900000000000E-02 0.19559902200489E+01 10 200 200 200
m1 0.89050000000000E-02 0.12128941354916E+02 0.90300000000000E-02 0.29900332225914E+01 10 300 300 300
m2 0.13855000000000E-01 0.77984089054935E+01 0.14360000000000E-01 0.18802228412256E+01 10 300 300 300
m1 0.20215000000000E-01 0.12664299408735E+02 0.20380000000000E-01 0.31403336604514E+01 10 400 400 400
m2 0.42755000000000E-01 0.59877528014219E+01 0.42450000000000E-01 0.15076560659600E+01 10 400 400 400
end of benchmark
21 changes: 21 additions & 0 deletions results/demo_im4.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
-----------------------------------------------------
ForBenchmark - https://github.com/gha3mi/forbenchmark
-----------------------------------------------------

Demo Benchmark
2023.12.27 - 21:13:19

compiler_version: Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2024.0.2 Build 20231213
compiler_options: -Ibuild/ifx_69076157971FC046 -c -fpp -coarray -coarray-num-images=4 -DUSE_COARRAY -free -module build/ifx_69076157971FC046 -o build/ifx_69076157971FC046/forbenchmark/src_forbenchmark_coarray.f90.o
image: 4 of 4

METHOD | TIME(avg) | GFLOPS(tot) | TIME(image) | GFLOPS(image) | NLOOPS | ARGI
m1 0.32750000000000E-03 0.12376014789808E+02 0.39000000000000E-03 0.25641025641026E+01 10 100 100 100
m2 0.47500000000000E-03 0.84383256848839E+01 0.51000000000000E-03 0.19607843137255E+01 10 100 100 100
m1 0.25125000000000E-02 0.12737364446426E+02 0.25300000000000E-02 0.31620553359684E+01 10 200 200 200
m2 0.39800000000000E-02 0.80424802075050E+01 0.39300000000000E-02 0.20356234096692E+01 10 200 200 200
m1 0.89050000000000E-02 0.12128941354916E+02 0.89100000000000E-02 0.30303030303030E+01 10 300 300 300
m2 0.13855000000000E-01 0.77984089054935E+01 0.13720000000000E-01 0.19679300291545E+01 10 300 300 300
m1 0.20215000000000E-01 0.12664299408735E+02 0.20160000000000E-01 0.31746031746032E+01 10 400 400 400
m2 0.42755000000000E-01 0.59877528014219E+01 0.42790000000000E-01 0.14956765599439E+01 10 400 400 400
end of benchmark
Binary file added results/demo_perf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added results/demo_time.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 08bd6bc

Please sign in to comment.