Commit 18859b0
authored
Dtype selective build: fail if not xplat, if portable/optimized not in kernel_deps (pytorch#11020)
Pull Request resolved: pytorch#10990
pytorch#10985
Try to make user error harder for dtype selective build.
Currently, if dtype selective build cannot be enabled we silently fallback to regular dtype selective build.
This diff:
1. Emits failure when there is nothing in kernel_deps and dtype_selective_build=True.
2. Remove dtype_selective_build=True for cases in (1).
3. Warning that dtype selective build is not enabled if user is not in xplat.
ghstack-source-id: 285201952
Differential Revision: [D75027794](https://our.internmc.facebook.com/intern/diff/D75027794/)1 parent 3e2d104 commit 18859b0
1 file changed
+15
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
641 | 641 | | |
642 | 642 | | |
643 | 643 | | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
644 | 659 | | |
645 | 660 | | |
646 | 661 | | |
| |||
0 commit comments