Function Description

AscendIndexILFlat is used in the standard-state ILFlat scenario. You need to use Init to initialize the specific resource. After the initialization is complete, a complete space is allocated to store the database. Then, call Finalize to destroy the resources.

AscendIndexILFlat supports only the vector inner product distance type in standard deployment mode of the Atlas inference product. AscendIndexILFlat depends on the Flat and AICPU operators. For details, see Flat and AICPU.

Multi-thread concurrent calling is supported. You need to set the environment variable MX_INDEX_MULTITHREAD to 1, that is, export MX_INDEX_MULTITHREAD=1. If this variable is set to another value or is not set, the multi-thread function is disabled. Currently, FeatureRetrieval uses the OMP for performance acceleration. The OMP cannot be used together with other multi-thread mechanisms. If new threads are repeatedly created to use the OMP, the memory usage keeps increasing. Therefore, you are advised to use fixed threads to run retrieval tasks.