diff --git a/cuda_core/cuda/core/experimental/_linker.py b/cuda_core/cuda/core/experimental/_linker.py index 2beeb16803..6e36a2a54c 100644 --- a/cuda_core/cuda/core/experimental/_linker.py +++ b/cuda_core/cuda/core/experimental/_linker.py @@ -3,6 +3,7 @@ # SPDX-License-Identifier: LicenseRef-NVIDIA-SOFTWARE-LICENSE import ctypes +import warnings import weakref from contextlib import contextmanager from dataclasses import dataclass @@ -42,6 +43,12 @@ def _decide_nvjitlink_or_driver(): _nvjitlink = None if _nvjitlink is None: + warnings.warn( + "nvJitLink is not installed or too old (<12.3). Therefore it is not usable " + "and the culink APIs will be used instead.", + stacklevel=3, + category=RuntimeWarning, + ) _driver = cuda return True else: @@ -80,7 +87,8 @@ class LinkerOptions: """Customizable :obj:`Linker` options. Since the linker would choose to use nvJitLink or the driver APIs as the linking backed, - not all options are applicable. + not all options are applicable. When the system's installed nvJitLink is too old (<12.3), + or not installed, the driver APIs (cuLink) will be used instead. Attributes ----------