From 2d77f14b484af011ee40fd8b2fec72aadc579ce3 Mon Sep 17 00:00:00 2001 From: Anjan Roy Date: Sat, 14 May 2022 17:06:47 +0530 Subject: [PATCH] performance improvements seen on GPU systems, due to changes made in commit https://github.com/itzmeanjan/harpocrates/commit/32c9f06517428ce073fb6d112fec65f600ec52f8 Signed-off-by: Anjan Roy --- results/gpu/intel.md | 90 +++++++++++++++++++++---------------------- results/gpu/nvidia.md | 28 +++++++------- 2 files changed, 59 insertions(+), 59 deletions(-) diff --git a/results/gpu/intel.md b/results/gpu/intel.md index d76ea0a..2ba619e 100644 --- a/results/gpu/intel.md +++ b/results/gpu/intel.md @@ -9,37 +9,37 @@ make aot_gpu # keep device identifier argument `0x4905` ```bash Running on Intel(R) Iris(R) Xe MAX Graphics [0x4905] -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|# -of work-items| kernel name|input size ( bytes )|output size ( bytes )|host-to-device b/w| kernel b/w|device-to-host b/w| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|1048576 |Harpocrates Encrypt| 16.000244 MB| 16.000000 MB| 3.484858 GB/ s|132.037404 MB/ s| 5.292577 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|1048576 |Harpocrates Decrypt| 16.000244 MB| 16.000000 MB| 3.486233 GB/ s|132.078098 MB/ s| 5.292577 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|2097152 |Harpocrates Encrypt| 32.000244 MB| 32.000000 MB| 3.507018 GB/ s|132.108437 MB/ s| 5.293696 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|2097152 |Harpocrates Decrypt| 32.000244 MB| 32.000000 MB| 3.507100 GB/ s|132.156384 MB/ s| 5.293136 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|4194304 |Harpocrates Encrypt| 64.000244 MB| 64.000000 MB| 3.508930 GB/ s|132.145855 MB/ s| 5.294092 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|4194304 |Harpocrates Decrypt| 64.000244 MB| 64.000000 MB| 3.508981 GB/ s|132.193602 MB/ s| 5.293346 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|8388608 |Harpocrates Encrypt| 128.000244 MB| 128.000000 MB| 3.510322 GB/ s|132.165268 MB/ s| 5.294349 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|8388608 |Harpocrates Decrypt| 128.000244 MB| 128.000000 MB| 3.510342 GB/ s|132.211182 MB/ s| 5.293568 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|16777216 |Harpocrates Encrypt| 256.000244 MB| 256.000000 MB| 3.510495 GB/ s|132.174153 MB/ s| 5.294460 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|16777216 |Harpocrates Decrypt| 256.000244 MB| 256.000000 MB| 3.510498 GB/ s|132.220301 MB/ s| 5.293906 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|33554432 |Harpocrates Encrypt| 512.000244 MB| 512.000000 MB| 3.510778 GB/ s|132.179018 MB/ s| 5.294533 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|33554432 |Harpocrates Decrypt| 512.000244 MB| 512.000000 MB| 3.510781 GB/ s|132.223493 MB/ s| 5.293830 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|67108864 |Harpocrates Encrypt| 1.000000 GB| 1.000000 GB| 3.511279 GB/ s|132.181247 MB/ s| 5.294560 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|67108864 |Harpocrates Decrypt| 1.000000 GB| 1.000000 GB| 3.511280 GB/ s|132.223371 MB/ s| 5.294034 GB/ s| -+----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|# -of work-items| kernel name|input size ( bytes )|output size ( bytes )|host-to-device b/w| kernel b/w|device-to-host b/w| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|1048576 |Harpocrates Encrypt| 16.000244 MB| 16.000000 MB| 3.479370 GB/ s|2.311853 GB/ s| 5.265403 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|1048576 |Harpocrates Decrypt| 16.000244 MB| 16.000000 MB| 3.480740 GB/ s|2.331803 GB/ s| 5.277055 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|2097152 |Harpocrates Encrypt| 32.000244 MB| 32.000000 MB| 3.506261 GB/ s|2.342400 GB/ s| 5.293370 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|2097152 |Harpocrates Decrypt| 32.000244 MB| 32.000000 MB| 3.506281 GB/ s|2.367388 GB/ s| 5.279373 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|4194304 |Harpocrates Encrypt| 64.000244 MB| 64.000000 MB| 3.508120 GB/ s|2.359840 GB/ s| 5.293952 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|4194304 |Harpocrates Decrypt| 64.000244 MB| 64.000000 MB| 3.508294 GB/ s|2.384711 GB/ s| 5.293999 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|8388608 |Harpocrates Encrypt| 128.000244 MB| 128.000000 MB| 3.510086 GB/ s|2.367883 GB/ s| 5.294291 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|8388608 |Harpocrates Decrypt| 128.000244 MB| 128.000000 MB| 3.510065 GB/ s|2.393030 GB/ s| 5.293906 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|16777216 |Harpocrates Encrypt| 256.000244 MB| 256.000000 MB| 3.510623 GB/ s|2.372023 GB/ s| 5.294232 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|16777216 |Harpocrates Decrypt| 256.000244 MB| 256.000000 MB| 3.510616 GB/ s|2.397787 GB/ s| 5.293859 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|33554432 |Harpocrates Encrypt| 512.000244 MB| 512.000000 MB| 3.511095 GB/ s|2.374095 GB/ s| 5.294524 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|33554432 |Harpocrates Decrypt| 512.000244 MB| 512.000000 MB| 3.511104 GB/ s|2.400005 GB/ s| 5.293920 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|67108864 |Harpocrates Encrypt| 1.000000 GB| 1.000000 GB| 3.511192 GB/ s|2.375115 GB/ s| 5.294550 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ +|67108864 |Harpocrates Decrypt| 1.000000 GB| 1.000000 GB| 3.511192 GB/ s|2.401144 GB/ s| 5.294028 GB/ s| ++----------------+-------------------+--------------------+---------------------+------------------+--------------+------------------+ ``` # Benchmarking Harpocrates Cipher on Intel(R) UHD Graphics P630 @@ -56,32 +56,32 @@ Running on Intel(R) UHD Graphics P630 [0x3e96] +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ |# -of work-items| kernel name|input size ( bytes )|output size ( bytes )|host-to-device b/w| kernel b/w|device-to-host b/w| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|1048576 |Harpocrates Encrypt| 16.000244 MB| 16.000000 MB| 8.597729 GB/ s|267.765881 MB/ s| 16.256737 GB/ s| +|1048576 |Harpocrates Encrypt| 16.000244 MB| 16.000000 MB| 12.277024 GB/ s|321.086067 MB/ s| 16.426964 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|1048576 |Harpocrates Decrypt| 16.000244 MB| 16.000000 MB| 8.598515 GB/ s|268.110738 MB/ s| 16.415505 GB/ s| +|1048576 |Harpocrates Decrypt| 16.000244 MB| 16.000000 MB| 12.294663 GB/ s|279.986237 MB/ s| 15.798339 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|2097152 |Harpocrates Encrypt| 32.000244 MB| 32.000000 MB| 8.695757 GB/ s|268.338397 MB/ s| 15.930694 GB/ s| +|2097152 |Harpocrates Encrypt| 32.000244 MB| 32.000000 MB| 14.392542 GB/ s|320.914484 MB/ s| 16.334318 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|2097152 |Harpocrates Decrypt| 32.000244 MB| 32.000000 MB| 8.696962 GB/ s|268.594882 MB/ s| 16.897317 GB/ s| +|2097152 |Harpocrates Decrypt| 32.000244 MB| 32.000000 MB| 14.454426 GB/ s|283.905231 MB/ s| 16.736576 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|4194304 |Harpocrates Encrypt| 64.000244 MB| 64.000000 MB| 8.679487 GB/ s|269.241631 MB/ s| 16.855711 GB/ s| +|4194304 |Harpocrates Encrypt| 64.000244 MB| 64.000000 MB| 15.382092 GB/ s|321.055051 MB/ s| 16.971198 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|4194304 |Harpocrates Decrypt| 64.000244 MB| 64.000000 MB| 8.688099 GB/ s|269.201400 MB/ s| 16.876867 GB/ s| +|4194304 |Harpocrates Decrypt| 64.000244 MB| 64.000000 MB| 15.409793 GB/ s|284.055836 MB/ s| 16.754451 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|8388608 |Harpocrates Encrypt| 128.000244 MB| 128.000000 MB| 8.694904 GB/ s|269.614622 MB/ s| 16.771990 GB/ s| +|8388608 |Harpocrates Encrypt| 128.000244 MB| 128.000000 MB| 16.232237 GB/ s|321.280723 MB/ s| 16.786572 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|8388608 |Harpocrates Decrypt| 128.000244 MB| 128.000000 MB| 8.694703 GB/ s|269.745347 MB/ s| 16.876489 GB/ s| +|8388608 |Harpocrates Decrypt| 128.000244 MB| 128.000000 MB| 16.249050 GB/ s|284.501681 MB/ s| 16.713174 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|16777216 |Harpocrates Encrypt| 256.000244 MB| 256.000000 MB| 8.801711 GB/ s|269.672235 MB/ s| 17.005500 GB/ s| +|16777216 |Harpocrates Encrypt| 256.000244 MB| 256.000000 MB| 16.529387 GB/ s|320.661454 MB/ s| 16.873652 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|16777216 |Harpocrates Decrypt| 256.000244 MB| 256.000000 MB| 8.803615 GB/ s|269.444002 MB/ s| 16.860051 GB/ s| +|16777216 |Harpocrates Decrypt| 256.000244 MB| 256.000000 MB| 16.531928 GB/ s|284.080429 MB/ s| 16.604272 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|33554432 |Harpocrates Encrypt| 512.000244 MB| 512.000000 MB| 9.204012 GB/ s|269.588275 MB/ s| 16.980957 GB/ s| +|33554432 |Harpocrates Encrypt| 512.000244 MB| 512.000000 MB| 16.744679 GB/ s|321.133104 MB/ s| 16.881786 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|33554432 |Harpocrates Decrypt| 512.000244 MB| 512.000000 MB| 9.205249 GB/ s|269.092258 MB/ s| 16.951713 GB/ s| +|33554432 |Harpocrates Decrypt| 512.000244 MB| 512.000000 MB| 16.747100 GB/ s|284.403541 MB/ s| 16.717070 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|67108864 |Harpocrates Encrypt| 1.000000 GB| 1.000000 GB| 10.123275 GB/ s|269.862527 MB/ s| 17.038062 GB/ s| +|67108864 |Harpocrates Encrypt| 1.000000 GB| 1.000000 GB| 16.919484 GB/ s|321.205007 MB/ s| 16.999118 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ -|67108864 |Harpocrates Decrypt| 1.000000 GB| 1.000000 GB| 10.123922 GB/ s|269.396075 MB/ s| 15.748901 GB/ s| +|67108864 |Harpocrates Decrypt| 1.000000 GB| 1.000000 GB| 16.919770 GB/ s|284.318009 MB/ s| 16.885997 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+----------------+------------------+ ``` diff --git a/results/gpu/nvidia.md b/results/gpu/nvidia.md index a41158e..ba92d40 100644 --- a/results/gpu/nvidia.md +++ b/results/gpu/nvidia.md @@ -12,32 +12,32 @@ Running on Tesla V100-SXM2-16GB +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ |# -of work-items| kernel name|input size ( bytes )|output size ( bytes )|host-to-device b/w| kernel b/w|device-to-host b/w| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|1048576 |Harpocrates Encrypt| 16.000244 MB| 16.000000 MB| 9.426423 GB/ s|10.351960 GB/ s| 11.581023 GB/ s| +|1048576 |Harpocrates Encrypt| 16.000244 MB| 16.000000 MB| 9.448642 GB/ s|11.361678 GB/ s| 11.570886 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|1048576 |Harpocrates Decrypt| 16.000244 MB| 16.000000 MB| 9.426810 GB/ s|10.494332 GB/ s| 11.638742 GB/ s| +|1048576 |Harpocrates Decrypt| 16.000244 MB| 16.000000 MB| 9.442242 GB/ s|11.395635 GB/ s| 11.633786 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|2097152 |Harpocrates Encrypt| 32.000244 MB| 32.000000 MB| 10.215561 GB/ s|10.458480 GB/ s| 11.648543 GB/ s| +|2097152 |Harpocrates Encrypt| 32.000244 MB| 32.000000 MB| 10.244583 GB/ s|11.511693 GB/ s| 11.623949 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|2097152 |Harpocrates Decrypt| 32.000244 MB| 32.000000 MB| 10.226479 GB/ s|10.618554 GB/ s| 11.646025 GB/ s| +|2097152 |Harpocrates Decrypt| 32.000244 MB| 32.000000 MB| 10.256899 GB/ s|11.577161 GB/ s| 11.660348 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|4194304 |Harpocrates Encrypt| 64.000244 MB| 64.000000 MB| 10.291292 GB/ s|10.510542 GB/ s| 11.664863 GB/ s| +|4194304 |Harpocrates Encrypt| 64.000244 MB| 64.000000 MB| 10.287567 GB/ s|11.572844 GB/ s| 11.653049 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|4194304 |Harpocrates Decrypt| 64.000244 MB| 64.000000 MB| 10.296363 GB/ s|10.664890 GB/ s| 11.632136 GB/ s| +|4194304 |Harpocrates Decrypt| 64.000244 MB| 64.000000 MB| 10.293358 GB/ s|11.643508 GB/ s| 11.672573 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|8388608 |Harpocrates Encrypt| 128.000244 MB| 128.000000 MB| 10.312413 GB/ s|10.537798 GB/ s| 11.670979 GB/ s| +|8388608 |Harpocrates Encrypt| 128.000244 MB| 128.000000 MB| 10.315321 GB/ s|11.604715 GB/ s| 11.662604 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|8388608 |Harpocrates Decrypt| 128.000244 MB| 128.000000 MB| 10.314698 GB/ s|10.697646 GB/ s| 11.668983 GB/ s| +|8388608 |Harpocrates Decrypt| 128.000244 MB| 128.000000 MB| 10.319584 GB/ s|11.679098 GB/ s| 11.649071 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|16777216 |Harpocrates Encrypt| 256.000244 MB| 256.000000 MB| 10.328942 GB/ s|10.550175 GB/ s| 11.677900 GB/ s| +|16777216 |Harpocrates Encrypt| 256.000244 MB| 256.000000 MB| 10.328733 GB/ s|11.619067 GB/ s| 11.671245 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|16777216 |Harpocrates Decrypt| 256.000244 MB| 256.000000 MB| 10.334467 GB/ s|10.708384 GB/ s| 11.677101 GB/ s| +|16777216 |Harpocrates Decrypt| 256.000244 MB| 256.000000 MB| 10.329880 GB/ s|11.692568 GB/ s| 11.679765 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|33554432 |Harpocrates Encrypt| 512.000244 MB| 512.000000 MB| 10.326854 GB/ s|11.640994 GB/ s| 11.680031 GB/ s| +|33554432 |Harpocrates Encrypt| 512.000244 MB| 512.000000 MB| 10.339888 GB/ s|12.017792 GB/ s| 11.676968 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|33554432 |Harpocrates Decrypt| 512.000244 MB| 512.000000 MB| 10.329666 GB/ s|11.816157 GB/ s| 11.683763 GB/ s| +|33554432 |Harpocrates Decrypt| 512.000244 MB| 512.000000 MB| 10.340515 GB/ s|12.846085 GB/ s| 11.680031 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|67108864 |Harpocrates Encrypt| 1.000000 GB| 1.000000 GB| 10.332478 GB/ s|12.360134 GB/ s| 11.648277 GB/ s| +|67108864 |Harpocrates Encrypt| 1.000000 GB| 1.000000 GB| 10.334355 GB/ s|13.622818 GB/ s| 11.674571 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ -|67108864 |Harpocrates Decrypt| 1.000000 GB| 1.000000 GB| 10.333625 GB/ s|12.549789 GB/ s| 11.680031 GB/ s| +|67108864 |Harpocrates Decrypt| 1.000000 GB| 1.000000 GB| 10.334564 GB/ s|13.708900 GB/ s| 11.668186 GB/ s| +----------------+-------------------+--------------------+---------------------+------------------+---------------+------------------+ ```