-
Notifications
You must be signed in to change notification settings - Fork 371
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
*omatcopy_ct input parameter checking #640
Comments
I think I also encountered this problem on AOCL-BLAS 4.2. Minimal reproduction code could be /* problem.cpp */
#include "blis.h"
int main() {
char trans = 'T';
double alpha = 1;
int n = 20, lda = 20;
int m = 10, ldb = 10; /* m = ldb smaller than n = lda could reproduce this issue */
double *A = (double *) malloc(sizeof(double) * m * n);
double *B = (double *) malloc(sizeof(double) * m * n);
domatcopy(&trans, &n, &m, &alpha, A, &lda, B, &ldb);
free(A); free(B);
} and simply compile by $ g++ -o problem problem.cpp -I$HOME/aocl/4.2.0/aocc/include -L$HOME/aocl/4.2.0/aocc/lib -lblis |
This is not an AMD support channel. Please only report bugs against the BLIS project that's in this repo. If you can reproduce AMD BLIS bugs with this repo, by all means report them. Otherwise, take your issues to AMD. |
I would have phrased it nicer but yes, the code in question is not currently in the FLAME BLIS repo. It is part of #567 which has not been merged at this point. I'm going to keep this open in case we do merge that PR. |
@markbmuller, @ajz34 - you can post the issue at https://github.com/amd/blis . |
Issues Tab is currently disabled in amd/blis. Regarding the issues related to AMD BLIS Repo, please write to toolchainsupport@amd.com. Thanks. |
Thanks for suggestions! I've tried managed writing to toolchainsupport@amd.com. Some chats follows. |
I am also hit by this problem. Issue tracker of https://github.com/amd/blis is empty. What is the current state of the bug? |
We fixed this issue, and it will be available in our next release. |
Is there a branch at GitHub where we can fetch the fix? |
When using a downloaded AMD precompilled blis library and calling domatcopy to perform a transpose copy, I have received the following error message:
libblis: /home/amd/jenkins/workspace/AOCL_Month_Release_Package/blis/frame/compat/bla_omatcopy.c (line 536):
libblis: Invalid function parameter in bli_doMatCopy_ct() .
Upon downloading and compiling BLIS commit 3aa0044, I get the same behavior. In bli_doMatCopy_ct, it checks the input on line 534 with:
if ( rows <= 0 || cols <= 0 || a == NULL || b == NULL || lda < rows || ldb < rows )
Since it is applying a transpose to b, it should be comparing ldb with cols, not rows. This in the routine bli_doMatCopy_ct. There is the same issue with bli_soMatCopy_ct, bli_coMatCopy_ct, and bli_zoMatCopy_ct.
The text was updated successfully, but these errors were encountered: