Skip to content
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

Merged
merged 5 commits into from
Feb 18, 2022

Conversation

Lunderberg
Copy link
Contributor

  • 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.

Copy link
Member

@junrushao junrushao left a 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.
@masahi
Copy link
Member

masahi commented Feb 15, 2022

@Lunderberg Please take a look at the CI problem.

@Lunderberg
Copy link
Contributor Author

Thank you, and the lint errors should be resolved now.

@masahi
Copy link
Member

masahi commented Feb 15, 2022

@Lunderberg Need more lint fix

@Lunderberg
Copy link
Contributor Author

Thank you, and more lint fixes applied. It looks like the issue in my local setup is that black can't be run from inside the python/tvm/contrib, because python/tvm/contrib/random.py prevents it from importing the standard library random.

@masahi
Copy link
Member

masahi commented Feb 15, 2022

Thank you, and more lint fixes applied. It looks like the issue in my local setup is that black can't be run from inside the python/tvm/contrib, because python/tvm/contrib/random.py prevents it from importing the standard library random.

Yeah that happens to me to. I always do tests/lint/git-black.sh -i upstream/main.

@Lunderberg
Copy link
Contributor Author

Bumped the commit to restart CI.

@masahi masahi merged commit ffd517a into apache:main Feb 18, 2022
@Lunderberg Lunderberg deleted the mma_skipif branch March 7, 2022 15:47
pfk-beta pushed a commit to pfk-beta/tvm that referenced this pull request Apr 11, 2022
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants