Fix test_sparse_api failures for builds without hipSPARSELt (#4125)#4125
Fix test_sparse_api failures for builds without hipSPARSELt (#4125)#4125jerryzh168 merged 1 commit intopytorch:mainfrom
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/4125
Note: Links to docs will display an error until the docs builds have been completed. ✅ You can merge normally! (1 Unrelated Failure)As of commit f8da8fd with merge base bca91b0 ( BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@pytorchbot label "module: not user facing" |
…4125) Summary: What: Add a guard in test/sparsity/test_sparse_api.py so tests that depend on `hipSPARSELt` only run when the backend is available. Why: These tests currently fail on environments without hipSPARSELt, for example OSS AO nightly. Since the functionality is environment dependent, these test should be conditionally skipped. https://fburl.com/9fpszdqg ``` FAILED test/sparsity/test_sparse_api.py::TestSemiStructuredSparse::test_sparse - RuntimeError: hipSPARSELt not supported on your machine. ``` Differential Revision: D97540060
671a601 to
b85bedf
Compare
…4125) Summary: What: Add a guard in test/sparsity/test_sparse_api.py so tests that depend on `hipSPARSELt` only run when the backend is available. Why: These tests currently fail on environments without hipSPARSELt, for example OSS AO nightly. Since the functionality is environment dependent, these test should be conditionally skipped. https://fburl.com/9fpszdqg ``` FAILED test/sparsity/test_sparse_api.py::TestSemiStructuredSparse::test_sparse - RuntimeError: hipSPARSELt not supported on your machine. ``` Differential Revision: D97540060
| sparsify_(model, semi_sparse_weight()) | ||
| sparse_result = model(input) | ||
|
|
||
| if compile: |
There was a problem hiding this comment.
why are we deleting the compile test?
There was a problem hiding this comment.
We're not setting any @common_utils.parametrize("compile", [True, False]) so I don't think this path was being used. Would you prefer we enable it as opposed to removing?
There was a problem hiding this comment.
Oh I see, hmm can we add @common_utils.parametrize("compile", [True, False]) to the test as well then?
There was a problem hiding this comment.
Update: Aligned offline. @jcaip will update compile test in follow up diff.
…4125) Summary: What: Add a guard in test/sparsity/test_sparse_api.py so tests that depend on `hipSPARSELt` only run when the backend is available. Why: These tests currently fail on environments without hipSPARSELt, for example OSS AO nightly. Since the functionality is environment dependent, these test should be conditionally skipped. https://fburl.com/9fpszdqg ``` FAILED test/sparsity/test_sparse_api.py::TestSemiStructuredSparse::test_sparse - RuntimeError: hipSPARSELt not supported on your machine. ``` Differential Revision: D97540060
b85bedf to
b098679
Compare
…4125) Summary: Pull Request resolved: pytorch#4125 What: Add a guard in test/sparsity/test_sparse_api.py so tests that depend on `hipSPARSELt` only run when the backend is available. Why: These tests currently fail on environments without hipSPARSELt, for example OSS AO nightly. Since the functionality is environment dependent, these test should be conditionally skipped. https://fburl.com/9fpszdqg ``` FAILED test/sparsity/test_sparse_api.py::TestSemiStructuredSparse::test_sparse - RuntimeError: hipSPARSELt not supported on your machine. ``` Differential Revision: D97540060
b098679 to
1bd983f
Compare
…4125) Summary: What: Add a guard in test/sparsity/test_sparse_api.py so tests that depend on `hipSPARSELt` only run when the backend is available. Why: These tests currently fail on environments without hipSPARSELt, for example OSS AO nightly. Since the functionality is environment dependent, these test should be conditionally skipped. https://fburl.com/9fpszdqg ``` FAILED test/sparsity/test_sparse_api.py::TestSemiStructuredSparse::test_sparse - RuntimeError: hipSPARSELt not supported on your machine. ``` Differential Revision: D97540060
1bd983f to
fb78fd6
Compare
…4125) Summary: What: Add a guard in test/sparsity/test_sparse_api.py so tests that depend on `hipSPARSELt` only run when the backend is available. Why: These tests currently fail on environments without hipSPARSELt, for example OSS AO nightly. Since the functionality is environment dependent, these test should be conditionally skipped. https://fburl.com/9fpszdqg ``` FAILED test/sparsity/test_sparse_api.py::TestSemiStructuredSparse::test_sparse - RuntimeError: hipSPARSELt not supported on your machine. ``` Differential Revision: D97540060
fb78fd6 to
9ce4bad
Compare
…4125) Summary: What: Add a guard in test/sparsity/test_sparse_api.py so tests that depend on `hipSPARSELt` only run when the backend is available. Why: These tests currently fail on environments without hipSPARSELt, for example OSS AO nightly. Since the functionality is environment dependent, these test should be conditionally skipped. https://fburl.com/9fpszdqg ``` FAILED test/sparsity/test_sparse_api.py::TestSemiStructuredSparse::test_sparse - RuntimeError: hipSPARSELt not supported on your machine. ``` Differential Revision: D97540060
07faeaf to
f8da8fd
Compare
Summary:
What: Add a guard in test/sparsity/test_sparse_api.py so tests that depend on
hipSPARSELtonly run when the backend is available.Why: These tests currently fail on environments without hipSPARSELt, for example OSS AO nightly. Since the functionality is environment dependent, these test should be conditionally skipped. https://fburl.com/9fpszdqg
Differential Revision: D97540060