From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,b3b20d0591081951 X-Google-Attributes: gid111c93,public From: Murx Subject: Re: Optimized BLAS (No. 2) Date: 1998/11/12 Message-ID: <364B5D96.BA3A2ECA@theo1.physik.uni-stuttgart.de>#1/1 X-Deja-AN: 411234420 Content-Transfer-Encoding: 7bit References: <36433B28.1A85B9D7@theo1.physik.uni-stuttgart.de> <364B3F7C.B8EC01BC@nist.gov> Content-Type: text/plain; charset=us-ascii Organization: InterNetNews at News.BelWue.DE (Stuttgart, Germany) Mime-Version: 1.0 Reply-To: chrisi@theo1.physik.uni-stuttgart.de Newsgroups: comp.os.linux.alpha Adam C. Powell, IV wrote: > A couple of questions: > > 1. Why the separate dcmplx directories? To test the effect of > -fno-emulate-complex on non-complex sources, I tried compiling > dtrmm.f with and without it, and diff showed the objects were > identical. (Or does this slow down the single-precision complex > routines?) Err, no rather g77/egcs crashes on -fno-emulate-complex single-precision (no prob for me, since i use double throughout anyway ;-) It does however yield such an amazing speedup that you are well-advised to use this switch. Did quite a few runs with this. Although info says it might produce incorrect results i haven't found a bug yet. Stopped crosschecking now. > 5. Could we get an additional speed increase by replacing dgemv with a > call to Goto's gemm with n=1? (Also ldb=incx, ldc=incy.) This > could be done just by writing a "gemv.c" in the dgemm directory > (which should probably be called "gemm" since it has both dgemm and > sgemm) similar to "gemm.c", which calls gemm_nn or gemm_tn > depending on TRANS. It is sort of an abstraction violation, as > level 3 BLAS are supposed to depend on level 2 and not vice versa, > but I don't think this is a real problem- as long as it works and > goes fast. Goto has an assembler sgemv/dgemv. There is also a ugly version of cgemv/zgemv which isn't as good but not way behind. > 6. Have you played with the block size settings? I got a 10% speed > increase in LAPACK dgetrf (LU decomposition) by editing ilaenv.f to > change the block size from 64 to 32. Possible reasons: Goto's gemm > loads something like 122x32 and 122x122 blocks of the matrices into > L2 cache, changing these both to 64x64 might help a tiny bit; but > more likely it's because dgetf2 (unblocked, no gemm) is called with > larger submatrices... It's all so complicated. :-) Just wondering > if you've tried. Only in the BLAS. I ended up using 12x8 i think. woops... > Okay, so I've done everything except gemv.c. I'll work on this later. No need to ;-) As for the mailing-list: I'd join too ! Christian