Visa-Research / volepsi

Efficient Private Set Intersection base on VOLE
MIT License
98 stars 32 forks source link

build err on Macos #55

Closed WandQ closed 7 months ago

WandQ commented 7 months ago

python3 build.py -DVOLE_PSI_ENABLE_BOOST=ON -DVOLE_PSI_ENABLE_RELIC=OFF -DVOLE_PSI_ENABLE_SODIUM=ON -DVOLE_PSI_ENABLE_SSE=OFF -DFETCH_ALL=ON

.... /Users/admin/code/volepsi/volePSI/PaxosImpl.h:1144:52: fatal error: use of undeclared identifier '_MM_HINT_T0' _mm_prefetch((const char*)&mCols[colIdx2], _MM_HINT_T0); ^ 1 error generated. make[2]: [volePSI/CMakeFiles/volePSI.dir/RsCpsi.cpp.o] Error 1 make[1]: [volePSI/CMakeFiles/volePSI.dir/all] Error 2 make: *** [all] Error 2

WandQ commented 7 months ago

Can I delete the code from line 1142 to line 1145 in the file PaxosImpl.h to solve the problem? Or is there any alternative solution? Here is the code: if (node.mWeight == 1) { _mm_prefetch((const char*)&mCols[colIdx2], _MM_HINT_T0); }

ladnir commented 7 months ago

You can delete and I'll fix this

WandQ commented 7 months ago

Okay, thank you for your response😊. This code is just a small optimization, it won't cause any bugs if I remove it, right?

ladnir commented 7 months ago

That is correct