You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When n>2^23 gemv gives wrong results. The following program is an example
program test
implicit none
double precision :: a(2**23+1,4), b(4), c(2**23+1)
integer*8 :: n, idamax, i
a = 1.0d0
b = 1.0d0
call dgemv('N',2**23+1_8,4_8,1.0d0,a,2**23+1_8,b,1_8,1.0d0,c,1_8)
n = idamax(2**23+1_8,c,1_8)
write(*,*) c(n)
end
OpenBLAS is compiled with 64 bit integer support. My computer is a mid 2009 MacBook Pro but the problem is also present on a Dell Desktop with core i5 running Ubuntu 14.04.
Whatever it is, it seems to have happened between 0.2.6 and 0.2.7 - the former says "4" like netlib
while the latter (and all after it) say "20" at least on my Nehalem-based laptop. I could play again with my newly acquired "git bisect" knowledge but I will probably not be able to fix what I find :-/
@wangqian Just tried and now I get a segfault. The program above gives me
andreass-mbp:Desktop andreasnoackjensen$ ./a.out
Program received signal SIGBUS: Access to an undefined portion of a memory object.
Backtrace for this error:
#0 0x11a899f72
#1 0x11a89a73e
#2 0x7fff8a4fb5a9
Bus error: 10
@xianyi This is still a problem, but not on all architectures. On my Intel Core 2 Duo the problem appears to be solved, but the problem is there for at least i5-4670, i7-3770 and Xeon(R) E7-8850. As far as I can see, the problem is only for double precision.
Activity
JeffBezanson commentedon Jan 30, 2014
This is a really serious bug. Would love to see this fixed in the next release.
wlbksy commentedon Jan 31, 2014
It's Chinese lunar new year now. I guess it won't be fixed quite soon.
jiahao commentedon Jan 31, 2014
恭喜发财 to you too :)
martin-frbg commentedon Feb 1, 2014
Whatever it is, it seems to have happened between 0.2.6 and 0.2.7 - the former says "4" like netlib
while the latter (and all after it) say "20" at least on my Nehalem-based laptop. I could play again with my newly acquired "git bisect" knowledge but I will probably not be able to fix what I find :-/
martin-frbg commentedon Feb 1, 2014
23965f1 is the first bad commit
commit 23965f1
Author: wangqian wangqian10@iscas.ac.cn
Date: Wed May 29 19:48:31 2013 +0800
xianyi commentedon Feb 3, 2014
Sorry for the delay. I am on Chinese New Year holiday.
@wangqian , please fix this bug. :)
@jiahao, 谢谢,马年大吉大利
wangqian commentedon Feb 4, 2014
Sorry for delay, I have fixed this bug. Please test it.
andreasnoack commentedon Feb 4, 2014
@wangqian Just tried and now I get a segfault. The program above gives me
martin-frbg commentedon Feb 4, 2014
Hmm. New version works for me (i7 Nehalem, openSuSE, openBLAS built with USE_THREAD=0,USE_OPENMP=1 for other reasons)
Refs #340. Fixed SEGFAULT bug of dgemv_n on OSX.
andreasnoack commentedon Feb 18, 2014
@xianyi I can confirm your commit has fixed the problem on my Mac.
andreasnoack commentedon Feb 18, 2014
Well, not completely. The original problem is still there for
cgemv.JeffBezanson commentedon May 5, 2014
bump
xianyi commentedon May 6, 2014
@JeffBezanson ,
I will debug this error this week.
xianyi commentedon May 14, 2014
@andreasnoackjensen
I cannot reproduce
cgemvbug. Could you provide your test code?Thank you
andreasnoack commentedon May 14, 2014
@xianyi I have just tried again and I cannot reproduce it either, so I guess we can close this one. Thanks.
andreasnoack commentedon May 24, 2014
@xianyi This is still a problem, but not on all architectures. On my Intel Core 2 Duo the problem appears to be solved, but the problem is there for at least i5-4670, i7-3770 and Xeon(R) E7-8850. As far as I can see, the problem is only for double precision.
ViralBShah commentedon May 25, 2014
I see the issue on my Intel core i5 macbook pro. I believe it is Haswell.
wernsaar commentedon May 25, 2014
On 25.05.2014 10:09, Viral B. Shah wrote:
I cannot reproduce this error.
Please give me some information:
Best regards
Werner
ViralBShah commentedon May 25, 2014
I am using version 0.2.8. The Makefile.rule is what ships.
I am doing these tests from Julia, so I do not have a standalone program. The flags are:
ViralBShah commentedon May 25, 2014
Please see the Julia issue above referenced by @andreasnoackjensen
ViralBShah commentedon May 25, 2014
The test program provided above also provides the wrong answer on v0.2.8.
andreasnoack commentedon May 25, 2014
@wernsaar Sorry for the noise. This has been solved. I thought I had recompiled with the develop branch, but I hadn't.
ViralBShah commentedon May 25, 2014
Ok - that explains it. Thanks. I thought this was fixed for v0.2.8.