homenc / HElib

HElib is an open-source software library that implements homomorphic encryption. It supports the BGV scheme with bootstrapping and the Approximate Number CKKS scheme. HElib also includes optimizations for efficient homomorphic evaluation, focusing on effective use of ciphertext packing techniques and on the Gentry-Halevi-Smart optimizations.
https://homenc.github.io/HElib
Other
3.11k stars 759 forks source link

To build on Mac m1 #468

Closed rvjansen closed 11 months ago

rvjansen commented 2 years ago

The clang compiler on the M1 macs does not like -march=native. This can be remedied by a

set(PRIVATE_HELIB_CXX_FLAGS "-mcpu=lightning")

in the CmakeLists.txt file. This issue documents the change.

fedejinich commented 1 year ago

this helped me, but instead of using "mpcpu" I used

set(PRIVATE_HELIB_CXX_FLAGS "-mcpu=apple-m1")