Skip to content

Commit

Permalink
Enhance warning under a profiler (#2552)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
huiyuxie authored Nov 15, 2024
1 parent ba263d3 commit 90f26e4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/initialization.jl
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,11 @@ function __init__()
contains(lib, "artifacts") && continue
if any(rtlib -> contains(lib, rtlib), runtime_libraries)
@warn """CUDA runtime library `$(basename(lib))` was loaded from a system path, `$lib`.
This may cause errors. Ensure that you have not set the LD_LIBRARY_PATH
environment variable, or that it does not contain paths to CUDA libraries.
This may cause errors.
If you're running under a profiler, this situation is expected. Otherwise,
ensure that your library path environment variable (e.g., `PATH` on Windows
or `LD_LIBRARY_PATH` on Linux) does not include CUDA library paths.
In any other case, please file an issue."""
end
Expand Down

0 comments on commit 90f26e4

Please sign in to comment.