Commit Graph

125 Commits

Author SHA1 Message Date
youben11
f7881021e8 feat(frontend/backend): support TFHErs tensors 2024-11-07 10:25:01 +01:00
youben11
67895a1ccb chore(backend/frontend): update TFHE-rs 2024-11-04 11:43:04 +01:00
youben11
6c7291cd57 feat(frontend/compiler): support TFHErs fheint8 2024-10-25 09:43:18 +01:00
Bourgerie Quentin
c4f0a43b4d fix(backend-cpu): Use safe serialization for TFHE-rs interoperability 2024-10-18 10:01:20 +02:00
youben11
6c81e0c67b chore(backend): update tfhers in concrete-cpu 2024-10-03 10:42:34 +01:00
youben11
e4a041e5ac perf(backend): avoid copy during serialization 2024-09-26 10:43:06 +02:00
youben11
061715cfe4 feat(backend/compiler): check fheuint correctness when unserializing 2024-09-26 10:43:06 +02:00
youben11
a7cf7791d4 feat(compiler/front/backend): use LWE keys inst of GLWE with TFHErs comp 2024-09-26 10:43:06 +02:00
youben11
54f18e82fc feat(backend): unserialize glwe secret keys 2024-09-26 10:43:06 +02:00
youben11
19242e89f6 fix(compiler): remove hardcoded datakind and construct it from desc 2024-09-03 14:05:06 +01:00
youben11
8168d07541 refactor(compiler): compute fheuint buffer size in rust (more accurate) 2024-09-03 14:05:06 +01:00
youben11
159e8e296b feat(frontend/compiler): set correct value for noise and degree 2024-09-03 14:05:06 +01:00
youben11
a750545269 feat(frontend): TFHErs Context 2024-09-03 14:05:06 +01:00
youben11
cd0cf46130 feat(compiler/frontend): serialize a given secret key
This is useful for it to be used in TFHErs
2024-09-03 14:05:06 +01:00
youben11
da326a52aa chore(backend): build if src/* has been changed 2024-09-03 14:05:06 +01:00
youben11
f0d53225e2 feat(backend, compiler): convert TFHErs to Concrete ciphertext and back 2024-09-03 14:05:06 +01:00
Bourgerie Quentin
b2ced570fd perf(compiler): Do not instantiate csprng each time for woppbs simulation 2024-09-02 17:06:35 +02:00
Antoniu Pop
095db7d25e fix(backend): add error messages for unsuppoted polynomial sizes in switch defaults. 2024-07-14 07:27:58 +01:00
James Marsh
d9c21df157 chore(compiler): Bump version of tfhe-rs and rust compiler and fixed build issues 2024-07-04 17:22:34 +02:00
Miles
5d68424531 fix typos 2024-04-11 14:50:16 +02:00
Bourgerie Quentin
2d2e6d0519 fix(backend-cpu): Fix concrete_cpu_encrypt_seeded_lwe_ciphertext_u64 as the memory was not written 2024-03-12 16:57:06 +01:00
Bourgerie Quentin
0fdc7d78ff perf(compiler): Use parallel implementation to decompress bs and ks keys 2024-03-11 16:51:05 +01:00
Arthur Meyre
2d3dc73ab8 chore(backend): fix nightly feature which was not forwarded to TFHE-rs
- this will allow to have AVX512 on x86 machines which have the hardware
feature available if concrete-cpu is built with a rust nightly toolchain
and the nightly feature enabled
2024-01-04 14:38:06 +01:00
Bourgerie Quentin
c339e2a10b chore(backend/frontend): Fixing formatting... 2024-01-02 19:23:38 +01:00
Bourgerie Quentin
afb9420dbb fix(backend/cpu): Fix the size of the expanded lut in woppbs case of poly size > lut size 2024-01-02 18:18:30 +01:00
dependabot[bot]
22dc7080ea chore(backend): deps, bump rustix in /backends/concrete-cpu/implementation
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.37.21 to 0.37.27.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.21...v0.37.27)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-29 12:08:13 +01:00
dependabot[bot]
c1bd672509 chore(backend): bump rustix in /backends/concrete-cpu/noise-model
Bumps [rustix](https://github.com/bytecodealliance/rustix) from 0.37.21 to 0.37.27.
- [Release notes](https://github.com/bytecodealliance/rustix/releases)
- [Commits](https://github.com/bytecodealliance/rustix/compare/v0.37.21...v0.37.27)

---
updated-dependencies:
- dependency-name: rustix
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-12-29 11:46:53 +01:00
Bourgerie Quentin
98274e012e test(backend-cpu): Remove useless zip tests 2023-12-22 15:51:02 +01:00
Bourgerie Quentin
e664aaafcb fix(backend-gpu): Fixing cuda code for tfhe-rs keysitch key layout 2023-12-22 15:51:02 +01:00
Bourgerie Quentin
c67fac4082 feat(compiler): Introduce input compression and use tfhe-rs as backend
- added --compress-input compiler option which forces the use of seeded
  bootstrap keys and keyswitch keys
- replaced the concrete-cpu FHE implementation with tfhe-rs

Co-authored-by: Nikita Frolov <nf@mkmks.org>
2023-12-22 15:51:02 +01:00
Samuel Tap
fb0c6d4d85 fix(compiler): simulation, noise in woppbs 2023-11-22 13:49:30 +01:00
Mayeul@Zama
b00e949a85 fix(backend-cpu): zig tests after zig update 2023-11-03 12:04:16 +01:00
Alexandre Péré
211dcd0ad7 fix(backend-cpu): fix rust lint error
See https://github.com/zama-ai/concrete/actions/runs/6690310177/job/18175401058#step:9:94
2023-11-03 12:04:16 +01:00
aquint-zama
8595aad47f docs(frontend): fix broken links
and ignore those that cant be automatically checked (sadly)
2023-10-27 15:40:21 +02:00
youben11
72940bcf93 fix(backend): fix boolean rounding in woppbs simulation 2023-10-02 17:07:48 +01:00
youben11
0caa659244 refactor(backend): use lwe scalar value (sim) instead of pointer 2023-09-28 09:29:48 +01:00
youben11
23576e1f59 fix(backend): use correct variance in blind_rotate 2023-09-28 09:29:48 +01:00
Samuel Tap
a70d2f0b83 feat(backend): add simulation of woppbs 2023-09-28 09:29:48 +01:00
Beka Barbakadze
471ebc080b feat(backend-gpu): implement integer multiplication, including test and benchmark 2023-08-11 12:54:18 -03:00
Pedro Alves
37b3782ff5 chore(backend-gpu): add missing include in utils.cpp 2023-08-08 09:02:44 -03:00
Pedro Alves
3f46d946b6 chore(backend-gpu): changes the mutability of some parameters in the rust api 2023-08-08 09:02:44 -03:00
Pedro Alves
b91a736cd6 fix(backend-gpu): minor fixes to the rust API 2023-07-26 10:43:43 -03:00
Pedro Alves
ae43e7ffe5 feat(backend-gpu): implement the multi-bit PBS 2023-07-11 12:25:18 -03:00
Pedro Alves
5b103acbd9 feat(backend-gpu): expose a rust API for concrete-cuda 2023-07-07 13:15:56 -03:00
Bourgerie Quentin
1b0106302b fix(optimizer/backend-cpu): Fix Cargo.lock to avoid flaky dependencies 2023-06-30 16:08:43 +02:00
Pedro Alves
a4ef7543a6 feat(backend-gpu): introduce a function to check for cooperative groups support 2023-06-27 08:48:39 -03:00
Mayeul@Zama
6877f6c9e3 fix(backend-cpu): fix clippy lint 2023-06-27 11:14:40 +02:00
Mayeul@Zama
97b13e871c feat(optimizer): introduce fft precision 2023-06-15 10:48:07 +02:00
Mayeul@Zama
8897acab3d feat(optimizer): fix noise model tests compilation 2023-06-15 10:48:07 +02:00
youben11
566f119a06 feat(backend): expose random gaussian function 2023-06-05 16:48:52 +01:00