Repository navigation
Conversation
So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/119009
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 3791138 with merge base 86063b4 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
…p generator" So far we have relied on the "generator.py" from third_party/cutlass/python/cutlass_library/ to generate Cutlass op configurations to be tried in autotuning. These op configs are not sufficient to ensure good performance and dtype coverage in all cases. This diff introduces an extended variant of that generator.py, provided both as a source file and as a diff ( so that it may be applied to future versions of cutlass_library.generator ) Test Plan: * CI * python test/inductor/test_max_autotune.py cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler [ghstack-poisoned]
|
@kadeng while I understand the motivation, I believe, this will be hard to keep in sync with the upstream CUTLASS generator. Few questions:
Thanks! |
I agree, that's also why I separated out this change and called it experimental, so we can discuss separately whether we want to keep it.
It's mostly small changes. It will bring some slight performance improvements for smaller shapes, and these changes were part of the benchmarking in my WP note. A full ablation study has not been done, but the main reason these changes exist is to attempt to overcome Cutlass performance weaknesses ( compared to Triton ) for some shapes where at least one dimension is small ( e.g. < 32 ). I made these changes after some suggestions by Cutlass devs.
Specific cases, and it's minor. It's mostly to make Cutlass more competitive with Triton for some shapes, but these are usually covered well by Triton as well, so if Cutlass has an edge there, it is usually a small one, if at all.
I would consider that less safe than doing it like this.
That's a remnant from a previous code version. I will update the description. At the moment the generator_extended.py itself works like a runtime patch to cutlass_library.generator by importing all from that package, selectively overriding some functions. That's easier to maintain and read.
I agree, that's preferable. So, to summarize. I would agree that it can make sense to cut out these changes and instead try to get corresponding changes upstreamed in Cutlass itself. Agreed? If yes, I would remove this PR from the stack. |
Given the marginal improvements in special cases, I think, we should not land this and bear the maintenance burden in syncing with upstream CUTLASS changes. Upstreaming to nvidia/cutlass sounds more preferable. |
|
Closing. The PR stack is being restructured here: #121492 |
Stack from ghstack (oldest at bottom):
So far we have relied on the "generator.py" from
third_party/cutlass/python/cutlass_library/ to generate Cutlass op
configurations to be tried in autotuning. These op configs are not
sufficient to ensure good performance and dtype coverage in all cases.
This diff introduces an extended variant of that generator.py which imports all symbols from generator.py overrides some functions from that file and reexports everything such that it can be used as a drop-in replacement for generator.py
Test Plan:
cc @voznesenskym @penguinwu @EikanWang @jgong5 @Guobing-Chen @XiaobingSuper @zhuhaozhe @blzheng @wenzhe-nrv @jiayisunx @peterbell10 @ipiszy @yf225 @chenyang78 @muchulee8 @aakhundov @ColinPeppler