Skip to content

Commit e734d7a

Browse files
huiyuxiemaleadt
andauthored
Ignore DriverStore on Windows when warning about loaded system libraries (#2847)
Co-authored-by: Tim Besard <tim.besard@gmail.com>
1 parent 20c135c commit e734d7a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/initialization.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,13 @@ function __init__()
214214
"cublas", "cupti", "cusparse", "cufft", "curand", "cusolver"]
215215
for lib in Libdl.dllist()
216216
contains(lib, "artifacts") && continue
217+
218+
# skip driver store directories on Windows - these contain legitimate libraries
219+
# that are part of the display driver installation (at least on CUDA 13+)
220+
if Sys.iswindows() && contains(lib, "DriverStore")
221+
continue
222+
end
223+
217224
if any(rtlib -> contains(lib, rtlib), runtime_libraries)
218225
@warn """CUDA runtime library `$(basename(lib))` was loaded from a system path, `$lib`.
219226
This may cause errors.

0 commit comments

Comments
 (0)