Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc(gpu): add missing benchmark results #1062

Merged
merged 1 commit into from
Apr 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion tfhe/docs/guides/run_on_gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ The equivalent signed operations are also available.
All operations follow the same syntax than the one described in [here](../getting_started/operations.md).
{% endhint %}

### Benchmarks
# Benchmarks

All GPU benchmarks presented here were obtained on a single H100 GPU, and rely on the multithreaded PBS algorithm.
The cryptographic parameters PARAM\_MULTI\_BIT\_MESSAGE\_1\_CARRY\_2\_GROUP\_3\_KS\_PBS were used.
Expand All @@ -222,6 +222,9 @@ Performance is the following when the left input of the benchmarked operation is
| ------------------------------------------------------ | ---------- | ----------- | ----------- | ----------- | ------------ | ------------ |
| Add / Sub (`+`,`-`) | 46 ms | 60 ms | 75 ms | 94 ms | 152 ms | 251 ms |
| Mul (`*`) | 67 ms | 101 ms | 149 ms | 282 ms | 727 ms | 2.11 s |
| Equal / Not Equal (`eq`, `ne`) | 26 ms | 27 ms | 27 ms | 41 ms | 45 ms | 57 ms |
| Comparisons (`ge`, `gt`, `le`, `lt`) | 29 ms | 41 ms | 54 ms | 69 ms | 87 ms | 117 ms |
| Max / Min (`max`,`min`) | 53 ms | 65 ms | 81 ms | 102 ms | 142 ms | 200 ms |
| Bitwise operations (`&`, `\|`, `^`) | 11 ms | 13 ms | 13 ms | 15 ms | 23 ms | 32 ms |
| Left / Right Shifts (`<<`, `>>`) | 11 ms | 12 ms | 13 ms | 15 ms | 23 ms | 32 ms |
| Left / Right Rotations (`left_rotate`, `right_rotate`) | 11 ms | 12 ms | 13 ms | 15 ms | 23 ms | 32 ms |
Loading