Skip to content

[Inductor] Make codecache CUDA compilation more robust & flexible - #121490

Closed
kadeng wants to merge 10 commits into
gh/kadeng/40/basefrom
gh/kadeng/40/head
Closed

kadeng wants to merge 10 commits into
gh/kadeng/40/basefrom
gh/kadeng/40/head

Conversation

@kadeng

@kadeng kadeng commented Mar 8, 2024 •

Copy link
Copy Markdown
Contributor

Minor changes which make the CUDA compilation within _inductor/codecache.py
more robust and flexible.

Test plan:
CI
Additional test in test_codecache.py

[ghstack-poisoned]
@pytorch-bot

pytorch-bot Bot commented Mar 8, 2024 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/121490

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 2 Unrelated Failures

As of commit 1caa651 with merge base 365e89a (image):

NEW FAILURE - The following job has failed:

FLAKY - The following jobs failed but were likely due to flakiness present on trunk:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

…lexible"

Minor changes which make the CUDA compilation within _inductor/codecache.py
more robust and flexible.

Test plan:
CI
Additional test in test_codecache.py

[ghstack-poisoned]
@kadeng kadeng added the topic: not user facing topic category label Mar 8, 2024
…lexible"

Minor changes which make the CUDA compilation within _inductor/codecache.py
more robust and flexible.

Test plan:
CI
Additional test in test_codecache.py

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@kadeng
kadeng requested review from aakhundov, ipiszy and jansel March 11, 2024 11:43
@kadeng
kadeng marked this pull request as ready for review March 11, 2024 11:44
kadeng added 2 commits March 12, 2024 11:31
…lexible"

Minor changes which make the CUDA compilation within _inductor/codecache.py
more robust and flexible.

Test plan:
CI
Additional test in test_codecache.py

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
…lexible"

Minor changes which make the CUDA compilation within _inductor/codecache.py
more robust and flexible.

Test plan:
CI
Additional test in test_codecache.py

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@kadeng

kadeng commented Mar 13, 2024

Copy link
Copy Markdown
Contributor Author

@pytorchbot merge

@pytorch-bot pytorch-bot Bot added the ciflow/trunk Trigger trunk jobs on your pull request label Mar 13, 2024
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged once all checks pass (ETA 0-4 Hours).

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge failed

Reason: 2 jobs have failed, first few of them are: inductor-periodic, inductor

Details for Dev Infra team Raised by workflow job

@aakhundov

Copy link
Copy Markdown
Contributor

@kadeng this PR has failed to run due to failing CI jobs. Mind taking a look?

@kadeng

kadeng commented Mar 19, 2024

Copy link
Copy Markdown
Contributor Author

@kadeng this PR has failed to run due to failing CI jobs. Mind taking a look?

Can't reproduce the failure locally. Will rebase and re-run ..

…lexible"

Minor changes which make the CUDA compilation within _inductor/codecache.py
more robust and flexible.

Test plan:
CI
Additional test in test_codecache.py

cc voznesenskym penguinwu EikanWang jgong5 Guobing-Chen XiaobingSuper zhuhaozhe blzheng wenzhe-nrv jiayisunx peterbell10 ipiszy yf225 chenyang78 muchulee8 aakhundov ColinPeppler amjames desertfire chauhang

[ghstack-poisoned]
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@pytorchbot successfully started a revert job. Check the current status here.
Questions? Feedback? Please reach out to the PyTorch DevX Team

@pytorchmergebot

Copy link
Copy Markdown
Collaborator

@kadeng your PR has been successfully reverted.

@aakhundov

Copy link
Copy Markdown
Contributor

@kadeng add @skipIfRocm to the unit test?

[ghstack-poisoned]
@kadeng

kadeng commented Apr 2, 2024

Copy link
Copy Markdown
Contributor Author

Thanks, I added @skipIfRocm to the test and tagged the PR with ciflow/rocm - I guess it should pass now.

@kadeng kadeng removed the ciflow/rocm label Apr 2, 2024
[ghstack-poisoned]
@kadeng

kadeng commented Apr 3, 2024

Copy link
Copy Markdown
Contributor Author

I still get test failures for rocm, but these appear completely unrelated. They are marked as new failures nevertheless. I'm trying to ensure they are definitively unrelated before I merge again.

@kadeng

kadeng commented Apr 3, 2024

Copy link
Copy Markdown
Contributor Author

@pytorchmergebot merge -f "Test failures are unrelated."

@pytorch pytorch deleted a comment from pytorch-bot Bot Apr 3, 2024
@pytorchmergebot

Copy link
Copy Markdown
Collaborator

Merge started

Your change will be merged immediately since you used the force (-f) flag, bypassing any CI checks (ETA: 1-5 minutes). Please use -f as last resort and instead consider -i/--ignore-current to continue the merge ignoring current failures. This will allow currently pending tests to finish and report signal before the merge.

Learn more about merging in the wiki.

Questions? Feedback? Please reach out to the PyTorch DevX Team

Advanced Debugging
Check the merge workflow status
here

pytorchmergebot pushed a commit that referenced this pull request Apr 3, 2024
…age (#121491)

 * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size**

 * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends**

Test plan:
CI
Additional unit test in test_cutlass_backend.py

Pull Request resolved: #121491
Approved by: https://github.com/jansel
ghstack dependencies: #121490
pytorch-bot Bot pushed a commit that referenced this pull request Apr 22, 2024
…21490)

Minor changes which make the CUDA compilation within _inductor/codecache.py
more robust and flexible.

Test plan:
CI
Additional test in test_codecache.py

Pull Request resolved: #121490
Approved by: https://github.com/jansel
pytorch-bot Bot pushed a commit that referenced this pull request Apr 22, 2024
…age (#121491)

 * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size**

 * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends**

Test plan:
CI
Additional unit test in test_cutlass_backend.py

Pull Request resolved: #121491
Approved by: https://github.com/jansel
ghstack dependencies: #121490
sanketpurandare pushed a commit to sanketpurandare/pytorch that referenced this pull request Apr 22, 2024
…torch#121490)

Minor changes which make the CUDA compilation within _inductor/codecache.py
more robust and flexible.

Test plan:
CI
Additional test in test_codecache.py

Pull Request resolved: pytorch#121490
Approved by: https://github.com/jansel
sanketpurandare pushed a commit to sanketpurandare/pytorch that referenced this pull request Apr 22, 2024
…age (pytorch#121491)

 * Adds a configurable GEMM size threshold for the usage of Cutlass GEMM Kernels **_inductor.config.cutlass_backend_min_gemm_size**

 * During GEMM algorithm choice generation: **if no viable choices can be generated using the configured backends, the ATen backend will be used as a fallback backend**, even if it is not enabled in **_inductor.config.max_autotune_gemm_backends**

Test plan:
CI
Additional unit test in test_cutlass_backend.py

Pull Request resolved: pytorch#121491
Approved by: https://github.com/jansel
ghstack dependencies: pytorch#121490
@github-actions
github-actions Bot deleted the gh/kadeng/40/head branch May 4, 2024 01:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants