mirror of
https://github.com/zama-ai/tfhe-rs.git
synced 2026-01-08 22:28:01 -05:00
chore(bench): remove constraint in pcc to not use trivial name in bench
This commit is contained in:
1
Makefile
1
Makefile
@@ -1343,7 +1343,6 @@ dieharder_csprng: install_dieharder build_tfhe_csprng
|
||||
|
||||
.PHONY: clippy_bench # Run clippy lints on tfhe-benchmark
|
||||
clippy_bench: install_rs_check_toolchain
|
||||
! (grep --recursive "trivial" tfhe-benchmark && echo "trivial found in benches")
|
||||
RUSTFLAGS="$(RUSTFLAGS)" cargo "$(CARGO_RS_CHECK_TOOLCHAIN)" clippy --all-targets \
|
||||
--features=boolean,shortint,integer,internal-keycache,pbs-stats,zk-pok \
|
||||
-p tfhe-benchmark -- --no-deps -D warnings
|
||||
|
||||
@@ -449,9 +449,9 @@ mod cuda {
|
||||
let gpu_count = get_number_of_gpus() as usize;
|
||||
|
||||
for uses_gemm_ks in [false, true] {
|
||||
for uses_simple_indices in [false, true] {
|
||||
let indices_str = if uses_simple_indices {
|
||||
"simple"
|
||||
for uses_trivial_indices in [false, true] {
|
||||
let indices_str = if uses_trivial_indices {
|
||||
"trivial"
|
||||
} else {
|
||||
"complex"
|
||||
};
|
||||
@@ -516,7 +516,7 @@ mod cuda {
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
let indexes_range: Vec<u64> = if uses_simple_indices {
|
||||
let indexes_range: Vec<u64> = if uses_trivial_indices {
|
||||
(0..(elements / gpu_count) as u64).collect()
|
||||
} else {
|
||||
(0..(elements / gpu_count) as u64).rev().collect()
|
||||
@@ -555,7 +555,7 @@ mod cuda {
|
||||
output_ct,
|
||||
&cuda_indexes_vec[i].d_input,
|
||||
&cuda_indexes_vec[i].d_output,
|
||||
uses_simple_indices,
|
||||
uses_trivial_indices,
|
||||
local_stream,
|
||||
uses_gemm_ks,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user