-
Notifications
You must be signed in to change notification settings - Fork 20
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
For the transposition directive in gemv, CblasConjTrans just gives results as CblasTrans. #54
Comments
I think complex support is not well implemented (I guess I was the only person who uses complex arithmetics?), so I would expect that it is simply a bug. |
That should be a bug. On Fri, Jul 18, 2014 at 6:54 AM, Toru Shiozaki notifications@github.com
|
@shengg Most contract-like and permute should be assumed to NOT work with All, note pull request #53 that addresses the issue of const TensorView not On Thu, Jul 17, 2014 at 8:29 PM, Naoki Nakatani notifications@github.com
web: valeyev.net |
The unit test is now broken (with Commit: bde5b24). @shengg Is this related to this issue?
|
Yes. |
@shiozaki I made a small change. It works now. |
Thanks - but if _HAS_CBLAS is defined, it still breaks. |
I used mkl cblas. When _HAS_CBLAS is defined, several other tests also failed. |
I do use MKL CBLAS on Mac, and this (tensor_blas_test.cc:371) is the only test that fails. |
I should check my MKL or try another version. Maybe, it was not configured well, since MKL in my desktop was never used before. |
For what it's worth, my MKL is composer_xe_2013_sp1.0.074 and I do in ~/.profile
|
WAIT! you are right, there are some tests that are broken (I was looking at a wrong build). I will try to look into it as far as I can. |
There are bugs in tests due to hardwired threshold. Note below that float does not have 10 digits accuracy. I think they should be implemented using std::numerical_limits::epsilon() in some way.
|
Yes, It should be changed. When I did not define _HAS_CBLAS, it works for However, after defining _HAS_CBLAS, the deviation was very big. And some Best regards, Sheng Guo On Wed, Jul 23, 2014 at 12:08 PM, Toru Shiozaki notifications@github.com
|
In addition, do not use fabs in the global scope from math.h. They are only implemented for double, so if you use it for float, it involves casts that introduce numerical noise. The numerical behavior _HAS_CBLAS mainly stems from loop optimization (and use of SSE/AVX instructions) and is legitimate. |
They are only -> They may be only. Anyway it seems to change the behavior on my laptop. I guess it is better to use std::abs. |
For blas functions, gemv and gemm, there are parameters to determine how to transpose for the matrix: NoTrans, Trans or ConjTrans. In btas, all of these three parameters are implemented for gemm. However, only NoTrans and Trans are implemented for gemv. If ConjTrans is used, it is considered as Trans. I do not know why.
The text was updated successfully, but these errors were encountered: