Page 1 of 1

magma-1.4.0-beta2 bug report in dgetrf_m.cpp...

Posted: Tue Aug 06, 2013 1:20 pm
by waitzman
In magma-1.4.0-beta2 there are some used before set compilation warnings that seem actually wrong:
zgetrf_m.cpp(125): warning #592: variable "num_gpus" is used before its value is set
cgetrf_m.cpp(125): warning #592: variable "num_gpus" is used before its value is set
dgetrf_m.cpp(125): warning #592: variable "num_gpus" is used before its value is set
sgetrf_m.cpp(125): warning #592: variable "num_gpus" is used before its value is set

For the above functions, perhaps the fix is to set num_gpus as follows:
num_gpus = magma_num_gpus();

testing_zhetrd_he2hb.cpp(237): warning #592: variable "vl" is used before its value is set
testing_zhetrd_he2hb.cpp(237): warning #592: variable "vu" is used before its value is set
testing_chetrd_he2hb.cpp(237): warning #592: variable "vl" is used before its value is set
testing_chetrd_he2hb.cpp(237): warning #592: variable "vu" is used before its value is set
testing_dsytrd_sy2sb.cpp(237): warning #592: variable "vl" is used before its value is set
testing_dsytrd_sy2sb.cpp(237): warning #592: variable "vu" is used before its value is set
testing_ssytrd_sy2sb.cpp(237): warning #592: variable "vl" is used before its value is set
testing_ssytrd_sy2sb.cpp(237): warning #592: variable "vu" is used before its value is set

I didn't figure out the fix for the functions.

Re: magma-1.4.0-beta2 bug report in dgetrf_m.cpp...

Posted: Fri Aug 09, 2013 12:56 pm
by mgates3
Yes, we've fixed these. Thanks.
-mark