Quentin Bourgerie
534e683055
fix: Lowering from ConcreteToBConcrete of from_elements on ND tensor of Concrete.lwe_ciphertext
2022-08-09 10:26:32 +02:00
Quentin Bourgerie
f91c74d7dd
chore: LICENSE update
2022-08-05 11:51:28 +02:00
Antoniu Pop
a2ff61d1d7
cleanup(compiler): remove no longer needed function getAliasedUses.
2022-08-04 17:06:09 +01:00
Antoniu Pop
f9ce4d046b
fix(testing-dfr): fix startup and ternimation call parameters to allow sequential test execution on root node when the runtime is instantiated for distributed execution.
2022-08-04 17:06:09 +01:00
Antoniu Pop
f541af8a8f
fix(compiler): use ViewLikeOpInterface instead of checking specific op types.
2022-08-04 17:06:09 +01:00
Antoniu Pop
f051642f1f
cleanup(compiler): rename getSizeInBytes function to match updated functionality.
2022-08-04 17:06:09 +01:00
Antoniu Pop
46b1dbcd34
cleanup(compiler): fix unused variable warning.
2022-08-04 17:06:09 +01:00
Antoniu Pop
9f1ac8a4e4
fix(dfr): add guard assert for not returning empty EvaluationKeys when on root node.
2022-08-04 17:06:09 +01:00
Antoniu Pop
20d19c2161
cleanup(dfr): remove unused key ids and unranked memref labels.
2022-08-04 17:06:09 +01:00
Antoniu Pop
abff4e1c17
tests(dfr): fix mlir for func.func in tests.
2022-08-04 17:06:09 +01:00
Antoniu Pop
da9dbcef1d
feat(compiler): coarsen task granularity by aggregating lightweight operations.
2022-08-04 17:06:09 +01:00
Antoniu Pop
6291a13cf8
feat(compiler): add NoSideEffect flags on FHE operations to enable DCE to remove operations that no longer have uses.
2022-08-04 17:06:09 +01:00
Antoniu Pop
ba60d74da0
feat(dfr): add timing measurements.
2022-08-04 17:06:09 +01:00
Antoniu Pop
dd2b2b9ce9
fix(dfr): deallocate receive buffers for evaluation keys on remote nodes.
2022-08-04 17:06:09 +01:00
Antoniu Pop
2f5f9f6cf1
test(dfr): add AES test.
2022-08-04 17:06:09 +01:00
Antoniu Pop
1bb3d04059
fix(dfr): broadcast evaluation keys early to avoid locking in HPX helper threads.
2022-08-04 17:06:09 +01:00
Antoniu Pop
fbca52f4a0
feat(dfr): add memory management for futures and associated data.
2022-08-04 17:06:09 +01:00
Antoniu Pop
b405a2daf2
fix(dfr): fix thread binding when running both HPX and OpenMP runtimes.
2022-08-04 17:06:09 +01:00
Antoniu Pop
8f2b12d812
test(distributed): fix termination of tests meant to run on distributed systems to avoid ungraceful exit.
2022-08-04 17:06:09 +01:00
Antoniu Pop
eeb3ba8735
fix(compiler): add calls to enable either or both parts of the runtime based on compile options used.
2022-08-04 17:06:09 +01:00
Antoniu Pop
51d3959742
fix(dfr): remove runtime resume/suspend on entry/exit of function as currently unstable.
2022-08-04 17:06:09 +01:00
Antoniu Pop
49111dd295
fix(dfr): simplify runtime parametrization and fix implicit thread allocation policy.
2022-08-04 17:06:09 +01:00
Antoniu Pop
ae55e88435
feat(dfr): add default configuration file for HPX runtime.
2022-08-04 17:06:09 +01:00
Antoniu Pop
93d5a06557
test: add a test for distributed execution.
2022-08-04 17:06:09 +01:00
Antoniu Pop
34b85304bc
license: fix master/main.
2022-08-04 17:06:09 +01:00
Antoniu Pop
7410502e60
fix(dfr): simplify synchronization in work function registry.
2022-08-04 17:06:09 +01:00
Antoniu Pop
e36c7d3b55
feat(dfr): add environment variable option for using HPX configuration file path at initialization.
2022-08-04 17:06:09 +01:00
Antoniu Pop
19a25deb2a
fix(dfr): remove int conversion warnings.
2022-08-04 17:06:09 +01:00
Antoniu Pop
615109d432
fix(dfr): simplify initialization and add namespaces where possible.
2022-08-04 17:06:09 +01:00
Antoniu Pop
c79cedf557
test(parallelization): add small NN test for auto parallelization.
2022-08-04 17:06:09 +01:00
Antoniu Pop
8defa338e8
feat(runtime): enable parallel execution for TestLib when available.
2022-08-04 17:06:09 +01:00
Antoniu Pop
460fbabbe0
feat(runtime): deactivate main wrapping by default and add explicit initialization/termination.
2022-08-04 17:06:09 +01:00
Antoniu Pop
bca85ea2b6
feat(compiler): delay the point where futures are waited on, when they are being synchronized back to their parent context, to the point of use.
2022-08-04 17:06:09 +01:00
Antoniu Pop
954b2098c6
feat(runtime): enable distributed execution.
2022-08-04 17:06:09 +01:00
Antoniu Pop
2cc8c69ff3
fix(compiler): make the insertForwardDeclaration utility function accept any OpBuilder for more generality.
2022-08-04 17:06:09 +01:00
Antoniu Pop
1df468a084
feat(runtime): increase the limit of task input parameters to 16.
2022-08-04 17:06:09 +01:00
Antoniu Pop
8beb596fab
test(dfr): remove DFR unittests which are now obsolete.
2022-08-04 17:06:09 +01:00
youben11
cace7f1ebb
test: add e2e tests of grouped conv2d
2022-08-04 11:19:18 +01:00
youben11
ce9393070c
fix: avoid tensor slices in conv operation
...
when lowering the linalg conv operation into scf, then bufferized, there
is a cast operation on an allocated buffer to the type of a
memref with different strides (casued by the slice). This incompatible
cast makes the lowering fails.
2022-08-04 11:19:18 +01:00
youben11
e52ccfc1a9
feat: support grouped conv2d
2022-08-04 11:19:18 +01:00
youben11
63d84a3e4a
refactor: remove code related to our custom conv2D named op
...
it was introduced as a workaround while linalng couldn't support other
types than int/float
2022-08-04 11:19:18 +01:00
youben11
f1f1db923d
refactor: lower our conv2d to custom linalg named op
...
we can now generate linalg named op with custom operation for add/mul to
handle our types
2022-08-04 11:19:18 +01:00
Andi Drebes
83f2095af5
test(compiler): Add regression tests for extract_slice and collapse on encrypted tensors
...
Commit `45577fb79e7bef9d6874906971f485ca6ed111b8` introduced a
regression causing garbage to be generated for IR involving
`tensor.extract_slice` and `tensor.collapse` in some cases. This
commit adds two tests checking for the absence of the regression.
Co-authored-by: Umut Sahin <umut.sahin@zama.ai >
2022-07-28 10:13:35 +02:00
Andi Drebes
85ebc0cb7a
Rebase onto llvm-project 3f81841474fe with patch for arbitrary types in linalg named ops
...
Rebase to llvm-project at 3f81841474fe with a pending upstream patch
for arbitrary element types in linalg named operations.
Co-authored-by: Ayoub Benaissa <ayoub.benaissa@zama.ai >
2022-07-27 22:45:38 +02:00
Andi Drebes
fb9066c3e8
fix(compiler): Fix calculation of indexes for result memrefs with non-zero offsets
...
The function `tensorDataFromMemRef` reading elements from a result
memref and copying them to an instance of `TensorData` fails to handle
memrefs with non-zero offsets as it adds the offset twice when
calculating indexes. This may result in out-of-bounds memory accesses
and incorrect results.
This patch fixes the calculation of indexes by removing the second
addition of the offset.
2022-07-27 22:39:54 +02:00
Andi Drebes
6c2b1addcc
enhance(build): Pass trailing arguments from add_concretelang_doc to add_mlir_doc
...
Pass all arguments starting with `command` passed to
`add_concretelang_doc` to `add_mlir_doc`. This allows for the
specification of additional command line arguments to be passed to
`mlir-tblgen`.
2022-07-27 22:39:54 +02:00
Quentin Bourgerie
511bcd99e7
Revert "feat(optimizer): create optimizer dag and use it"
...
This reverts commit 0b99f6d278 .
2022-07-27 18:35:47 +02:00
youben11
149cc24821
fix: get path to test file using __FILE__
2022-07-27 10:29:47 +01:00
youben11
ff3a3cbe8b
fix: fail tests if any of the test binaries fail
2022-07-27 10:29:47 +01:00
rudy
0b99f6d278
feat(optimizer): create optimizer dag and use it
2022-07-25 21:06:14 +02:00