- Tested on Intel-based (x86_64) MacBook, not tested on M1/M2 (ARM)
- Apple Clang does not support
-fopenmp
and-libseal
, use GCC or CLANG
% git clone --recursive https://github.com/ibarrond/Pyfhel
2.a) create requirements.txt
file
"setuptools<=60.9",
"wheel",
"cython>=3.0.0a9",
"numpy>=1.20",
"cmake>=3.15",
"toml>=0.10"
2.b) % pip3 install -r requirements.txt
- edit
pyproject.toml
Line #111 [Afhel
]
extra_compile_args
{Darwin = ["-std=c++17","-O3","-fopenmp"]},
extra_link_args
{Darwin = ["-fopenmp","-dynamiclib"]},
Repeat the above for [CYTHON EXTENSIONS
]