Skip to content

How to use faiss.index_cpu_to_all_gpus() for faiss.IndexBinaryFlat? #2226

@anoubhav

Description

@anoubhav

I want to use multiple GPUs while using the binary flat index.
When I run faiss.index_cpu_to_all_gpus(faiss.IndexBinaryFlat(d)), I get the following error:

TypeError: Wrong number or type of arguments for overloaded function 'index_cpu_to_gpu_multiple'.
  Possible C/C++ prototypes are:
    faiss::gpu::index_cpu_to_gpu_multiple(std::vector< faiss::gpu::GpuResourcesProvider * > &,std::vector< int > &,faiss::Index const *,faiss::gpu::GpuMultipleClonerOptions const *)
    faiss::gpu::index_cpu_to_gpu_multiple(std::vector< faiss::gpu::GpuResourcesProvider * > &,std::vector< int > &,faiss::Index const *)

I don't get this error when using L2 flat index. faiss.index_cpu_to_all_gpus(faiss.IndexFlatL2(d))

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions