Commit 4e9165c
nvproxy: Add support for UVM_ENABLE_READ_DUPLICATION and UVM_SET_ACCESSED_BY.
Verified that the following reproducer works:
```
docker run --runtime=runsc --gpus all --rm \
nvidia/cuda:12.4.1-devel-ubuntu22.04 \
bash -c "apt-get update && apt-get install -y python3 python3-pip && \
pip install 'mlx[cuda]==0.27.1' 'mlx-lm==0.26.3' && \
python3 -c 'import mlx_lm; print(\"Import Successful\")'"
```
Support for UVM_ENABLE_READ_DUPLICATION was sufficient to satisfy the
reproducer. Support for UVM_SET_ACCESSED_BY was added because
`TestCUDA/Samples/4_CUDA_Libraries/conjugateGradientMultiDeviceCG` was failing
without it.
Fixes #12034
PiperOrigin-RevId: 8527576091 parent 534579b commit 4e9165c
File tree
3 files changed
+45
-0
lines changed- pkg
- abi/nvgpu
- sentry/devices/nvproxy
3 files changed
+45
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
40 | 41 | | |
| 42 | + | |
41 | 43 | | |
42 | 44 | | |
43 | 45 | | |
| |||
462 | 464 | | |
463 | 465 | | |
464 | 466 | | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
465 | 485 | | |
466 | 486 | | |
467 | 487 | | |
| |||
480 | 500 | | |
481 | 501 | | |
482 | 502 | | |
| 503 | + | |
| 504 | + | |
| 505 | + | |
| 506 | + | |
| 507 | + | |
| 508 | + | |
| 509 | + | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
| 517 | + | |
| 518 | + | |
| 519 | + | |
| 520 | + | |
| 521 | + | |
483 | 522 | | |
484 | 523 | | |
485 | 524 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| 102 | + | |
102 | 103 | | |
| 104 | + | |
103 | 105 | | |
104 | 106 | | |
105 | 107 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| 211 | + | |
211 | 212 | | |
| 213 | + | |
212 | 214 | | |
213 | 215 | | |
214 | 216 | | |
| |||
475 | 477 | | |
476 | 478 | | |
477 | 479 | | |
| 480 | + | |
478 | 481 | | |
| 482 | + | |
479 | 483 | | |
480 | 484 | | |
481 | 485 | | |
| |||
0 commit comments