Skip to content

Commit 90f26e4

Browse files
authored
Enhance warning under a profiler (#2552)
[skip ci]
1 parent ba263d3 commit 90f26e4

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/initialization.jl

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,11 @@ function __init__()
217217
contains(lib, "artifacts") && continue
218218
if any(rtlib -> contains(lib, rtlib), runtime_libraries)
219219
@warn """CUDA runtime library `$(basename(lib))` was loaded from a system path, `$lib`.
220-
221-
This may cause errors. Ensure that you have not set the LD_LIBRARY_PATH
222-
environment variable, or that it does not contain paths to CUDA libraries.
220+
This may cause errors.
221+
222+
If you're running under a profiler, this situation is expected. Otherwise,
223+
ensure that your library path environment variable (e.g., `PATH` on Windows
224+
or `LD_LIBRARY_PATH` on Linux) does not include CUDA library paths.
223225
224226
In any other case, please file an issue."""
225227
end

0 commit comments

Comments
 (0)