Multi-GPU K-Means
Source header: cuvs/cluster/mg_kmeans.h
Multi-GPU k-means clustering APIs
cuvsMultiGpuKMeansFit
Find clusters with single-node multi-GPU k-means using host data.
X, sample_weight, and centroids must be host-accessible, row-major, C-contiguous DLPack tensors. X and centroids must have dtype float32 or float64, and sample_weight must match X when provided.
Multiple batches use one input buffer per GPU by default. Call cuvsMultiGpuResourcesSetStreamPool(res, 1) to enable double-buffering and transfer/compute overlap; without it execution is correct but serialized. Pinned host memory (for example, from cuvsRMMHostAlloc) is crucial; pageable or unregistered mmap-backed input degrades throughput rapidly.
A per-device memory pool is optional but recommended. Configure both before the fit:
Parameters
Returns