Skip to content

Make unit tests runnable via a tox environment#2765

Merged
talumbau merged 1 commit into
developfrom
users/talumbau/tox_unit_tests2
Nov 25, 2025
Merged

Make unit tests runnable via a tox environment#2765
talumbau merged 1 commit into
developfrom
users/talumbau/tox_unit_tests2

Conversation

@talumbau
Copy link
Copy Markdown
Contributor

@talumbau talumbau commented Nov 19, 2025

  • Using the tox environment "unit", you can quickly call unit tests once you have a build of tensile-client already available.

  • Add documentation to the README advertising this fact.

Motivation

Our integration testing (via the YAML files) is a comprehensive test of the codegen capabilities of tensilelite. We also need to be able to test the Python components separately. Codegen testing (because it ends up calling the actual tensilelite-client) can run for 15 minutes up to an hour or more. Unit testing of Python code can be done in 5-20 seconds, permitting faster development iteration cycles.

Technical Details

  • In 5ee394f the Sparse key was removed from the returned value in matrixInstructionToMIParameters but this test was never updated. Removing from the test allows the test to pass again.

Test Plan

tox -e unit -- Tensile/Tests/unit

Test Result

29 passed, 1 xfailed in 18.54s

(the one expected failure can be addressed in a follow up PR)

Submission Checklist

@math-ci
Copy link
Copy Markdown

math-ci Bot commented Nov 19, 2025

perfci run on commit 9c55f27

math-ci run

Copy link
Copy Markdown
Contributor

@yoichiyoshida yoichiyoshida left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please double check if those 2 asserts need to be removed

- Using the tox environment "unit", you can quickly call unit tests once
  you have a build of tensile-client already available.

- Add documentation to the README advertising this fact.

- In 5ee394f the Sparse key was removed
  from the returned value in matrixInstructionToMIParameters but this test
  was never updated. Removing from the test allows the test to pass again.
@talumbau talumbau force-pushed the users/talumbau/tox_unit_tests2 branch from 1849c0d to 568a8c6 Compare November 24, 2025 23:11
@math-ci
Copy link
Copy Markdown

math-ci Bot commented Nov 25, 2025

perfci run on commit 2962746

math-ci run

@talumbau talumbau merged commit 3c8f055 into develop Nov 25, 2025
37 of 38 checks passed
@talumbau talumbau deleted the users/talumbau/tox_unit_tests2 branch November 25, 2025 03:05
ammallya pushed a commit that referenced this pull request Feb 3, 2026
* Fix Default2DEpilogue usage

* Fix Default2DEpilogue usage for batch_prefill

[ROCm/composable_kernel commit: 9f35cde]
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.

2 participants