fix(gpu): reduces number of elements in the ZK throughput benchmark

This commit is contained in:
Pedro Alves
2025-07-09 09:18:19 -03:00
committed by Agnès Leroy
parent 15762623d1
commit d3dd010deb

View File

@@ -602,7 +602,12 @@ mod cuda {
});
}
BenchmarkType::Throughput => {
let elements = 100 * get_number_of_gpus() as u64; // This value, found empirically, ensure saturation of 8XH100 SXM5
let mut elements_per_gpu = 100;
if bits == 4096 {
elements_per_gpu /= 5;
}
// This value, found empirically, ensure saturation of 8XH100 SXM5
let elements = elements_per_gpu * get_number_of_gpus() as u64;
bench_group.throughput(Throughput::Elements(elements));
bench_id_verify = format!(