Commit 43184d7
authored
Add deadlock warnings to Stream.add_callback and Stream.async_done docstrings (#321)
* Add deadlock warnings to Stream.add_callback and Stream.async_done docstrings
- Add warning about potential deadlock when using libraries that call CUDA functions without releasing the GIL
- This can occur when callback functions attempt to acquire the GIL while another thread is holding it and making CUDA calls
- Recommends using libraries that properly release the GIL around CUDA operations
* Update docstring warnings to clarify lock ordering issue
- Clarify that deadlock is due to lock ordering issue between GIL and CUDA driver lock
- Remove reference to 'another thread attempting to make CUDA calls' as this is not required
- Focus on the core issue: callback acquiring GIL while CUDA driver lock is held1 parent 3129f55 commit 43184d7
1 file changed
+20
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2391 | 2391 | | |
2392 | 2392 | | |
2393 | 2393 | | |
| 2394 | + | |
| 2395 | + | |
| 2396 | + | |
| 2397 | + | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
2394 | 2404 | | |
2395 | 2405 | | |
2396 | 2406 | | |
| |||
2425 | 2435 | | |
2426 | 2436 | | |
2427 | 2437 | | |
| 2438 | + | |
| 2439 | + | |
| 2440 | + | |
| 2441 | + | |
| 2442 | + | |
| 2443 | + | |
| 2444 | + | |
| 2445 | + | |
| 2446 | + | |
| 2447 | + | |
2428 | 2448 | | |
2429 | 2449 | | |
2430 | 2450 | | |
| |||
0 commit comments