CuVSAceParams
Java package: com.nvidia.cuvs
Parameters for ACE (Augmented Core Extraction) graph build algorithm. ACE enables building indexes for datasets too large to fit in GPU memory by:
- Partitioning the dataset in core (closest) and augmented (second-closest) partitions using balanced k-means.
- Building sub-indexes for each partition independently
- Concatenating sub-graphs into a final unified index
Public Members
getNpartitions
Gets the number of partitions.
Returns
the number of partitions
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:92
getEfConstruction
Gets the ef_construction parameter.
Returns
the ef_construction parameter
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:101
getBuildDir
Gets the build directory path.
Returns
the build directory path
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:110
isUseDisk
Gets whether disk-based mode is enabled.
Returns
true if disk-based mode is enabled
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:119
getMaxHostMemoryGb
Gets the maximum host memory limit in GiB.
Returns
the max host memory limit (0 means use available memory)
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:128
getMaxGpuMemoryGb
Gets the maximum GPU memory limit in GiB.
Returns
the max GPU memory limit (0 means use available memory)
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:137
withNpartitions
Sets the number of partitions.
Parameters
Returns
an instance of Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:189
withEfConstruction
Sets the ef_construction parameter.
Parameters
Returns
an instance of Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:200
withBuildDir
Sets the build directory path.
Parameters
Returns
an instance of Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:211
withUseDisk
Sets whether to use disk-based mode.
Parameters
Returns
an instance of Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:222
withMaxHostMemoryGb
Sets the maximum host memory to use for ACE build in GiB.
When set to 0 (default), uses available host memory. Useful for testing or when running alongside other memory-intensive processes.
Parameters
Returns
an instance of Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:236
withMaxGpuMemoryGb
Sets the maximum GPU memory to use for ACE build in GiB.
When set to 0 (default), uses available GPU memory. Useful for testing or when running alongside other memory-intensive processes.
Parameters
Returns
an instance of Builder
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:250
build
Builds an instance of CuVSAceParams.
Returns
an instance of CuVSAceParams
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:260
Source: java/cuvs-java/src/main/java/com/nvidia/cuvs/CuVSAceParams.java:17