Skip to content

Commit 8da27a7

Browse files
committed
Update load_nvidia_dynamic_lib docstring first (to define what we're shooting for; no actual changes).
1 parent 5174ea2 commit 8da27a7

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

‎cuda_pathfinder/cuda/pathfinder/_dynamic_libs/load_nvidia_dynamic_lib.py‎

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,22 +77,20 @@ def load_nvidia_dynamic_lib(libname: str) -> LoadedDL:
7777
- Scan installed distributions (``site-packages``) to find libraries
7878
shipped in NVIDIA wheels.
7979
80-
2. **OS default mechanisms / Conda environments**
80+
2. **Conda environment**
81+
82+
- Conda installations are discovered via ``CONDA_PREFIX``, which is
83+
predefined in activated conda environments (see
84+
https://docs.conda.io/projects/conda-build/en/stable/user-guide/environment-variables.html).
85+
86+
3. **OS default mechanisms**
8187
8288
- Fall back to the native loader:
8389
8490
- Linux: ``dlopen()``
8591
8692
- Windows: ``LoadLibraryW()``
8793
88-
- Conda installations are commonly discovered via:
89-
90-
- Linux: ``$ORIGIN/../lib`` in the ``RPATH`` of the ``python`` binary
91-
(note: this can take precedence over ``LD_LIBRARY_PATH`` and
92-
``/etc/ld.so.conf.d/``).
93-
94-
- Windows: ``%CONDA_PREFIX%\\Library\\bin`` on the system ``PATH``.
95-
9694
- CUDA Toolkit (CTK) system installs with system config updates are often
9795
discovered via:
9896
@@ -101,7 +99,7 @@ def load_nvidia_dynamic_lib(libname: str) -> LoadedDL:
10199
- Windows: ``C:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\vX.Y\\bin``
102100
on the system ``PATH``.
103101
104-
3. **Environment variables**
102+
4. **Environment variables**
105103
106104
- If set, use ``CUDA_HOME`` or ``CUDA_PATH`` (in that order).
107105

0 commit comments

Comments
 (0)