Open xmy7216 opened 6 years ago
I had a similar problem just now. The error would only appear in CMake Release
-like builds. For me, the operation failed in Hamming::operator()
at the popcnt64
instruction. Building the binary with gcc's -march=native
option resolved the issue for me.
I want to match binary features using Hamming distance. My binary features have 64*64 dimentionality. So I choose the HierarchicalClusteringIndexParams to build the index. In order to reduce the mem, I use unsigned long to storage 64bits binary features.
when nnindex->buildIndex(), I get the Segmentation fault. Why? The gdb backtrace is as follow:
Isn't the Hamming distance supporting the datatype unsigned long?
Thank you very much for your answer. @mariusmuja