Skip to content

Commit

Permalink
chore(gpu): add ilog2 bench
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesLeroy committed Sep 4, 2024
1 parent c258d53 commit e6b004f
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tfhe/benches/integer/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1539,6 +1539,11 @@ mod cuda {
display_name: rotate_right
);

define_cuda_server_key_bench_clean_input_fn!(
method_name: unchecked_ilog2,
display_name: ilog2
);

define_cuda_server_key_bench_clean_input_scalar_fn!(
method_name: unchecked_scalar_bitand,
display_name: bitand,
Expand Down Expand Up @@ -1800,6 +1805,11 @@ mod cuda {
display_name: rotate_right
);

define_cuda_server_key_bench_clean_input_fn!(
method_name: ilog2,
display_name: ilog2
);

define_cuda_server_key_bench_clean_input_scalar_fn!(
method_name: scalar_sub,
display_name: sub,
Expand Down Expand Up @@ -1953,6 +1963,7 @@ mod cuda {
cuda_unchecked_right_shift,
cuda_unchecked_rotate_left,
cuda_unchecked_rotate_right,
cuda_unchecked_ilog2,
);

criterion_group!(
Expand Down Expand Up @@ -2009,6 +2020,7 @@ mod cuda {
cuda_right_shift,
cuda_rotate_left,
cuda_rotate_right,
cuda_ilog2,
);

criterion_group!(
Expand Down

0 comments on commit e6b004f

Please sign in to comment.