cuPQC's speed test #2076
lakshya-chopra
started this conversation in
General
Replies: 1 comment
-
Thanks for the report! @ydoroz @stevenireeves @praveksharma could you please take a look? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
In the current version of libOQS, running the speed_kem.c tests for
ML-KEM
is using CPU cycles as a benchmark for GPU based cuPQC (on platforms with GPU & whereOQS_USE_CUPQC=ON
). To verify this, I added debug statements in the following file to check which function gets called. To my surprise, running the speed test always invoked cuPQC's function, yet the reported benchmark results were still based on CPU cycle counts.Build CMD:
Speed comparisons
To further confirm this, I compared the speed results of Kyber768 & ML-KEM-768 (which should be similar) and got these results:
For ML-KEM-768:
Clearly, these results are far off & do not represent an accurate picture.
Feature Request
It would be beneficial if the speed test could accurately measure GPU performance when cuPQC is used.

As an example,
If this is an actual issue, I’d be happy to help :)
Beta Was this translation helpful? Give feedback.
All reactions