Commit 8abbc62
authored
perf: Order OVRTX render-var reads on the consuming stream, and block the host on Linux (#7074)
## Description
Reading an OVRTX render var has to be ordered against render completion.
On Linux, blocking the calling thread on the render-completion event
measures faster end to end than a GPU-side wait, so that is now what
Linux does.
Measured across three camera tasks at 256/1024/4096 envs, this is +14%
to +73% throughput (mean +36%), and restores parity with ovrtx 0.3 on
every case measured.
Other platforms order the read on the consuming Warp stream.
`ISAAC_LAB_OVRTX_DISABLE_LINUX_CUDA_CPU_SYNC=1` puts Linux on that
ordering too — an escape hatch for when the trade-off changes; it is not
currently faster.
All mapping sites now go through one helper,
`OVRTXRenderer._map_render_var_to_dlpack()`. Camera outputs are
unchanged — only the read ordering differs.
Reported in https://nvbugspro.nvidia.com/bug/6566453
## Type of change
- Bug fix (non-breaking change which fixes an issue)
- Performance improvement
## Screenshots
None — no visual change.
## Checklist
- [x] I have run the [`pre-commit` checks](https://pre-commit.com/) with
`./isaaclab.sh --format`
- [x] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my
feature works
- [x] I have updated the changelog and the corresponding version in the
extension's `config/extension.toml` file
- [x] I have added my name to the `CONTRIBUTORS.md` or my name already
exists there
Co-authored-by: pv-nvidia <197907000+pv-nvidia@users.noreply.github.com>1 parent cd7ea42 commit 8abbc62
3 files changed
Lines changed: 167 additions & 14 deletions
File tree
- source/isaaclab_ov
- changelog.d
- isaaclab_ov/renderers
- test
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
Lines changed: 67 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
128 | 135 | | |
129 | 136 | | |
130 | 137 | | |
| |||
203 | 210 | | |
204 | 211 | | |
205 | 212 | | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
206 | 232 | | |
207 | 233 | | |
208 | 234 | | |
| |||
1016 | 1042 | | |
1017 | 1043 | | |
1018 | 1044 | | |
| 1045 | + | |
| 1046 | + | |
| 1047 | + | |
| 1048 | + | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
| 1055 | + | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + | |
| 1059 | + | |
| 1060 | + | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1019 | 1079 | | |
1020 | 1080 | | |
1021 | 1081 | | |
| |||
1042 | 1102 | | |
1043 | 1103 | | |
1044 | 1104 | | |
1045 | | - | |
1046 | | - | |
| 1105 | + | |
1047 | 1106 | | |
1048 | 1107 | | |
1049 | 1108 | | |
| |||
1255 | 1314 | | |
1256 | 1315 | | |
1257 | 1316 | | |
1258 | | - | |
1259 | | - | |
| 1317 | + | |
1260 | 1318 | | |
1261 | 1319 | | |
1262 | 1320 | | |
1263 | 1321 | | |
1264 | 1322 | | |
1265 | | - | |
1266 | | - | |
| 1323 | + | |
1267 | 1324 | | |
1268 | 1325 | | |
1269 | 1326 | | |
| |||
1272 | 1329 | | |
1273 | 1330 | | |
1274 | 1331 | | |
1275 | | - | |
1276 | | - | |
| 1332 | + | |
1277 | 1333 | | |
1278 | 1334 | | |
1279 | 1335 | | |
1280 | | - | |
1281 | | - | |
| 1336 | + | |
1282 | 1337 | | |
1283 | 1338 | | |
1284 | 1339 | | |
| |||
1308 | 1363 | | |
1309 | 1364 | | |
1310 | 1365 | | |
1311 | | - | |
1312 | | - | |
| 1366 | + | |
1313 | 1367 | | |
1314 | 1368 | | |
1315 | 1369 | | |
1316 | 1370 | | |
1317 | 1371 | | |
1318 | 1372 | | |
1319 | | - | |
1320 | | - | |
| 1373 | + | |
1321 | 1374 | | |
1322 | 1375 | | |
1323 | 1376 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| 36 | + | |
33 | 37 | | |
34 | 38 | | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
| 48 | + | |
| 49 | + | |
43 | 50 | | |
44 | 51 | | |
45 | 52 | | |
| |||
366 | 373 | | |
367 | 374 | | |
368 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
369 | 460 | | |
370 | 461 | | |
371 | 462 | | |
| |||
0 commit comments