Repository navigation
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/174377
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit f88d846 with merge base 007b6a4 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
|
@jeffdaily Can you please review? |
|
@pytorchbot label "topic: not user facing" |
jeffdaily
left a comment
There was a problem hiding this comment.
I don't understand why this is needed. The env var TORCH_BLAS_PREFER_CUBLASLT and its alias TORCH_BLAS_PREFER_HIPBLASLT toggle between cu/hipblaslt and cu/rocblas. It's a binary choice. The exception had been that the addmm fused gemm_and_bias path used to be cu/hipblaslt only and its behavior was controlled by a different env var DISABLE_ADDMM_CUDA_LT, but this was fixed by #174350.
@jeffdaily For ROCm, if a gfx arch is in the list returned by getHipblasltPreferredArchs() hipBLASLt will be set as blas_preferred_backend by default regardless of TORCH_BLAS_PREFER_HIPBLASLT setting: pytorch/aten/src/ATen/Context.cpp Line 475 in 8bbfb71 If we want TORCH_BLAS_PREFER_CUBLASLT to be a binary toggle, perhaps it is better to set blas_preferred_backend = at::BlasBackend::Cublas when TORCH_BLAS_PREFER_CUBLASLT is explicitly 0:
|
|
I would accept your change that if the env var is set to false that it would pick cu/rocblas instead. It should have been that way. |
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
|
Successfully rebased |
d62b686 to
f88d846
Compare
|
@pytorchbot merge |
|
Pull workflow has not been scheduled for the PR yet. It could be because author doesn't have permissions to run those or skip-checks keywords were added to PR/commits, aborting merge. Please get/give approval for the workflows and/or remove skip ci decorators before next merge attempt. If you think this is a mistake, please contact PyTorch Dev Infra. |
|
@pytorchbot label "ciflow/trunk" |
|
To add these label(s) (ciflow/trunk) to the PR, please first approve the workflows that are awaiting approval (scroll to the bottom of this page). This helps ensure we don't trigger CI on this PR until it is actually authorized to do so. Please ping one of the reviewers if you do not have access to approve and run workflows. |
|
@jeffdaily could you please re-run ciflow, thanks. |
|
@pytorchbot merge |
Merge startedYour 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 |
Merge failedReason: 1 jobs have failed, first few of them are: trunk / libtorch-linux-jammy-cuda12.8-py3.10-gcc11-debug / build Details for Dev Infra teamRaised by workflow job |
|
@pytorchbot merge |
Merge startedYour 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 |
### Summary Set blas_preferred_backend = at::BlasBackend::Cublas when TORCH_BLAS_PREFER_CUBLASLT / TORCH_BLAS_PREFER_HIPBLASLT is explicitly set to false. For ROCm, if a gfx arch is in the list returned by getHipblasltPreferredArchs() hipBLASLt will be set as blas_preferred_backend by default regardless of TORCH_BLAS_PREFER_HIPBLASLT setting. This PR enables users to explicitly select cublas/rocblas and makes this env. variable behave like a binary toggle. ### Changes - Modified checks for TORCH_BLAS_PREFER_CUBLASLT/TORCH_BLAS_PREFER_HIPBLASLT env. variables - Updated test_preferred_blas_library_settings Pull Request resolved: pytorch#174377 Approved by: https://github.com/jeffdaily, https://github.com/nikitaved Co-authored-by: Milica Stankovic <[email protected]>
…) (#3077) ### Summary Set blas_preferred_backend = at::BlasBackend::Cublas when TORCH_BLAS_PREFER_CUBLASLT / TORCH_BLAS_PREFER_HIPBLASLT is explicitly set to false. For ROCm, if a gfx arch is in the list returned by getHipblasltPreferredArchs() hipBLASLt will be set as blas_preferred_backend by default regardless of TORCH_BLAS_PREFER_HIPBLASLT setting. This PR enables users to explicitly select cublas/rocblas and makes this env. variable behave like a binary toggle. ### Changes - Modified checks for TORCH_BLAS_PREFER_CUBLASLT/TORCH_BLAS_PREFER_HIPBLASLT env. variables - Updated test_preferred_blas_library_settings Pull Request resolved: pytorch#174377 Approved by: https://github.com/jeffdaily, https://github.com/nikitaved Co-authored-by: Filip Jankovic <[email protected]>
…) (#3077) ### Summary Set blas_preferred_backend = at::BlasBackend::Cublas when TORCH_BLAS_PREFER_CUBLASLT / TORCH_BLAS_PREFER_HIPBLASLT is explicitly set to false. For ROCm, if a gfx arch is in the list returned by getHipblasltPreferredArchs() hipBLASLt will be set as blas_preferred_backend by default regardless of TORCH_BLAS_PREFER_HIPBLASLT setting. This PR enables users to explicitly select cublas/rocblas and makes this env. variable behave like a binary toggle. ### Changes - Modified checks for TORCH_BLAS_PREFER_CUBLASLT/TORCH_BLAS_PREFER_HIPBLASLT env. variables - Updated test_preferred_blas_library_settings Pull Request resolved: pytorch#174377 Approved by: https://github.com/jeffdaily, https://github.com/nikitaved Co-authored-by: Filip Jankovic <[email protected]>
Cherry-pick of #3077 Co-authored-by: Milica Stankovic <[email protected]> Co-authored-by: Filip Jankovic <[email protected]>
…) (#3077) ### Summary Set blas_preferred_backend = at::BlasBackend::Cublas when TORCH_BLAS_PREFER_CUBLASLT / TORCH_BLAS_PREFER_HIPBLASLT is explicitly set to false. For ROCm, if a gfx arch is in the list returned by getHipblasltPreferredArchs() hipBLASLt will be set as blas_preferred_backend by default regardless of TORCH_BLAS_PREFER_HIPBLASLT setting. This PR enables users to explicitly select cublas/rocblas and makes this env. variable behave like a binary toggle. ### Changes - Modified checks for TORCH_BLAS_PREFER_CUBLASLT/TORCH_BLAS_PREFER_HIPBLASLT env. variables - Updated test_preferred_blas_library_settings Pull Request resolved: pytorch#174377 Approved by: https://github.com/jeffdaily, https://github.com/nikitaved Co-authored-by: Filip Jankovic <[email protected]>
### Summary Set blas_preferred_backend = at::BlasBackend::Cublas when TORCH_BLAS_PREFER_CUBLASLT / TORCH_BLAS_PREFER_HIPBLASLT is explicitly set to false. For ROCm, if a gfx arch is in the list returned by getHipblasltPreferredArchs() hipBLASLt will be set as blas_preferred_backend by default regardless of TORCH_BLAS_PREFER_HIPBLASLT setting. This PR enables users to explicitly select cublas/rocblas and makes this env. variable behave like a binary toggle. ### Changes - Modified checks for TORCH_BLAS_PREFER_CUBLASLT/TORCH_BLAS_PREFER_HIPBLASLT env. variables - Updated test_preferred_blas_library_settings Pull Request resolved: pytorch#174377 Approved by: https://github.com/jeffdaily, https://github.com/nikitaved Co-authored-by: Milica Stankovic <[email protected]>
### Summary Set blas_preferred_backend = at::BlasBackend::Cublas when TORCH_BLAS_PREFER_CUBLASLT / TORCH_BLAS_PREFER_HIPBLASLT is explicitly set to false. For ROCm, if a gfx arch is in the list returned by getHipblasltPreferredArchs() hipBLASLt will be set as blas_preferred_backend by default regardless of TORCH_BLAS_PREFER_HIPBLASLT setting. This PR enables users to explicitly select cublas/rocblas and makes this env. variable behave like a binary toggle. ### Changes - Modified checks for TORCH_BLAS_PREFER_CUBLASLT/TORCH_BLAS_PREFER_HIPBLASLT env. variables - Updated test_preferred_blas_library_settings Pull Request resolved: pytorch#174377 Approved by: https://github.com/jeffdaily, https://github.com/nikitaved Co-authored-by: Milica Stankovic <[email protected]>

Summary
Set blas_preferred_backend = at::BlasBackend::Cublas when TORCH_BLAS_PREFER_CUBLASLT / TORCH_BLAS_PREFER_HIPBLASLT is explicitly set to false.
For ROCm, if a gfx arch is in the list returned by getHipblasltPreferredArchs() hipBLASLt will be set as blas_preferred_backend by default regardless of TORCH_BLAS_PREFER_HIPBLASLT setting. This PR enables users to explicitly select cublas/rocblas and makes this env. variable behave like a binary toggle.
Changes