You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_decide_nvjitlink_or_driver() bug fix and enhancements (NVIDIA#1055)
* _decide_nvjitlink_or_driver(): catch RuntimeError (bug fix), use importlib + ModuleNotFoundError (more selective than ImportError) and produce specific error messages
* Fix misunderstanding: RuntimeError is raised only from inner_nvjitlink._inspect_function_pointer()
* Better way of formatting warning messages.
* Change from importlib.import_module() to plain import (the latter does also raise ModuleNotFoundError)
* Enhance to warning messages, to make them actionable.
* Factor out _nvjitlink_has_version_symbol() for clarity and testability
This aids unit testing by allowing localized stubbing of the version-symbol
check, without needing to patch the full inner nvjitlink module.
* Add test_linker_warnings.py
As generated by ChatGPT 5, with minor manual tweaks.
* Fix "the the" oversight
* Replace "culink APIs" → "driver APIs" in warning message.
* Fix oversight: test_linker_warnings.py needs to be updated after commit 0948942
* fix skipping the check for nvidia-smi (NVIDIA#1084)
* rm cuda_core/tests/test_linker_warnings.py: see NVIDIA#1095
---------
Co-authored-by: Leo Fang <leof@nvidia.com>
0 commit comments