HPMC User Guide v 1.00
© 2026 Bassem W. Jamaleddine


I

   gpdata3: plot 2D and 3D graphs


To plot performance graphs we use gpdata3. The following commands show how we plot the performance graphs shown in this book.

Performance of matrix multiplication on the GPU.

#  gpdata3 DP-FMA,3:11wlp-lt-1-lw-1.9-pt-4-ps-1.7-rgb-red DP-noFMA,3:11wlp-lt-1-lwp-1.9-pt-5-ps-1.7-rgb-red SP-FMA,3:11wlp-lt-1-lw-1.9-pt-6-ps-1.7-rgb-green SP-noFMA,3:11wlp-lt-1-lwp-1.9-pt-7-ps-1.7-rgb-green -title "Matrix Multiplication on GPU" -xlabel "Matrix Size" -ylabel "GFlops"

# gpdata3 DP-FMA,3:11wlp-lt-1-lw-1.9-pt-4-ps-1.7-rgb-red \
          DP-noFMA,3:11wlp-lt-1-lwp-1.9-pt-5-ps-1.7-rgb-red \
          SP-FMA,3:11wlp-lt-1-lw-1.9-pt-6-ps-1.7-rgb-green \
          SP-noFMA,3:11wlp-lt-1-lwp-1.9-pt-7-ps-1.7-rgb-green \
          -title "Matrix Multiplication on GPU" \
          -xlabel "Matrix Size" -ylabel "GFlops"


Performance of matrix multiplication on the MIC.

#  gpdata3 MIC-DP,5:13wlp-lt-1-lw-1.9-pt-4-ps-1.7-rgb-red MIC-SP,5:13wlp-lt-1-lwp-1.9-pt-5-ps-1.7-rgb-red -title "Matrix Multiplication on MIC Using 240 Threads" -xlabel "Matrix Size" -ylabel "GFlops"

# gpdata3 MIC-DP,5:13wlp-lt-1-lw-1.9-pt-4-ps-1.7-rgb-red \
          MIC-SP,5:13wlp-lt-1-lwp-1.9-pt-5-ps-1.7-rgb-red \
         -title "Matrix Multiplication on MIC Using 240 Threads" \
         -xlabel "Matrix Size" -ylabel "GFlops"


Compare matrix multiplication with double precision operations on GPU vs MIC. GPU performance is better than the MIC, however it is limited to matrix size 500x500, while on MIC it can be 1000x1000 and even higher, as it is managed by OpenMP.

#  gpdata3 MIC-DP,5:13wlp-lt-1-lw-1.9-pt-4-ps-1.7-rgb-blue DP-FMA,3:11wlp-lt-1-lw-1.9-pt-2-ps-1.7-rgb-red -title "Matrix Multiplication on GPU and on MIC Using 240 Threads" -xlabel "Matrix Size" -ylabel "GFlops"

gpdata3 MIC-DP,5:13wlp-lt-1-lw-1.9-pt-4-ps-1.7-rgb-blue \
     DP-FMA,3:11wlp-lt-1-lw-1.9-pt-2-ps-1.7-rgb-red \
     -title "Matrix Multiplication on GPU and on MIC Using 240 Threads" \
     -xlabel "Matrix Size" -ylabel "GFlops"