Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog/unreleased/SOLR-18210-fix-GPU-vector-indexing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
title: Fix for GPU vector indexing silently falling back to using CPU instead
type: fixed
authors:
- name: Rahul Goswami
links:
- name: SOLR-18210
url: https://issues.apache.org/jira/browse/SOLR-18210
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,17 @@ public static synchronized GpuMetricsService getInstance() {

public void initialize(CoreContainer coreContainer) {
if (initialized.compareAndSet(false, true)) {
// Ensure CUDA runtime is loaded before any cuVS provider access
try {
System.loadLibrary("cudart");
} catch (UnsatisfiedLinkError e) {
String msg = e.getMessage();
if (msg != null && msg.contains("already loaded in another classloader")) {
// cudart is available, just loaded elsewhere - safe to continue
} else {
log.warn("Could not load CUDA runtime library (libcudart not available) ", e);
}
}
this.metricManager = coreContainer.getMetricManager();
startBackgroundService();
log.info("GPU metrics service initialized");
Expand Down
Loading