Commit c3ddf79
pathfinder: harden guard-rails dispatch and prune dead code
* Add nccl_device to _BITCODE_LIBS_PACKAGED_WITH so the guard-rails
resolver layer no longer raises KeyError for a name that is already
in SUPPORTED_BITCODE_LIBS; lock the dispatch tables in place with
parametrized tests that walk every supported bitcode/static/binary
name through _resolve_*_item.
* Remove unreachable helpers _pipeline_compatibility_result,
_dynamic_lib_pipeline_items, and
CompatibilityGuardRails._enforce_declared_dynamic_lib_pipelines_for_pair.
The pipeline check still fires from
_enforce_declared_dynamic_lib_pipelines_for_item after _remember,
which is the only code path that ever produced a result.
* Re-export DriverCtkCompatibilityError from cuda.pathfinder so the
driver-vs-CTK case (already advertised by the env-var hint) can be
caught by type instead of message text, and list it in api.rst.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 6da23cf commit c3ddf79
4 files changed
Lines changed: 36 additions & 33 deletions
File tree
- cuda_pathfinder
- cuda/pathfinder
- docs/source
- tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
Lines changed: 2 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
688 | 689 | | |
689 | 690 | | |
690 | 691 | | |
691 | | - | |
692 | | - | |
693 | | - | |
694 | | - | |
695 | | - | |
696 | | - | |
697 | | - | |
698 | | - | |
699 | 692 | | |
700 | 693 | | |
701 | 694 | | |
| |||
706 | 699 | | |
707 | 700 | | |
708 | 701 | | |
709 | | - | |
710 | | - | |
711 | | - | |
712 | | - | |
| 702 | + | |
713 | 703 | | |
714 | 704 | | |
715 | 705 | | |
716 | | - | |
717 | | - | |
718 | | - | |
719 | | - | |
720 | | - | |
721 | | - | |
722 | | - | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | | - | |
729 | | - | |
730 | 706 | | |
731 | 707 | | |
732 | 708 | | |
| |||
939 | 915 | | |
940 | 916 | | |
941 | 917 | | |
942 | | - | |
943 | 918 | | |
944 | 919 | | |
945 | 920 | | |
| |||
961 | 936 | | |
962 | 937 | | |
963 | 938 | | |
964 | | - | |
965 | | - | |
966 | | - | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | 939 | | |
971 | 940 | | |
972 | 941 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | 35 | | |
| |||
447 | 450 | | |
448 | 451 | | |
449 | 452 | | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
450 | 480 | | |
451 | 481 | | |
452 | 482 | | |
| |||
0 commit comments