Repository navigation
Commit b5207cf
committed
Don't log an error when there are no CUDA backend symbols to promote
load_library re-opens the library that holds the backend with
RTLD_NOLOAD | RTLD_GLOBAL to make its symbols global. When the backend
is linked into the executable, as in a statically linked runner, dlopen
finds no library and sets no error, so every first load logged "Failed
to promote symbols: (null)". The executable's symbols are already
global then. Log an error only when dlopen reports one, and log the
case where it finds no library at Info level.1 parent 6a7dd63 commit b5207cf
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
93 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
94 | 107 | | |
95 | 108 | | |
96 | 109 | | |
| |||
0 commit comments