Skip to content

Commit a1b553b

Browse files
committed
Update README.md to reflect new search priority
1 parent ad9e994 commit a1b553b

File tree

1 file changed

+6
-6
lines changed
  • cuda_bindings/cuda/bindings/_path_finder

1 file changed

+6
-6
lines changed

cuda_bindings/cuda/bindings/_path_finder/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@ strategy for locating NVIDIA shared libraries:
2424
The absolute path of the already loaded library will be returned, along
2525
with the handle to the library.
2626

27-
1. **Environment variables**
28-
- Relies on `CUDA_HOME` or `CUDA_PATH` environment variables if set
29-
(in that order).
30-
31-
2. **NVIDIA Python wheels**
27+
1. **NVIDIA Python wheels**
3228
- Scans all site-packages to find libraries installed via NVIDIA Python wheels.
3329

34-
3. **OS default mechanisms / Conda environments**
30+
2. **OS default mechanisms / Conda environments**
3531
- Falls back to native loader:
3632
- `dlopen()` on Linux
3733
- `LoadLibraryW()` on Windows
@@ -42,6 +38,10 @@ strategy for locating NVIDIA shared libraries:
4238
- Linux: Via `$ORIGIN/../lib` on `RPATH` (of the `python` binary)
4339
- Windows: Via `%CONDA_PREFIX%\Library\bin` on system `PATH`
4440

41+
3. **Environment variables**
42+
- Relies on `CUDA_HOME` or `CUDA_PATH` environment variables if set
43+
(in that order).
44+
4545
Note that the search is done on a per-library basis. There is no centralized
4646
mechanism that ensures all libraries are found in the same way.
4747

0 commit comments

Comments
 (0)