building c bindings for gpufaiss #2000
-
I must be missing something dumb but I cant seem to build it. I built faiss with DFAISS_ENABLE_C_API=ON and I get under the build folder the c_api folder, which has libfaiss_c.so. It has as well a gpu folder, which in the install here is says just cd into the gpu folder and do make. But that doesn't seem to do anything, and I dont see any other target in the makefile which seems relevant.. What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Oh, that part of the documentation is out of date. It used to work that way, but the process is now fully integrated into CMake since version 1.7.1. The |
Beta Was this translation helpful? Give feedback.
-
Hey @Enet4, in continuation to the previous.. I realized that the releaseGpuResource isn't implemented as well, and am having trouble implementing it.. Im getting the 2 errors which hint to me that I'm close but missing the cast functionality:
I see in StandardGpuResource_c.h the classes are defined with FAISS_DECLARE_CLASS_INHERITED(StandardGpuResources, GpuResourcesProvider).. reinterpret_cast<GpuResourcesProvider*>(res)->getResources() Any insight as to how I could call the reinterpret_cast functionality from go? |
Beta Was this translation helpful? Give feedback.
Oh, that part of the documentation is out of date. It used to work that way, but the process is now fully integrated into CMake since version 1.7.1. The
faiss_c
library will also expose the GPU part of the C API when built with the right options.