How to replace add/multiplication operation with other adders

We are exploring methods to enhance arithmetic operations using various types of adders, such as the Carry-Save Adder, Brent-Kung Adder, and others. Similarly, we are investigating optimization techniques for multiplication operations.

Thank you in advance!

Hello @pradeep508

Addition and multiplication operations are done using the TFHE-rs backend. If you want to experiment with different implementations then you need to update the backend. For example, you can change the addition function here.

Hi @ayoub
we are getting build error
error: failed to run custom build command for concrete-cpu v1.75.0 (/home/user/Desktop/concrete-main/backends/concrete-cpu/implementation)

Have you followed the provided instructions to build the Compiler here? More logs would also be helpful in identifying what’s failing.

building is not going propely. getting errors at every step.
FAILED: tools/concretelang/concrete-protocol/CMakeFiles/concrete-protocol.dir/concrete-protocol.capnp.c++.o
/home/user/Desktop/concrete/compilers/concrete-compiler/compiler/build/tools/concretelang/concrete-protocol/concrete-protocol.capnp.c++:44:62: error: extra ‘;’ [-Werror=pedantic]
44 | CAPNP_DEFINE_ENUM(KeyType_e9c66eb80e60b9ea, e9c66eb80e60b9ea);

installed rust not taken into account while building

Can you please provide the steps? how to build with necessary prerequisites.

thanks in advance

Which compiler versions are you using? For Rust, I guess it’s maybe your PATH which isn’t setup properly.