Skip to content

Commit

Permalink
chore(backend/frontend): Fixing formatting...
Browse files Browse the repository at this point in the history
  • Loading branch information
BourgerieQuentin committed Jan 2, 2024
1 parent 3ebe8a3 commit 8992bb2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
5 changes: 1 addition & 4 deletions backends/concrete-cpu/implementation/src/c_api/wop_pbs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -318,10 +318,7 @@ pub unsafe extern "C" fn concrete_cpu_circuit_bootstrap_boolean_vertical_packing
assert!(cbs_decomposition_level_count * cbs_decomposition_base_log <= 64);

let mut lut_container = slice::from_raw_parts(lut, lut_size * lut_count);
let mut expanded_luts: Vec<u64> = vec![
0_u64;
fpksk_output_polynomial_size * lut_count
];
let mut expanded_luts: Vec<u64> = vec![0_u64; fpksk_output_polynomial_size * lut_count];

if lut_size < fpksk_output_polynomial_size {
for luti in 0..lut_count {
Expand Down
9 changes: 6 additions & 3 deletions frontends/concrete-python/tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
import json
import os
import random
import warnings
from copy import deepcopy
from pathlib import Path
from typing import Any, Callable, Dict, List, Tuple, Union

import numpy as np
import pytest
import warnings

import tests
from concrete import fhe
Expand Down Expand Up @@ -303,8 +303,11 @@ def sanitize(values):
if all(np.array_equal(e, a) for e, a in zip(expected, actual)):
break

warnings.warn(UserWarning(f'Test fail ({i+1}/{retries}), regenerate keyset and retry'))
circuit.keygen(force=True, seed=i+1)
warnings.warn(
UserWarning(f"Test fail ({i+1}/{retries}), regenerate keyset and retry"),
stacklevel=2,
)
circuit.keygen(force=True, seed=i + 1)

if i == retries - 1:
message = f"""
Expand Down

1 comment on commit 8992bb2

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 8992bb2 Previous: b28986a Ratio
v0 PBS table generation 59818056 ns/iter (± 821886) 59757475 ns/iter (± 485759) 1.00
v0 PBS simulate dag table generation 39801343 ns/iter (± 304227) 39947992 ns/iter (± 341342) 1.00
v0 WoP-PBS table generation 105163781 ns/iter (± 832424) 105025982 ns/iter (± 784528) 1.00

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.