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

Add nonuniform tile sizes to more testers & fix some related issues #143

Merged
merged 19 commits into from
Jan 16, 2024

Conversation

neil-lindquist
Copy link
Contributor

@neil-lindquist neil-lindquist commented Nov 14, 2023

This PR adds support for nonuniform tile sizes to several of the testers (gemm, gesv, the aux routines). While I was at it, I started refactoring some of the shared tester logic in the shared functions. I also addressed some other issues that I ran into

  • Removed tile life from getrf, getrf_tntpiv, and getrf_nopiv Moved to Remove tile life from remaining routines #150
  • Removed some unnecessary layout conversions in getrf and getrf_tntpiv
  • Remove an unnecessary layout conversion in BaseMatrix::tileGet
  • Fix handling of user tile sizes where the last tiles don't perfectly match the problem size.
  • Ensure tileLayoutConvert always has sufficient workspace
  • Make MatrixStorage a little more robust against simultaneous operations.

A few limitations:

  • I left the defaults/the CI config to still only test uniform sizes.
  • getrf_tntpiv can be tested with nonuniform tile sizes, but has non-trivial assumptions about tile sizes.

It's straightforward to add this to other testers, but I stopped here to make the code review easier.

@neil-lindquist neil-lindquist marked this pull request as draft November 15, 2023 13:50
@neil-lindquist neil-lindquist changed the title Add nonuniform tile sizes to more testers & fix some related issues (depends on #140) Add nonuniform tile sizes to more testers & fix some related issues Dec 4, 2023
@neil-lindquist neil-lindquist marked this pull request as ready for review December 4, 2023 13:57
@neil-lindquist neil-lindquist force-pushed the nonuniform-tests branch 2 times, most recently from 9aecfd2 to 8419365 Compare December 11, 2023 21:16
Copy link
Collaborator

@mgates3 mgates3 left a comment

Choose a reason for hiding this comment

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

Some minor fixes that mostly I'll do, and some general comments about the code structure. Feel free to provide any feedback. I probably won't make major changes, just noting some thoughts for the future.

include/slate/BaseMatrix.hh Outdated Show resolved Hide resolved
include/slate/BaseMatrix.hh Outdated Show resolved Hide resolved
include/slate/BaseMatrix.hh Show resolved Hide resolved
test/matrix_utils.hh Outdated Show resolved Hide resolved
test/matrix_utils.hh Outdated Show resolved Hide resolved
test/test_add.cc Show resolved Hide resolved
test/test_copy.cc Show resolved Hide resolved
test/test_gemm.cc Show resolved Hide resolved
test/test_gemm.cc Show resolved Hide resolved
test/test_gemm.cc Outdated Show resolved Hide resolved
Copy link
Collaborator

@mgates3 mgates3 left a comment

Choose a reason for hiding this comment

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

Consider changes to TestMatrix after merging in #157.

@mgates3 mgates3 merged commit 2aa59fa into icl-utk-edu:master Jan 16, 2024
8 checks passed
mgates3 added a commit that referenced this pull request Feb 4, 2024
Add nonuniform tile sizes, device distributions, and grid orders to even more testers (depends on #143)
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.

2 participants