SetNumThreads
API Definition
void ScannInterface::SetNumThreads(int num_threads);
Function
Configures the number of threads for search operations (KScaNN-specific addition).
Parameters
Parameter |
Description |
Data Type |
Value Range |
|---|---|---|---|
num_threads |
Number of threads. |
int |
≥ 2. The recommended value is the number of CPU cores during runtime. |
Parent topic: C++ APIs