Commit 886dcdd
committed
Catch RuntimeError from missing PCH symbols in old libnvrtc
When cuda.bindings is built against a newer toolkit but runs with an
older libnvrtc.so that lacks the PCH C symbols, the binding wrappers
exist (hasattr passes) but the actual call raises RuntimeError from
failing to resolve the function pointer at runtime.
Extract PCH status/retry logic into _pch_status_and_retry() and wrap
the call in try/except RuntimeError so we gracefully degrade to
pch_status=None instead of crashing.
Made-with: Cursor1 parent 12d2551 commit 886dcdd
1 file changed
+8
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
797 | 797 | | |
798 | 798 | | |
799 | 799 | | |
800 | | - | |
801 | | - | |
| 800 | + | |
| 801 | + | |
| 802 | + | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
802 | 808 | | |
803 | 809 | | |
804 | 810 | | |
| |||
0 commit comments