Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Murx <chrisi@theo1.physik.uni-stuttgart.de>
Subject: Re: Optimized BLAS (No. 2)
Date: 1998/11/12	[thread overview]
Message-ID: <364B5D96.BA3A2ECA@theo1.physik.uni-stuttgart.de> (raw)
In-Reply-To: 364B3F7C.B8EC01BC@nist.gov

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




      parent reply	other threads:[~1998-11-12  5:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-11-06  5:00 Optimized BLAS (No. 2) C.Simmendinger
1998-11-12  5:00 ` Adam C. Powell, IV
1998-11-12  5:00   ` Murx
1998-11-12  5:00     ` Adam C. Powell, IV
1998-11-12  5:00       ` Murx
1998-11-12  5:00         ` Adam C. Powell, IV
1998-11-13  5:00           ` Other things Murx
1998-11-13  5:00           ` Optimized BLAS (No. 2) Johannes G.D. Hausmann
1998-11-14  5:00             ` Toon Moene
1998-11-16  5:00               ` Adam C. Powell, IV
1998-11-12  5:00   ` Murx [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox