def METHOD_NAME(self):
    if faiss.get_num_gpus() == 1:
        res = faiss.StandardGpuResources()
        self.index = faiss.index_cpu_to_gpu(res, 0, self.index)
    else:
        cloner_options = faiss.GpuMultipleClonerOptions()
        cloner_options.shard = True
        self.index = faiss.index_cpu_to_all_gpus(self.index, co=cloner_options)
    return self.index