Skip to content

Conversation

@ldematte
Copy link
Contributor

As a temporary fix to our troubles loading cuvs after NativeAccess is initialized, this PR contains a workaround to pre-load it during bootstrap.
It also contains a fix for the initialization of the cluster used for YAML rest tests, where we propagate the LD_LIBRARY_PATH environment variable.


static void loadCuvs() {
var libCuvs = SymbolLookup.libraryLookup(System.mapLibraryName("cuvs_c"), Arena.ofAuto());
LogManager.getLogger(NativeAccess.class).info("Loaded libcuvs_c.so: " + libCuvs);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This solely for logging / debugging purposes, right? And if cuVS is not present then null or something is printed? (which is fine)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!

@ldematte
Copy link
Contributor Author

I'll keep this open/as a draft in case we need this. But since we now know why and how we can work around the root cause, I'm not merging it right away (and we might just close it eventually).

@ldematte
Copy link
Contributor Author

Closed as we have a better workaround, plus ongoing conversation with nvidia for long-term fix of C++ dependencies

@ldematte ldematte closed this Aug 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants