-
Hi, I tried to build libfaiss.so myself using an earlier version of FAISS source (1.7.2) but the shared lib are linked with un-wanted libs. I used the following cmake options
which generated
I have gcc-11, gcc-12, gcc-13, gcc-14 and they are install under /opt/gcc-??/ and I would like to build with specific compiler but looks like LDFLAGS and maybe even CXXFLAGS are ignored by FAISS build. I would like link to say, the gcc-12's /opt/3p/lib64/libstdc++.so.6 and libgomp.so.1 rather than the system's /usr/lib/x86_64-linux-gnu/libstdc++.so.6 and /usr/lib/x86_64-linux-gnu/libgomp.so.1. Any help would be greatly appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
With added debugging, I found the link command is as following. As you can see the linkage path is correctly specified as
|
Beta Was this translation helpful? Give feedback.
-
OK. A coworker helped to figure out that I should've used "-DMKL_LIBRARIES=-lopenblas" and then I was able to link it to gcc-13 libs. Of course we had to patch faiss.h to make it compile for gcc-13. |
Beta Was this translation helpful? Give feedback.
OK. A coworker helped to figure out that I should've used "-DMKL_LIBRARIES=-lopenblas" and then I was able to link it to gcc-13 libs. Of course we had to patch faiss.h to make it compile for gcc-13.