chore: move gated import to section with feature gate in HL erc20 bench

This commit is contained in:
Arthur Meyre
2025-06-30 15:54:48 +02:00
parent 97c0290ff7
commit 86a40bcea9

View File

@@ -490,7 +490,6 @@ fn hpu_bench_transfer_throughput<FheType, F>(
#[cfg(not(any(feature = "gpu", feature = "hpu")))]
fn main() {
use crate::pbs_stats::print_transfer_pbs_counts;
let params = benchmark::params_aliases::BENCH_PARAM_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128;
let config = tfhe::ConfigBuilder::with_custom_parameters(params).build();
@@ -511,6 +510,7 @@ fn main() {
// PBS count is always the same
#[cfg(feature = "pbs-stats")]
{
use crate::pbs_stats::print_transfer_pbs_counts;
print_transfer_pbs_counts(
&cks,
"FheUint64",
@@ -610,7 +610,6 @@ fn main() {
#[cfg(feature = "gpu")]
fn main() {
use crate::pbs_stats::print_transfer_pbs_counts;
let params = benchmark::params_aliases::BENCH_PARAM_GPU_MULTI_BIT_GROUP_4_MESSAGE_2_CARRY_2_KS_PBS_TUNIFORM_2M128;
let config = tfhe::ConfigBuilder::with_custom_parameters(params).build();
@@ -625,6 +624,7 @@ fn main() {
// PBS count is always the same
#[cfg(feature = "pbs-stats")]
{
use crate::pbs_stats::print_transfer_pbs_counts;
print_transfer_pbs_counts(
&cks,
"FheUint64",