pytorch
7b419e85 - [NVFuser] Upstream push 1026 (#87779)

Commit
2 years ago
[NVFuser] Upstream push 1026 (#87779) Syncing nvfuser devel branch to upstream master. https://github.com/csarofeen/pytorch/ Codegen changes include: * codegen improvement: i. allow non-root trivial reductions, allow empty/no-op fusion ii. fixes vectorization checks and size calculation iii. bank conflict handle improvement iv. enables transpose scheduler * misc: i. CI tests failure fixes ii. cpp tests file clean up iii. trivial forwarding supports added in codegen runtime iv. added factory methods support in codegen Commits that's in this PR from the devel branch: ``` 7117a7e37ebec372d9e802fdfb8abb7786960f4a patching nvfuser conv cudnn test numerics mismatch (#2048) 65af1a4e7013f070df1ba33701f2d524de79d096 Inserting sync for redundant parallel types is already done at the (#2023) 6ac74d181689c8f135f60bfc1ec139d88941c98c Fix sync map (#2047) f5bca333355e2c0033523f3402de5b8aac602c00 Bank conflict checker improvements (#2032) d2ca7e3fd203537946be3f7b435303c60fa7f51e Minor update on cp.async code generation. (#1901) d36cf61f5570c9c992a748126287c4e7432228e0 Test file cleanup (#2040) 0b8e83f49c2ea9f04a4aad5061c1e7f4268474c6 Allow non-root trivial reductions (#2037) a2dfe40b27cd3f5c04207596f0a1818fbd5e5439 Fix vectorize size calculation (#2035) e040676a317fe34ea5875276270c7be88f6eaa56 Use withPredicate to replace setPredicate to maintain Exprs immutable (#2025) 197221b847ad5eb347d7ec1cf2706733aacbf97c removing ci workflow (#2034) 40e2703d00795526e7855860aa00b9ab7160755f Reduction rand like patch (#2031) bc772661cbdb3b711d8e9854ae9b8b7052e3e4a3 Add utility for checking bank conflict of shared memory (#2029) ddd1cf7695f3fb172a0e4bcb8e4004573617a037 Add back FusionReductionWithTrivialReduction_CUDA (#2030) fbd97e5ef15fa0f7573800e6fbb5743463fd9e57 Revert "Cleanup trivial reduction workarounds (#2006)" (#2024) bca20c1dfb8aa8d881fc7973e7579ce82bc6a894 Cleanup trivial reduction workarounds (#2006) e4b65850eee1d70084105bb6e1f290651adde23e Trivial forwarding (#1995) 1a0e355b5027ed0df501989194ee8f2be3fdd37a Fix contiguity analysis of predicates to match updated contiguity. (#1991) a4effa6a5f7066647519dc56e854f4c8a2efd2a7 Enable output allocation cache (#2010) 35440b7953ed8da164a5fb28f87d7fd760ac5e00 Patching bn inference (#2016) 0f9f0b4060dc8ca18dc65779cfd7e0776b6b38e8 Add matmul benchmark (#2007) 45045cd05ea268f510587321dbcc8d7c2977cdab Enable tests previously disabled due to an aliasing bug (#2005) 967aa77d2c8e360c7c01587522eec1c1d377c87e Contiguous indexing for View operations (#1990) a43cb20f48943595894e345865bc1eabf58a5b48 Make inlining even more modular (#2004) dc458358c0ac91dfaf4e6655a9b3fc206fc0c897 Test util cleanup (#2003) 3ca21ebe4d213f0070ffdfa4ae5d7f6cb0b8e870 More strict validation (#2000) a7a7d573310c4707a9f381831d3114210461af01 Fix build problem (#1999) fc235b064e27921fa9d6dbb9dc7055e5bae1c222 Just fixes comments (#1998) 482386c0509fee6edb2964c5ae72074791f3e43a cleanup (#1997) 4cbe0db6558a82c3097d281eec9c85ad2ea0893a Improve divisible split detection (#1970) 42ccc52bdc18bab0330f4b93ed1399164e2980c9 Minor build fix. (#1996) fcf8c091f72d46f3055975a35afd06263324ede6 Cleanup of lower_utils.cpp: Isolate out GpuLower usage (#1989) 15f2f6dba8cbf408ec93c344767c1862c30f7ecc Move ConcretizedBroadcastDomains to shared_ptr in GpuLower. (#1988) 8f1c7f52679a3ad6acfd419d28a2f4be4a7d89e2 Minor cleanup lower_unroll.cpp (#1994) 1d9858c80319ca7f0037db7de5f04e47f540d76c Minor cleanup (#1992) f262d9cab59f41c669f53799c6d4a6b9fc4267eb Add support for uniform RNG (#1986) eb1dad10c73f855eb1ecb20a8b1f7b6edb0c9ea3 Remove non-const functions, remove GpuLower instance on build, pass in ca_map. (#1987) 634820c5e3586c0fe44132c51179b3155be18072 Add support for some empty fusion (#1981) eabe8d844ad765ee4973faa4821d451ef71b83c3 Segment self mapping fusions (#1954) e96aacfd9cf9b3c6d08f120282762489bdf540c8 Enable Transpose operation (#1882) 425dce2777420248e9f08893765b5402644f4161 Add a null scheduler that helps segmenting away no-op schedules (#1835) 306d4a68f127dd1b854b749855e48ba23444ba60 Fix canScheduleCompileTime check of transpose scheduler (#1969) b1bd32cc1b2ae7bbd44701477bddbcfa6642a9be Minor fix (#1967) bd93578143c1763c1e00ba613a017f8130a6b989 Enable transpose scheduler (#1927) b7a206e93b4ac823c791c87f12859cf7af264a4c Move scheduler vectorize utilities into their own file (#1959) d9420e4ca090489bf210e68e9912bb059b895baf View scheduling (#1928) c668e13aea0cf21d40f95b48e0163b812712cdf2 Upstream push ci fixes (#1965) c40202bb40ce955955bb97b12762ef3b6b612997 Fix dump effective bandwidth (#1962) 93505bcbb90a7849bd67090fe5708d867e8909e4 WAR on index mapping when exact and permissive maps differ (#1960) 45e95fd1d3c773ee9b2a21d79624c279d269da9f Allow splitting inner-most ID to create virtual innermost ID in transpose scheduler (#1930) a3ecb339442131f87842eb56955e4f17c544e99f Improve the comments at the beginning of index_compute.h (#1946) f7bc3417cc2923a635042cc6cc361b2f344248d6 Remove unused variables (#1955) df3393adbb5cb0309d091f358cfa98706bd4d313 Some cleanup (#1957) 7d1d7c8724ab5a226fad0f5a80feeac04975a496 TVDomainGuard factory (#1953) 357ba224c0fb41ed3e4e8594d95599c973f4a0ca Fill allocation with nan on tests (#1956) 8eafc54685d406f5ac527bcbacc475fda4492d7a Fix detection of unmappable root domains (#1952) 90a51f282601ba8ebd4c84b9334efd7762a234bc Some indexing cleanups, Add eye support (#1940) ddc01e4e16428aec92f9c84d698f959b6436a971 Exclude unsupported data types (#1951) 992e17c0688fe690c51b50e81a75803621b7e6aa test the groups the same order as they are merged (#1949) 208262b75d1fed0597a0329d61d57bc8bcd7ff14 Move detection of self mapping IDs to IterDomainGraph from (#1941) ac4de38c6ee53b366e85fdfe408c3642d32b57df Merge pull request #1945 from csarofeen/master_merge_0828 631094891a96f715d8c9925fb73d41013ca7f2e3 Add full, full_like, zeros, zeros_like, ones, ones_like (#1943) aab10bce4541204c46b91ff0f0ed9878aec1bfc4 Merge remote-tracking branch 'upstream/viable/strict' into HEAD 4c254c063bb55887b45677e3812357556a7aa80d Fix arange when step is negative (#1942) 89330aa23aa804340b2406ab58899d816e3dc3d2 Tensor factories must set the output shape as its input (#1939) ``` RUN_TORCHBENCH: nvfuser Differential Revision: [D40869846](https://our.internmc.facebook.com/intern/diff/D40869846) Pull Request resolved: https://github.com/pytorch/pytorch/pull/87779 Approved by: https://github.com/davidberard98
References
Author
Committer
Parents
Loading