Commit Graph

23 Commits

Author SHA1 Message Date
Benoit Chevallier-Mames
68f93da58d docs(frontend): adding small intros
closes #https://github.com/zama-ai/concrete-internal/issues/837
2024-09-04 14:37:14 +02:00
Benoit Chevallier-Mames
9fffe8be5a docs(frontend): simplify the doc for the non-power user 2024-06-17 17:26:49 +02:00
Benoit Chevallier-Mames
d9a365bd93 docs(frontend): simplify the doc for the non-power user 2024-06-11 16:08:57 +02:00
aquint-zama
9b2e39fd10 docs(frontend): renaming 2024-04-29 17:33:29 +02:00
Bourgerie Quentin
11f1935119 fix(ci): Update path of auto-generated dialect documentation 2024-03-12 16:43:13 +01:00
Yuxi Zhao
a0195cf315 docs(frontend): update new structure and landing page 2024-03-11 18:55:50 +01:00
Andi Drebes
8e660e2f75 feat(compiler): Add dialect with operations related to the optimizer
This adds a new dialect called `Optimizer` with operations related to
the Concrete Optimizer. Currently, there is only one operation
`optimizer.partition_frontier` that can be inserted between a producer
and a consumer which belong to different partitions computed by the
optimizer. The purpose of this operation is to preserve explicit key
changes from the invocation of the optimizer on high-level dialects
(i.e., FHELinalg / FHE) until the IR is provided with actual
references to keys in low-level dialects (i.e., TFHE).
2024-03-06 14:50:27 +01:00
Andi Drebes
e78883cc24 feat(compiler): Add a dialect for type inference debugging
The `TypeInference` dialect provides three operations.

The operation `TypeInference.propagate_downwards` respresents a type
barrier, which is supposed to forward the type of its operand as its
result type during type inference.

The operation `TypeInference.propagate_upwards` also respresents a
type barrier, but is supposed to forward the type of its result as the
type for its operand during type inference.

The operation `TypeInference.unresolved_conflict` can be used as a
marker when two different types have beed inferred for a value (e.g.,
one type during forward dataflow analysis and the other during
backward dataflow analysis)
2024-02-01 16:18:45 +01:00
Andi Drebes
8b1c6ab034 fix(compiler): Fix typos in the summaries of batched TFHE ops 2024-02-01 16:18:45 +01:00
Ben
749096dda9 docs(frontend): v2.5 diff language 2024-01-19 12:06:32 +03:00
rudy
34ffd6f97a feat(compiler): new ops, reinterpret_precision and lsb 2023-12-04 10:20:06 +01:00
Alexandre Péré
e8ef48ffd8 feat(compiler): introduce concrete-protocol
This commit:
 + Adds support for a protocol which enables inter-op between concrete,
   tfhe-rs and potentially other contributors to the fhe ecosystem.
 + Gets rid of hand-made serialization in the compiler, and
   client/server libs.
 + Refactors client/server libs to allow more pre/post processing of
   circuit inputs/outputs.

The protocol is supported by a definition in the shape of a capnp file,
which defines different types of objects among which:
 + ProgramInfo object, which is a precise description of a set of fhe
   circuit coming from the same compilation (understand function type
   information), and the associated key set.
 + *Key objects, which represent secret/public keys used to
   encrypt/execute fhe circuits.
 + Value object, which represent values that can be transferred between
   client and server to support calls to fhe circuits.

The hand-rolled serialization that was previously used is completely
dropped in favor of capnp in the whole codebase.

The client/server libs, are refactored to introduce a modular design for
pre-post processing. Reading the ProgramInfo file associated with a
compilation, the client and server libs assemble a pipeline of
transformers (functions) for pre and post processing of values coming in
and out of a circuit. This design properly decouples various aspects of
the processing, and allows these capabilities to be safely extended.

In practice this commit includes the following:
 + Defines the specification in a concreteprotocol package
 + Integrate the compilation of this package as a compiler dependency
   via cmake
 + Modify the compiler to use the Encodings objects defined in the
   protocol
 + Modify the compiler to emit ProgramInfo files as compilation
   artifact, and gets rid of the bloated ClientParameters.
 + Introduces a new Common library containing the functionalities shared
   between the compiler and the client/server libs.
 + Introduces a functional pre-post processing pipeline to this common
   library
 + Modify the client/server libs to support loading ProgramInfo objects,
   and calling circuits using Value messages.
 + Drops support of JIT.
 + Drops support of C-api.
 + Drops support of Rust bindings.

Co-authored-by: Nikita Frolov <nf@mkmks.org>
2023-11-09 17:09:04 +01:00
youben11
d16ce818e1 docs(compiler): build latest docs 2023-09-12 14:51:53 +01:00
aquint-zama
900d25c952 docs(compiler): fix dialect links 2023-07-13 14:53:25 +02:00
aquint-zama
b0b74ee81f chore(compiler): doc edit 2023-07-13 14:33:54 +02:00
aquint-zama
502fcfdbe6 chore(compiler): fix typos 2023-07-13 14:33:54 +02:00
Ben
96ae2df13e docs(common): documentation edits 2023-07-13 14:33:54 +02:00
rudy
9b24e8d974 docs(optimizer): add high level doc 2023-07-13 14:33:54 +02:00
aquint-zama
25754a656a docs(common): add FHE dialects autogenerated docs 2023-07-13 14:33:54 +02:00
aquint-zama
88bee38643 chore(common): let Gitbook handle newlines 2023-07-13 14:33:54 +02:00
youben11
d2e6cf28bc docs(compiler): update compilation docs 2023-07-13 14:33:54 +02:00
Andi Drebes
efec081673 docs(compiler): Add documentation for FHE-related dialects 2023-07-13 14:33:54 +02:00
aquint-zama
407a3b2cde docs(common): add table of content proposal 2023-07-13 14:33:54 +02:00