-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UnitTest] Disable ptx mma tests on unsupported nvcc versions. #10229
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- Modified `tvm.contrib.nvcc.get_cuda_version` to return a `(major,minor,release)` tuple rather than a float. - Implemented `tvm.testing.requries_nvcc_version` decorator to specify the minimum `(major,minor,release)` version needed to run a unit test. - Applied decorated to unit tests in `test_tir_ptx_mma.py` that fail on earlier nvcc versions.
cfb1133
to
3b53d8d
Compare
@Lunderberg Please take a look at the CI problem. |
Thank you, and the lint errors should be resolved now. |
@Lunderberg Need more lint fix |
Thank you, and more lint fixes applied. It looks like the issue in my local setup is that |
Yeah that happens to me to. I always do |
da7b230
to
bd4bfc8
Compare
Bumped the commit to restart CI. |
…e#10229) * [UnitTest] Disable ptx mma tests on unsupported nvcc versions. - Modified `tvm.contrib.nvcc.get_cuda_version` to return a `(major,minor,release)` tuple rather than a float. - Implemented `tvm.testing.requries_nvcc_version` decorator to specify the minimum `(major,minor,release)` version needed to run a unit test. - Applied decorated to unit tests in `test_tir_ptx_mma.py` that fail on earlier nvcc versions. * Fix lint errors. * Updated a few of the cuda version checks. * More lint fixes. * Only compare major/minor in find_libdevice, not release version.
Modified
tvm.contrib.nvcc.get_cuda_version
to return a(major,minor,release)
tuple rather than a float.Implemented
tvm.testing.requries_nvcc_version
decorator to specify the minimum(major,minor,release)
version needed to run a unit test.Applied decorated to unit tests in
test_tir_ptx_mma.py
that fail on earlier nvcc versions.