Closed
[Bug]: 在输入不支持的nlist时,程序运行报错:Aborted (core dumped),建议对不合法的nlist进行提前校验 #46
爽Add on Sep 4Closed at Sep 8
xiangjie10
Sep 4 Comments:
Sep 4 Comments:
👋 您好,感谢向 faiss 提交 Issue!
🎉 我们已收到您的反馈,感谢你对开源社区的支持!
📅 处理时效 维护团队将在工作日 24 小时内查看并回复您的问题。
🔍 自助排查(推荐优先查看) 在等待回复期间,您可以先查阅仓库README以及历史 Issue 中相似问题的解决方案,多数问题可快速解决。
💡 为了更快定位问题,请您确保 Issue 包含:
- 清晰的问题描述
- 可复现的操作步骤
- 相关日志、截图或环境信息
我们会尽快跟进,感谢您的理解与配合!


xiangjie10
Sep 4 Comments:
Sep 4 Comments:
/label add triaged


Sep 4 Added label: bug
Sep 4 Added label: triaged
Sep 8 Associated pull request
Sep 8 Close issue
Sep 8 changed custom state from TODO to DONE
Sep 8 Added label: resolved
在提交新问题之前,请确保您已经在社区中搜索过相关问题,并使用了社区中提供的资源/工具后,仍未找到满意的解决方式。
⚠️ 安全信息提醒:请仔细检查提供的文本内容,确保其不包含敏感数据信息,包括但不限于:
在分享配置信息或代码示例时,请将敏感信息脱敏处理,或使用
<TOKEN>等占位符替代原有内容。环境信息
🐛 问题描述
在输入不支持的nlist时,程序运行报错:Aborted (core dumped),建议对不合法的nlist进行提前校验
============================================================
IVFPQ 精度测试: d=128, nb=1000000, nq=8, nlist=123, M=32, nbits=8, nprobe=32, k=10, metric=IP, opq=False, by_residual=False, niter=3, train_seed=1234, nredo=1
[cache] 模式=auto
[cache] 路径=ivfpq_cache/ivfpq_32_123_1000000_4cf7e7e37502e9ec.index
[data-cache] 目录=ivfpq_cache, 模式=auto
[data-cache] 已加载数据集: ivfpq_cache/dataset_c27f71d5175e6020_xb.npy (+xq)
数据: 底库 (1000000, 128), 查询 (8, 128)
============================================================
NPU 索引准备: NpuIndexIVFPQ (nlist=123, M=32, nbits=8)
检测到 16 个 NPU 设备&) at /workspace/faiss/faiss/npu/impl/IVFPQ.cpp:1246; details: ACL error 561002 at /workspace/faiss/faiss/npu/impl/IVFPQ.cpp:1246&) at /workspace/faiss/faiss/npu/impl/IVFPQ.cpp:1246; details: ACL error 561002 at /workspace/faiss/faiss/npu/impl/IVFPQ.cpp:1246
NPU 资源获取成功
[distributed] deviceList = [8, 9]
[distributed] cp.max_points_per_centroid=40
创建索引完成 (0.00s)
[distributed] deviceList(actual) = [8, 9]
NPU 训练中...
Faiss assertion 'acl_err == ACL_SUCCESS' failed in static void faiss::npu::IVFPQ::runTrainAssignOp(faiss::npu::NpuResources*, int, float*, float*, float*, int32_t*, int, int, aclrtStream, faiss::npu::DeviceVector
Faiss assertion 'acl_err == ACL_SUCCESS' failed in static void faiss::npu::IVFPQ::runTrainAssignOp(faiss::npu::NpuResources*, int, float*, float*, float*, int32_t*, int, int, aclrtStream, faiss::npu::DeviceVector
Aborted (core dumped)
[root@f4841fb36eb7 mxIndex]#
欢迎加入社区,感谢您对社区的贡献 🎉!