mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
fix(runtime): formatting.
This commit is contained in:
committed by
Quentin Bourgerie
parent
93835e0106
commit
8f71c331d4
@@ -22,17 +22,19 @@ typedef struct RuntimeContext {
|
||||
~RuntimeContext() {
|
||||
int err;
|
||||
for (const auto &key : bsk) {
|
||||
if (key.first != "_concretelang_base_context_bsk")
|
||||
free_lwe_bootstrap_key_u64(&err, key.second);
|
||||
if (key.first != "_concretelang_base_context_bsk")
|
||||
free_lwe_bootstrap_key_u64(&err, key.second);
|
||||
}
|
||||
}
|
||||
} RuntimeContext;
|
||||
}
|
||||
}
|
||||
} // namespace concretelang
|
||||
} // namespace mlir
|
||||
|
||||
extern "C" {
|
||||
LweKeyswitchKey_u64 *get_keyswitch_key(mlir::concretelang::RuntimeContext *context);
|
||||
LweKeyswitchKey_u64 *
|
||||
get_keyswitch_key(mlir::concretelang::RuntimeContext *context);
|
||||
|
||||
LweBootstrapKey_u64 *get_bootstrap_key(mlir::concretelang::RuntimeContext *context);
|
||||
LweBootstrapKey_u64 *
|
||||
get_bootstrap_key(mlir::concretelang::RuntimeContext *context);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -11,11 +11,13 @@
|
||||
#include <hpx/include/runtime.hpp>
|
||||
#endif
|
||||
|
||||
LweKeyswitchKey_u64 *get_keyswitch_key(mlir::concretelang::RuntimeContext *context) {
|
||||
LweKeyswitchKey_u64 *
|
||||
get_keyswitch_key(mlir::concretelang::RuntimeContext *context) {
|
||||
return context->ksk;
|
||||
}
|
||||
|
||||
LweBootstrapKey_u64 *get_bootstrap_key(mlir::concretelang::RuntimeContext *context) {
|
||||
LweBootstrapKey_u64 *
|
||||
get_bootstrap_key(mlir::concretelang::RuntimeContext *context) {
|
||||
int err;
|
||||
#ifdef CONCRETELANG_PARALLEL_EXECUTION_ENABLED
|
||||
std::string threadName = hpx::get_thread_name();
|
||||
|
||||
Reference in New Issue
Block a user