reserveMemory
API definition |
void reserveMemory(size_t numVecs) override; |
|---|---|
Function |
An abstract API for allocating reserved memory for the database before it is created. It inherits the APIs in AscendIndex and provides specific implementation. |
Input |
size_t numVecs: number of databases to which reserved memory is allocated. |
Output |
N/A |
Return value |
N/A |
Restrictions |
In a single-card environment: 0 < numVecs ≤ 2e8. In a multi-card environment: 0 < numVecs ≤ 1e9 (The value of numVecs divided by the number of cards must be less than 2e8). If the value exceeds the limit, an exception is thrown and the system stops running. |
Parent topic: AscendIndexIVF