From d788b95e01086eabc725c68f0732d6f40e610858 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Wed, 9 Apr 2025 08:45:29 +0000 Subject: [PATCH 01/34] update IndexSDK/README.md. Signed-off-by: fuhongben --- IndexSDK/README.md | 81 +++++++++++++++++++++++++++++----------------- 1 file changed, 51 insertions(+), 30 deletions(-) diff --git a/IndexSDK/README.md b/IndexSDK/README.md index 14c8f57f8..37889f943 100644 --- a/IndexSDK/README.md +++ b/IndexSDK/README.md @@ -1,12 +1,13 @@ # Index SDK-test -#### 介绍 +### 1.介绍 **本仓库提供了昇腾Index SDK 组件实现的几种常见检索算法的demo** -#### 版本配套表 +#### 1.1版本配套表 | MindSDK版本 | Index SDK版本 | CANN版本 | HDK版本 | 硬件形态 | | -------------- | ------------ | -------- | -------- | --------- | -| master | 6.0.RC3 | 8.0.RC3 | 24.1.RC2 | Atlas推理系列产品 Atlas200/300/500 800I A2推理产品 | +| master | 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | Atlas推理系列产品 Atlas200/300/500 800I A2推理产品 | +| master | 5.0.0 | 7.0.0 | 23.0.0 | Atlas推理系列产品 Atlas200/300/500推理产品 | 之前版本请参见:https://gitee.com/ascend/ascend-referenceapps/tree/master/IndexSDK_samples @@ -14,13 +15,14 @@ master分支对应版本mxIndex 6.0.RC2、mxIndex 6.0.RC1,依赖faiss版本为 mxIndex-faiss1.7.1分支对应版本mxIndex 5.0.0、mxIndex 5.0.1,依赖faiss版本为1.7.1 -#### 关于MindSDK 更多信息 +#### 1.2关于MindSDK 更多信息 请关注昇腾社区[MindSDK](https://www.hiascend.com/zh/software/mindx-sdk)的最新版本 -#### 安装教程 +### 2.安装教程 -1. Index SDK [安装文档](https://www.hiascend.com/document/detail/zh/mind-sdk/50rc1/featureretrieval/mxindexfrug/mxindexfrug_0001.html) +1. Index SDK [安装文档](https://www.hiascend.com/document/detail/zh/mindsdk/600/index/indexug/mxindexfrug_0007.html) +**请根据用户指南中的安装部署章节完成Index SDK的安装** 2. gtest安装教程 ``` shell wget https://github.com/google/googletest/archive/refs/tags/release-1.8.1.tar.gz && \ @@ -29,29 +31,48 @@ cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/gtest . && make - cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 ``` -#### 测试用例说明 -| 用例名称 | 用例说明 | -| ---------- | ------------------------------------------- | -| TestAscendIndexFlat | FP32转FP16 暴搜demo | -| TestAscendIndexInt8Flat | 底库数据为int8 暴搜demo | -| TestAscendIndexInt8FlatWithSQ | FP32 SQ 量化为 int8 后, 暴搜demo | -| TestAscendIndexSQ | FP32 SQ 量化为Int8后,反量化暴搜demo | -| TestAscendIndexBinaryFlat | 二值化底库特征汉明距离暴搜demo | -| TestAscendIndexTS | 时空库,hamming距离,带属性过滤demo | -| TestAscendIndexTS_int8Cos | 时空库,int8 cos距离,带属性过滤demo | -| TestAscendIndexIVFSQ.cpp | IVFSQ 算法demo | -| TestAscendIndexAggressTs.cpp | 时空库 IP距离,带属性过滤 支持组batch demo | -| TestAscendIReduction.cpp | 降维算法 NN降维 Pcar降维 demo | -| TestAscendIndexCluster.cpp | FP32 聚类场景 暴搜demo | -| TestAscendIndexIVFSP.cpp | IVFSP近似检索算法demo | -| TestAscendIndexIVFSQT.cpp | IVFSQT近似检索算法demo | -| TestAscendIndexIVFSQTwithCpuFlat.cpp | IVFSQT粗搜加cpu精搜demo | -| TestAscendIndexInt8FlatWithCPU.cpp | 底库数据为int8 CPU同步落盘 demo | -| TestAscendIndexInt8FlatWithReduction.cpp | FP32 降维量化为Int8后,暴搜demo | -| TestAscendMultiSearch.cpp | 多Index批量检索demo | -| TestAscendIndexSQMulPerformance.cpp | 布控库 SQ IP距离 demo | -| TestAscendIndexGreat.cpp | great近似检索算法demo | -| TestAscendIndexVStar.cpp | vstar近似检索算法demo | +### 3.代码目录结构说明 + +``` +. +|-- CMakeLists.txt +|-- Dockerfile +| |-- Dockerfile-ascend-toolkit.txt # 昇腾镜像文件 +| |-- Dockerfile-ascendbase-infer.txt # 基础镜像文件 +| `-- install_deps.sh # 依赖下载安装脚本 +|-- README.md +|-- TestAscendIReduction.cpp # 降维算法 NN降维 Pcar降维 demo +|-- TestAscendIndexAggressTs.cpp # 时空库 IP距离,带属性过滤 支持组batch demo +|-- TestAscendIndexBinaryFlat.cpp # 二值化底库特征汉明距离 BinaryFlat算法demo +|-- TestAscendIndexCluster.cpp # FP32 聚类场景 AscendCluster算法demo +|-- TestAscendIndexFlat.cpp # FP32转FP16 Flat算法暴搜demo +|-- TestAscendIndexGreat.cpp # Great近似检索算法demo +|-- TestAscendIndexIVFSP.cpp # IVFSP近似检索算法demo +|-- TestAscendIndexIVFSQ.cpp # IVFSQ 近似检索算法demo +|-- TestAscendIndexIVFSQT.cpp # IVFSQT近似检索算法demo +|-- TestAscendIndexIVFSQTwithCpuFlat.cpp # IVFSQT粗搜加cpu精搜demo +|-- TestAscendIndexInt8Flat.cpp # 底库数据为int8 int8Flat算法暴搜demo +|-- TestAscendIndexInt8FlatWithCPU.cpp # 底库数据为int8 int8Flat算法CPU同步落盘 demo +|-- TestAscendIndexInt8FlatWithReduction.cpp # FP32 降维量化为Int8后,int8Flat算法暴搜demo +|-- TestAscendIndexInt8FlatWithSQ.cpp # FP32 SQ 量化为 int8后, 暴搜demo +|-- TestAscendIndexSQ.cpp # FP32 SQ 量化为Int8后,反量化SQ算法暴搜demo +|-- TestAscendIndexSQMulPerformance.cpp # 布控库 IP距离 SQ算法demo +|-- TestAscendIndexTS.cpp # 时空库,汉明距离,带属性过滤demo +|-- TestAscendIndexTS_int8Cos.cpp # 时空库,int8 cos距离,带属性过滤demo +|-- TestAscendIndexVStar.cpp # VStar近似检索算法demo +|-- TestAscendMultiSearch.cpp # 多Index批量检索demo +|-- build.sh # 编译安装脚本 +|-- dependencies.cmake # +`-- faiss-python # python接口 + |-- Faiss安装参考.md # python接口安装说明 + |-- MANIFEST.in + |-- Makefile + |-- ascendfaiss.py + |-- setup.py + |-- swig_ascendfaiss.swig + `-- test_ascend_index_flat.py # flat算法demo + +``` **注:**TestAscendIndexIVFSP.cpp 需要根据实际情况填写数据集(特征数据、查询数据、groundtruth数据)、码本,所在的目录。 **注:**TestAscendIndexGreat.cpp 需要根据实际情况填写数据集(特征数据、查询数据、groundtruth数据)、码本,所在的目录。 @@ -59,7 +80,7 @@ cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 TestAscendIReduction.cpp 需要根据实际情况填写对应的NN降维模型所在的目录。 -#### Demo使用说明 +### 4.Demo使用说明 1. 请先正确安装Index SDK 组件及其依赖的driver、firmware、Ascend toolkit、OpenBLAS、Faiss -- Gitee From cb5121e58d7ecefb88cda94885399ae91fa7416f Mon Sep 17 00:00:00 2001 From: fuhongben Date: Wed, 9 Apr 2025 09:21:40 +0000 Subject: [PATCH 02/34] update IndexSDK/README.md. Signed-off-by: fuhongben --- IndexSDK/README.md | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/IndexSDK/README.md b/IndexSDK/README.md index 37889f943..c1dd23e11 100644 --- a/IndexSDK/README.md +++ b/IndexSDK/README.md @@ -1,9 +1,9 @@ # Index SDK-test -### 1.介绍 +### 介绍 **本仓库提供了昇腾Index SDK 组件实现的几种常见检索算法的demo** -#### 1.1版本配套表 +#### 版本配套表 | MindSDK版本 | Index SDK版本 | CANN版本 | HDK版本 | 硬件形态 | | -------------- | ------------ | -------- | -------- | --------- | | master | 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | Atlas推理系列产品 Atlas200/300/500 800I A2推理产品 | @@ -15,14 +15,13 @@ master分支对应版本mxIndex 6.0.RC2、mxIndex 6.0.RC1,依赖faiss版本为 mxIndex-faiss1.7.1分支对应版本mxIndex 5.0.0、mxIndex 5.0.1,依赖faiss版本为1.7.1 -#### 1.2关于MindSDK 更多信息 +#### 关于MindSDK 更多信息 请关注昇腾社区[MindSDK](https://www.hiascend.com/zh/software/mindx-sdk)的最新版本 -### 2.安装教程 +### 安装教程 -1. Index SDK [安装文档](https://www.hiascend.com/document/detail/zh/mindsdk/600/index/indexug/mxindexfrug_0007.html) -**请根据用户指南中的安装部署章节完成Index SDK的安装** +1. Index SDK [用户指南](https://www.hiascend.com/document/detail/zh/mindsdk/600/index/indexug/mxindexfrug_0007.html) 2. gtest安装教程 ``` shell wget https://github.com/google/googletest/archive/refs/tags/release-1.8.1.tar.gz && \ @@ -31,7 +30,7 @@ cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=/usr/local/gtest . && make - cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 ``` -### 3.代码目录结构说明 +### 代码目录结构说明 ``` . @@ -62,14 +61,14 @@ cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 |-- TestAscendIndexVStar.cpp # VStar近似检索算法demo |-- TestAscendMultiSearch.cpp # 多Index批量检索demo |-- build.sh # 编译安装脚本 -|-- dependencies.cmake # +|-- dependencies.cmake `-- faiss-python # python接口 |-- Faiss安装参考.md # python接口安装说明 |-- MANIFEST.in |-- Makefile |-- ascendfaiss.py |-- setup.py - |-- swig_ascendfaiss.swig + |-- swig_ascendfaiss.swig # swig 配置文件 `-- test_ascend_index_flat.py # flat算法demo ``` @@ -80,9 +79,9 @@ cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 TestAscendIReduction.cpp 需要根据实际情况填写对应的NN降维模型所在的目录。 -### 4.Demo使用说明 +### Demo使用说明 -1. 请先正确安装Index SDK 组件及其依赖的driver、firmware、Ascend toolkit、OpenBLAS、Faiss +**1. 请先正确安装Index SDK 组件及其依赖的driver、firmware、Ascend toolkit、OpenBLAS、Faiss** (具体可参考用户指南 安装部署章节) 2. 修改dependencies.cmake 中的 MXINDEX_HOME ``` @@ -109,15 +108,13 @@ MXINDEX_INSTALL_PATH为Index SDK实际安装路径,本例中为/home/work/Feat 所有算子生成的python文件均在MXINDEX_INSTALL_PATH/tools/目录下,可执行 -h参数 查看具体参数意义 -用例所需生成算子命令已写明在用例注释里。 - 以TestAscendIndexFlat.cpp中需要生成的Flat算子为例, 执行: ``` cd ${MXINDEX_INSTALL_PATH}/ops/ bash custom_opp_{arch}.run cd ${MXINDEX_INSTALL_PATH}/tools/ -生成aicpu和flat的算子 +生成aicpu和flat 512维的算子 ``` 算子默认生成在${MXINDEX_INSTALL_PATH}/tools/op_models 路径下,将算子移动至算子目录,执行: -- Gitee From c6c2bfdc88ff3fef7b25f844c04b9f4d53ae777f Mon Sep 17 00:00:00 2001 From: fuhongben Date: Wed, 9 Apr 2025 09:24:10 +0000 Subject: [PATCH 03/34] =?UTF-8?q?update=20IndexSDK/faiss-python/Faiss?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=8F=82=E8=80=83.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fuhongben --- .../Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" | 1 + 1 file changed, 1 insertion(+) diff --git "a/IndexSDK/faiss-python/Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" "b/IndexSDK/faiss-python/Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" index 8ab75f429..8a0fbb42b 100644 --- "a/IndexSDK/faiss-python/Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" +++ "b/IndexSDK/faiss-python/Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" @@ -210,6 +210,7 @@ cd faiss-1.7.1 # ascendfaiss编译 +**编译前请完成Index SDK的安装** MXINDEX_INSTALL_PATH为安装路径 1、设置软件安装路径信息,根据实际情况配置 -- Gitee From 035f9350619f597378046779ea4a514093919ede Mon Sep 17 00:00:00 2001 From: fuhongben Date: Wed, 9 Apr 2025 09:27:13 +0000 Subject: [PATCH 04/34] =?UTF-8?q?update=20IndexSDK/faiss-python/Faiss?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E5=8F=82=E8=80=83.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: fuhongben --- .../Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git "a/IndexSDK/faiss-python/Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" "b/IndexSDK/faiss-python/Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" index 8a0fbb42b..4cd788bf2 100644 --- "a/IndexSDK/faiss-python/Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" +++ "b/IndexSDK/faiss-python/Faiss\345\256\211\350\243\205\345\217\202\350\200\203.md" @@ -210,7 +210,8 @@ cd faiss-1.7.1 # ascendfaiss编译 -**编译前请完成Index SDK的安装** MXINDEX_INSTALL_PATH为安装路径 +**编译前请完成Index SDK的安装 并生成aicpu和flat 512维的算子** MXINDEX_INSTALL_PATH为安装路径 + 1、设置软件安装路径信息,根据实际情况配置 -- Gitee From eeb1f7a3d110bf388055b10cdbf3801d533c244f Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 01:54:40 +0000 Subject: [PATCH 05/34] update IndexSDK/README.md. Signed-off-by: fuhongben --- IndexSDK/README.md | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/IndexSDK/README.md b/IndexSDK/README.md index c1dd23e11..a0ce3f3f1 100644 --- a/IndexSDK/README.md +++ b/IndexSDK/README.md @@ -66,8 +66,8 @@ cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 |-- Faiss安装参考.md # python接口安装说明 |-- MANIFEST.in |-- Makefile - |-- ascendfaiss.py - |-- setup.py + |-- ascendfaiss.py # 接口配置脚本 + |-- setup.py # 安装脚本 |-- swig_ascendfaiss.swig # swig 配置文件 `-- test_ascend_index_flat.py # flat算法demo @@ -81,20 +81,28 @@ cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 ### Demo使用说明 -**1. 请先正确安装Index SDK 组件及其依赖的driver、firmware、Ascend toolkit、OpenBLAS、Faiss** (具体可参考用户指南 安装部署章节) +1. **请先正确安装Index SDK 组件及其依赖的driver、firmware、Ascend toolkit、OpenBLAS、Faiss** (具体可参考用户指南 安装部署章节) -2. 修改dependencies.cmake 中的 MXINDEX_HOME +2. 进入IndexSDK目录 +``` +cd mindxsdk-referenceapps/IndexSDK/ +``` + +3. 修改dependencies.cmake 中的 MXINDEX_HOME ``` SET(MXINDEX_HOME /home/work/FeatureRetrieval/mxIndex/ CACHE STRING "") ``` 本例中Index SDK默认安装路径为 /home/work/FeatureRetrieval/mxIndex/,可将其修改为Index SDK实际安装路径。 +``` +export MXINDEX_INSTALL_PATH=/home/work/FeatureRetrieval/mxIndex/ +``` -3. 执行一下命令编译demo +4. 执行build.sh编译demo ``` shell bash build.sh ``` -4. 设置环境变量与生成算子 +5. 设置环境变量与生成算子 执行如下命令设置环境变量(根据CANN软件包的实际安装路径修改): ``` -- Gitee From e911f1282f0cd6490bfc5c68bf8f142db68789ff Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 03:14:43 +0000 Subject: [PATCH 06/34] update IndexSDK/README.md. Signed-off-by: fuhongben --- IndexSDK/README.md | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/IndexSDK/README.md b/IndexSDK/README.md index a0ce3f3f1..d20007940 100644 --- a/IndexSDK/README.md +++ b/IndexSDK/README.md @@ -7,14 +7,9 @@ | MindSDK版本 | Index SDK版本 | CANN版本 | HDK版本 | 硬件形态 | | -------------- | ------------ | -------- | -------- | --------- | | master | 6.0.RC3 | 8.0.RC3 | 24.1.RC3 | Atlas推理系列产品 Atlas200/300/500 800I A2推理产品 | -| master | 5.0.0 | 7.0.0 | 23.0.0 | Atlas推理系列产品 Atlas200/300/500推理产品 | - -之前版本请参见:https://gitee.com/ascend/ascend-referenceapps/tree/master/IndexSDK_samples master分支对应版本mxIndex 6.0.RC2、mxIndex 6.0.RC1,依赖faiss版本为1.7.4 -mxIndex-faiss1.7.1分支对应版本mxIndex 5.0.0、mxIndex 5.0.1,依赖faiss版本为1.7.1 - #### 关于MindSDK 更多信息 请关注昇腾社区[MindSDK](https://www.hiascend.com/zh/software/mindx-sdk)的最新版本 @@ -84,8 +79,10 @@ cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 1. **请先正确安装Index SDK 组件及其依赖的driver、firmware、Ascend toolkit、OpenBLAS、Faiss** (具体可参考用户指南 安装部署章节) 2. 进入IndexSDK目录 +本例中demo默认安装路径为 /home/work/,可将其修改为demo实际安装路径。 ``` -cd mindxsdk-referenceapps/IndexSDK/ +export INDEXDEMO_INSTALL_PATH=/home/work/ +cd ${INDEXDEMO_INSTALL_PATH}/mindxsdk-referenceapps/IndexSDK/ ``` 3. 修改dependencies.cmake 中的 MXINDEX_HOME @@ -94,7 +91,7 @@ SET(MXINDEX_HOME /home/work/FeatureRetrieval/mxIndex/ CACHE STRING "") ``` 本例中Index SDK默认安装路径为 /home/work/FeatureRetrieval/mxIndex/,可将其修改为Index SDK实际安装路径。 ``` -export MXINDEX_INSTALL_PATH=/home/work/FeatureRetrieval/mxIndex/ +export INDEX_INSTALL_PATH=/home/work/FeatureRetrieval/mxIndex/ ``` 4. 执行build.sh编译demo @@ -107,7 +104,7 @@ bash build.sh 执行如下命令设置环境变量(根据CANN软件包的实际安装路径修改): ``` source /usr/local/Ascend/ascend-toolkit/set_env.sh -export LD_LIBRARY_PATH=${MXINDEX_INSTALL_PATH}/host/lib:$LD_LIBRARY_PATH +export LD_LIBRARY_PATH=${INDEX_INSTALL_PATH}/host/lib:$LD_LIBRARY_PATH ``` MXINDEX_INSTALL_PATH为Index SDK实际安装路径,本例中为/home/work/FeatureRetrieval/mxIndex/ @@ -118,27 +115,27 @@ MXINDEX_INSTALL_PATH为Index SDK实际安装路径,本例中为/home/work/Feat 以TestAscendIndexFlat.cpp中需要生成的Flat算子为例, 执行: ``` -cd ${MXINDEX_INSTALL_PATH}/ops/ +cd ${INDEX_INSTALL_PATH}/ops/ bash custom_opp_{arch}.run -cd ${MXINDEX_INSTALL_PATH}/tools/ +cd ${INDEX_INSTALL_PATH}/tools/ 生成aicpu和flat 512维的算子 ``` -算子默认生成在${MXINDEX_INSTALL_PATH}/tools/op_models 路径下,将算子移动至算子目录,执行: +算子默认生成在${INDEX_INSTALL_PATH}/tools/op_models 路径下,将算子移动至算子目录,执行: ``` -mv ${MXINDEX_INSTALL_PATH}/tools/op_models/* ${MXINDEX_INSTALL_PATH}/modelpath/ +mv ${INDEX_INSTALL_PATH}/tools/op_models/* ${INDEX_INSTALL_PATH}/modelpath/ ``` 设置算子的环境变量: ``` -export $MX_INDEX_MODELPATH=${MXINDEX_INSTALL_PATH}/modelpath +export $MX_INDEX_MODELPATH=${INDEX_INSTALL_PATH}/modelpath ``` 注意:算子环境变量请勿使用软链接,而是算子实际所在目录。本例中为/home/work/FeatureRetrieval/mxIndex-{version}/modelpath/ -5. 在build目录中找到对应的二进制可执行文件 +6. 在build目录中找到对应的二进制可执行文件 以TestAscendIndexFlat.cpp为例,执行: ``` -cd build/ +cd ${INDEXDEMO_INSTALL_PATH}/mindxsdk-referenceapps/IndexSDK/build/ ./TestAscendIndexFlat ``` \ No newline at end of file -- Gitee From c6527bffebdb1841ce115d1a19378f1548f1215d Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:20:21 +0000 Subject: [PATCH 07/34] update IndexSDK/TestAscendIndexAggressTs.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexAggressTs.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexAggressTs.cpp b/IndexSDK/TestAscendIndexAggressTs.cpp index c0c58cb87..9875882f8 100644 --- a/IndexSDK/TestAscendIndexAggressTs.cpp +++ b/IndexSDK/TestAscendIndexAggressTs.cpp @@ -13,6 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ + + // 需要生成aicpu算子+ flat算法512维算子+ mask算子 #include #include #include -- Gitee From 26a658cb2c36262be6c17724f3133c24f4426d00 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:25:24 +0000 Subject: [PATCH 08/34] update IndexSDK/TestAscendIndexBinaryFlat.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexBinaryFlat.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexBinaryFlat.cpp b/IndexSDK/TestAscendIndexBinaryFlat.cpp index 554d4855d..806b05f39 100644 --- a/IndexSDK/TestAscendIndexBinaryFlat.cpp +++ b/IndexSDK/TestAscendIndexBinaryFlat.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成aicpu算子+ binary_flat算法512维算子 + #include #include #include -- Gitee From 1d15a3c293010661ebfb1827fa9623affa40517c Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:26:01 +0000 Subject: [PATCH 09/34] update IndexSDK/TestAscendIndexCluster.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexCluster.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexCluster.cpp b/IndexSDK/TestAscendIndexCluster.cpp index a85d05f4a..776334248 100644 --- a/IndexSDK/TestAscendIndexCluster.cpp +++ b/IndexSDK/TestAscendIndexCluster.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成aicpu算子和flat算法64维算子 + #include #include #include -- Gitee From 567f0ba3cfe5f3d938dd59f67e565fa1dc993a13 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:26:52 +0000 Subject: [PATCH 10/34] update IndexSDK/TestAscendIndexFlat.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexFlat.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexFlat.cpp b/IndexSDK/TestAscendIndexFlat.cpp index 1de8cea9d..587bedbda 100644 --- a/IndexSDK/TestAscendIndexFlat.cpp +++ b/IndexSDK/TestAscendIndexFlat.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ + // 需要生成aicpu算子+flat算法512维算子 + #include #include #include -- Gitee From 8578c75dda8462de34cf7c0ecbe179cc831f6289 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:27:10 +0000 Subject: [PATCH 11/34] update IndexSDK/TestAscendIndexAggressTs.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexAggressTs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndexSDK/TestAscendIndexAggressTs.cpp b/IndexSDK/TestAscendIndexAggressTs.cpp index 9875882f8..f50ba442e 100644 --- a/IndexSDK/TestAscendIndexAggressTs.cpp +++ b/IndexSDK/TestAscendIndexAggressTs.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ - // 需要生成aicpu算子+ flat算法512维算子+ mask算子 + // 需要生成aicpu算子+flat算法512维算子+ mask算子 #include #include #include -- Gitee From 6c8e619771622349b709cdd5792d674b1b590dd0 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:27:19 +0000 Subject: [PATCH 12/34] update IndexSDK/TestAscendIndexBinaryFlat.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexBinaryFlat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndexSDK/TestAscendIndexBinaryFlat.cpp b/IndexSDK/TestAscendIndexBinaryFlat.cpp index 806b05f39..65c809e05 100644 --- a/IndexSDK/TestAscendIndexBinaryFlat.cpp +++ b/IndexSDK/TestAscendIndexBinaryFlat.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -// 需要生成aicpu算子+ binary_flat算法512维算子 +// 需要生成aicpu算子+binary_flat算法512维算子 #include #include -- Gitee From f1ca41c8b2ff25872a7b51e8375096752a5bebaf Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:27:30 +0000 Subject: [PATCH 13/34] update IndexSDK/TestAscendIndexCluster.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexCluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndexSDK/TestAscendIndexCluster.cpp b/IndexSDK/TestAscendIndexCluster.cpp index 776334248..7855c7c8a 100644 --- a/IndexSDK/TestAscendIndexCluster.cpp +++ b/IndexSDK/TestAscendIndexCluster.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -// 需要生成aicpu算子和flat算法64维算子 +// 需要生成aicpu算子+flat算法64维算子 #include #include -- Gitee From 69379db9888d219355cda8c5753b01add4eff960 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:32:44 +0000 Subject: [PATCH 14/34] update IndexSDK/TestAscendIndexIVFSP.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexIVFSP.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexIVFSP.cpp b/IndexSDK/TestAscendIndexIVFSP.cpp index 2d9602645..9dfb3162b 100644 --- a/IndexSDK/TestAscendIndexIVFSP.cpp +++ b/IndexSDK/TestAscendIndexIVFSP.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ + // 需要生成aicpu算子+ivfsp_pycal算子(-d 256 -nonzero_num 64 -nlist 256 -batch_size 64 -code_num 32768)+ivfsp_model算子 + #include #include #include -- Gitee From 68c81f2a65eef3ca3249bf93c2518f20964eda7c Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:35:27 +0000 Subject: [PATCH 15/34] update IndexSDK/TestAscendIndexIVFSQ.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexIVFSQ.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/IndexSDK/TestAscendIndexIVFSQ.cpp b/IndexSDK/TestAscendIndexIVFSQ.cpp index 8d4e80fb4..c1bd5c0ad 100644 --- a/IndexSDK/TestAscendIndexIVFSQ.cpp +++ b/IndexSDK/TestAscendIndexIVFSQ.cpp @@ -14,6 +14,7 @@ * limitations under the License. */ +// 需要生成aicpu算子+ivfsq8算子(-d 64 -c 8192)+flat_at算子(-d 64 -c 8192) #include #include -- Gitee From e26fd40b992e81f63ef307b5bb5bb5594f7d8ce5 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:36:46 +0000 Subject: [PATCH 16/34] update IndexSDK/TestAscendIndexIVFSQT.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexIVFSQT.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexIVFSQT.cpp b/IndexSDK/TestAscendIndexIVFSQT.cpp index b2a0b54d1..894df28ab 100644 --- a/IndexSDK/TestAscendIndexIVFSQT.cpp +++ b/IndexSDK/TestAscendIndexIVFSQT.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成ivfsqt算子(-d 256 -c 16384)+flat_at算子(-d 256 -c 16384)+flat_at_int8算子(-d 256 -c 16384) + #include #include #include -- Gitee From 860e5f071e13bf510b4b64271fb079e49e5c0071 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:46:42 +0000 Subject: [PATCH 17/34] update IndexSDK/TestAscendIndexIVFSQTwithCpuFlat.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexIVFSQTwithCpuFlat.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/IndexSDK/TestAscendIndexIVFSQTwithCpuFlat.cpp b/IndexSDK/TestAscendIndexIVFSQTwithCpuFlat.cpp index 2d37daa93..ace202096 100644 --- a/IndexSDK/TestAscendIndexIVFSQTwithCpuFlat.cpp +++ b/IndexSDK/TestAscendIndexIVFSQTwithCpuFlat.cpp @@ -1,3 +1,6 @@ + +// 需要生成 aicpu算子+ivfsqt算子(-d 256 -c 16384)+flat_at算子(-d 256 -c 16384) + #include #include #include -- Gitee From 32f5f80143254db6e41ad0905d571c7e8af943f2 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:51:34 +0000 Subject: [PATCH 18/34] update IndexSDK/TestAscendIndexInt8Flat.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexInt8Flat.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexInt8Flat.cpp b/IndexSDK/TestAscendIndexInt8Flat.cpp index 5f3d2677f..25fa8f87b 100644 --- a/IndexSDK/TestAscendIndexInt8Flat.cpp +++ b/IndexSDK/TestAscendIndexInt8Flat.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成aicpu算子+int8flat算子(-d 512) + #include #include #include -- Gitee From 7137425eb18473a8cd03d84ee7797c14d4045842 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:52:31 +0000 Subject: [PATCH 19/34] update IndexSDK/TestAscendIndexInt8FlatWithCPU.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexInt8FlatWithCPU.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexInt8FlatWithCPU.cpp b/IndexSDK/TestAscendIndexInt8FlatWithCPU.cpp index 4c58352bf..3e64fde38 100644 --- a/IndexSDK/TestAscendIndexInt8FlatWithCPU.cpp +++ b/IndexSDK/TestAscendIndexInt8FlatWithCPU.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成 aicpu算子+int8flat算子(-d 512) + #include #include #include -- Gitee From 6dffe1b46c965eda38ff8b08a4515087fec824e6 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:55:37 +0000 Subject: [PATCH 20/34] update IndexSDK/TestAscendIndexInt8FlatWithReduction.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexInt8FlatWithReduction.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexInt8FlatWithReduction.cpp b/IndexSDK/TestAscendIndexInt8FlatWithReduction.cpp index 3530a1a79..4ff15f7a6 100644 --- a/IndexSDK/TestAscendIndexInt8FlatWithReduction.cpp +++ b/IndexSDK/TestAscendIndexInt8FlatWithReduction.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成aicpu算子+int8flat算子(-d 64) + #include #include #include -- Gitee From 3bb5e4a6f57707e19d7bda2a3c3559fb6e3e57da Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:56:28 +0000 Subject: [PATCH 21/34] update IndexSDK/TestAscendIndexInt8FlatWithSQ.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexInt8FlatWithSQ.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexInt8FlatWithSQ.cpp b/IndexSDK/TestAscendIndexInt8FlatWithSQ.cpp index de5129572..378dc8ebd 100644 --- a/IndexSDK/TestAscendIndexInt8FlatWithSQ.cpp +++ b/IndexSDK/TestAscendIndexInt8FlatWithSQ.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成aicpu算子+int8flat算子(-d 512) + #include #include #include -- Gitee From 3f633f2b8474d98cf09eb28ac63bc469ebc66d79 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:57:23 +0000 Subject: [PATCH 22/34] update IndexSDK/TestAscendIndexSQ.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexSQ.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexSQ.cpp b/IndexSDK/TestAscendIndexSQ.cpp index 4d61db730..404dc190a 100644 --- a/IndexSDK/TestAscendIndexSQ.cpp +++ b/IndexSDK/TestAscendIndexSQ.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成aicpu算子+sq8算子(-d 256)+sq8算子(-d 512) + #include #include #include -- Gitee From 713cd779cd336f5df248974b00b2c607b4c22d3d Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:58:06 +0000 Subject: [PATCH 23/34] update IndexSDK/TestAscendIndexSQMulPerformance.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexSQMulPerformance.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexSQMulPerformance.cpp b/IndexSDK/TestAscendIndexSQMulPerformance.cpp index c4d7fe13b..584631477 100644 --- a/IndexSDK/TestAscendIndexSQMulPerformance.cpp +++ b/IndexSDK/TestAscendIndexSQMulPerformance.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ + // 需要生成aicpu算子+sq8(-d 64) + #include #include #include -- Gitee From acb4346bb424ce04e7c6170ee0be68d16a952df1 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:59:02 +0000 Subject: [PATCH 24/34] update IndexSDK/TestAscendIndexTS.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexTS.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexTS.cpp b/IndexSDK/TestAscendIndexTS.cpp index 76def3cc8..51ca53de1 100644 --- a/IndexSDK/TestAscendIndexTS.cpp +++ b/IndexSDK/TestAscendIndexTS.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成aicpu算子+binary_flat算子(-d 512)+mask算子 + #include #include #include -- Gitee From ce72fe2420b12418218c43d6cc57b5bbed0cb3dd Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 06:59:47 +0000 Subject: [PATCH 25/34] update IndexSDK/TestAscendIndexTS_int8Cos.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexTS_int8Cos.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendIndexTS_int8Cos.cpp b/IndexSDK/TestAscendIndexTS_int8Cos.cpp index f150cbad0..a907a3237 100644 --- a/IndexSDK/TestAscendIndexTS_int8Cos.cpp +++ b/IndexSDK/TestAscendIndexTS_int8Cos.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ +// 需要生成aicpu算子+int8flat算子(-d 512)+mask算子 + #include #include #include -- Gitee From 0f435550ed8a19159226150c0c32f338f25afb05 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 07:00:53 +0000 Subject: [PATCH 26/34] update IndexSDK/TestAscendMultiSearch.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendMultiSearch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/IndexSDK/TestAscendMultiSearch.cpp b/IndexSDK/TestAscendMultiSearch.cpp index 985624a6c..8f47c0cc9 100644 --- a/IndexSDK/TestAscendMultiSearch.cpp +++ b/IndexSDK/TestAscendMultiSearch.cpp @@ -14,6 +14,8 @@ * limitations under the License. */ + // 需要生成aicpu算子+int8flat(-d 64)+sq8算子(-d 64) + #include #include #include -- Gitee From 2cc404f747b1cdfd124e468652aeb87ab9d3b288 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 07:01:10 +0000 Subject: [PATCH 27/34] update IndexSDK/TestAscendIndexAggressTs.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexAggressTs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndexSDK/TestAscendIndexAggressTs.cpp b/IndexSDK/TestAscendIndexAggressTs.cpp index f50ba442e..89cee55a3 100644 --- a/IndexSDK/TestAscendIndexAggressTs.cpp +++ b/IndexSDK/TestAscendIndexAggressTs.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ - // 需要生成aicpu算子+flat算法512维算子+ mask算子 + // 需要生成aicpu算子+flat算子(-d 512)+ mask算子 #include #include #include -- Gitee From 0a005b8010eb12377fe63ac231d0c69525e7e7e1 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 07:01:36 +0000 Subject: [PATCH 28/34] update IndexSDK/TestAscendIndexBinaryFlat.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexBinaryFlat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndexSDK/TestAscendIndexBinaryFlat.cpp b/IndexSDK/TestAscendIndexBinaryFlat.cpp index 65c809e05..6a197b659 100644 --- a/IndexSDK/TestAscendIndexBinaryFlat.cpp +++ b/IndexSDK/TestAscendIndexBinaryFlat.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -// 需要生成aicpu算子+binary_flat算法512维算子 +// 需要生成aicpu算子+binary_flat算子(-d 512) #include #include -- Gitee From c87cd32579ac5bf3d241572c3eb245ccbd5d60c3 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 07:02:02 +0000 Subject: [PATCH 29/34] update IndexSDK/TestAscendIndexCluster.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexCluster.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndexSDK/TestAscendIndexCluster.cpp b/IndexSDK/TestAscendIndexCluster.cpp index 7855c7c8a..72b76b599 100644 --- a/IndexSDK/TestAscendIndexCluster.cpp +++ b/IndexSDK/TestAscendIndexCluster.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ -// 需要生成aicpu算子+flat算法64维算子 +// 需要生成aicpu算子+flat算子(-d 64) #include #include -- Gitee From 7253416dc3a20d1ceb0a20abe156befa5c87c75f Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 07:02:41 +0000 Subject: [PATCH 30/34] update IndexSDK/TestAscendIndexFlat.cpp. Signed-off-by: fuhongben --- IndexSDK/TestAscendIndexFlat.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndexSDK/TestAscendIndexFlat.cpp b/IndexSDK/TestAscendIndexFlat.cpp index 587bedbda..18f36c0ea 100644 --- a/IndexSDK/TestAscendIndexFlat.cpp +++ b/IndexSDK/TestAscendIndexFlat.cpp @@ -14,7 +14,7 @@ * limitations under the License. */ - // 需要生成aicpu算子+flat算法512维算子 + // 需要生成aicpu算子+flat算子(-d 512) #include #include -- Gitee From 4fc1e4fd1f663a308b2ba08dad1da969b1ea3a60 Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 07:04:03 +0000 Subject: [PATCH 31/34] update IndexSDK/README.md. Signed-off-by: fuhongben --- IndexSDK/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IndexSDK/README.md b/IndexSDK/README.md index d20007940..cf1cf08f8 100644 --- a/IndexSDK/README.md +++ b/IndexSDK/README.md @@ -129,7 +129,7 @@ mv ${INDEX_INSTALL_PATH}/tools/op_models/* ${INDEX_INSTALL_PATH}/modelpath/ 设置算子的环境变量: ``` -export $MX_INDEX_MODELPATH=${INDEX_INSTALL_PATH}/modelpath +export MX_INDEX_MODELPATH=${INDEX_INSTALL_PATH}/modelpath ``` 注意:算子环境变量请勿使用软链接,而是算子实际所在目录。本例中为/home/work/FeatureRetrieval/mxIndex-{version}/modelpath/ -- Gitee From 225985929994a6c4f336d910f1487497e3c7912a Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 07:04:39 +0000 Subject: [PATCH 32/34] update IndexSDK/README.md. Signed-off-by: fuhongben --- IndexSDK/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/IndexSDK/README.md b/IndexSDK/README.md index cf1cf08f8..953baba8e 100644 --- a/IndexSDK/README.md +++ b/IndexSDK/README.md @@ -79,6 +79,7 @@ cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 1. **请先正确安装Index SDK 组件及其依赖的driver、firmware、Ascend toolkit、OpenBLAS、Faiss** (具体可参考用户指南 安装部署章节) 2. 进入IndexSDK目录 + 本例中demo默认安装路径为 /home/work/,可将其修改为demo实际安装路径。 ``` export INDEXDEMO_INSTALL_PATH=/home/work/ -- Gitee From f0e92865eb3a34621e5af2db93761be0f57f059a Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 07:05:15 +0000 Subject: [PATCH 33/34] update IndexSDK/README.md. Signed-off-by: fuhongben --- IndexSDK/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/IndexSDK/README.md b/IndexSDK/README.md index 953baba8e..cf1cf08f8 100644 --- a/IndexSDK/README.md +++ b/IndexSDK/README.md @@ -79,7 +79,6 @@ cd .. && rm -rf release-1.8.1.tar.gz googletest-release-1.8.1 1. **请先正确安装Index SDK 组件及其依赖的driver、firmware、Ascend toolkit、OpenBLAS、Faiss** (具体可参考用户指南 安装部署章节) 2. 进入IndexSDK目录 - 本例中demo默认安装路径为 /home/work/,可将其修改为demo实际安装路径。 ``` export INDEXDEMO_INSTALL_PATH=/home/work/ -- Gitee From c447cd5323e6c599dc889d94e03ff0829338edce Mon Sep 17 00:00:00 2001 From: fuhongben Date: Thu, 10 Apr 2025 08:42:28 +0000 Subject: [PATCH 34/34] update IndexSDK/README.md. Signed-off-by: fuhongben --- IndexSDK/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/IndexSDK/README.md b/IndexSDK/README.md index cf1cf08f8..442e4edd6 100644 --- a/IndexSDK/README.md +++ b/IndexSDK/README.md @@ -129,9 +129,9 @@ mv ${INDEX_INSTALL_PATH}/tools/op_models/* ${INDEX_INSTALL_PATH}/modelpath/ 设置算子的环境变量: ``` -export MX_INDEX_MODELPATH=${INDEX_INSTALL_PATH}/modelpath +export MX_INDEX_MODELPATH=/home/work/FeatureRetrieval/mxIndex-{version}/modelpath/ ``` -注意:算子环境变量请勿使用软链接,而是算子实际所在目录。本例中为/home/work/FeatureRetrieval/mxIndex-{version}/modelpath/ +注意:算子环境变量请勿使用软链接,而是算子实际所在目录。 6. 在build目录中找到对应的二进制可执行文件 以TestAscendIndexFlat.cpp为例,执行: -- Gitee