-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Add test for SHGEMM #5499
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
base: develop
Are you sure you want to change the base?
Add test for SHGEMM #5499
Conversation
#define SGEMV BLASFUNC(sgemv) | ||
#define SHGEMV BLASFUNC(shgemv) |
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.
These shouldn't be necessary as shgemv
is tested separately?
int ret = 0; | ||
int loop = SHGEMM_LARGEST; | ||
char transA = 'N', transB = 'N'; | ||
float alpha = 1.0, beta = 0.0; |
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.
Given #5485, is it worth setting beta
to 1.0
here, or testing both variations? Similarly with alpha
, as 1.0
and 0.0
can have faster paths but in-between values usually don't.
I haven't got a good answer to this in the C tests, but we could try adding some Python-based tests with hypothesis
or Rust tests with proptest
.
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.
Worth noting we also don't test anything but square, and it'd be nice to sample in the various dimensions - though we could maybe just randomly sample to start with?
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.
Agree on the variations of alpha and beta, but we need to keep in mind that these test are run on each and every build, so time will become a problem sooner or later, and I think non-trivial dependencies like python or rust are completely out of the question for a default build.
Perhaps it would make sense to put those in a completely separate project similar to BLAS-Tester
Co-authored-by: Christopher Sidebottom <[email protected]>
fixes #5497