* Re: Optimized zgemv/cgemv routine
[not found] <19990103223855N.goto@statabo.rim.or.jp>
@ 1999-01-25 19:23 ` Adam
1999-02-08 23:32 ` Adam
1 sibling, 0 replies; 2+ messages in thread
From: Adam @ 1999-01-25 19:23 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]
Kazushige Goto wrote:
> Hi,
>
> I made optmized zgemv/cgemv routine.
Wonderful!
> P.S.
> Next, which routines should I optimize? zgemm?
For my own selfish reasons, I would love to see an accelerated dger, the
level 2 BLAS function which calculates the outer product of two
vectors. I think it is the last unoptimized part of dgetrf (which I use
a lot), and I think it is what makes dgetrf slow for large block sizes
(e.g. faster for 32x32 than 64x64, which I think should be faster for
dgemm).
By the way, I am finishing up a modified dgetrf which takes an extra
argument which is a function pointer to a user-supplied progress bar
function. It gives progress in approximate Flops, so it gives a pretty
good estimate of the fraction of time completed. User-supplied
functions can be fancy GUI bars (e.g. using Qt/gtk+/motif) which
calculate processor throughput and time remaining, or something as
simple as:
fprintf(stderr, "Completed %d out of %d\r", done, total);
fflush(stderr);
One can usually estimate how long something will take, but it's nice to
see it sometimes- especially to tell whether another job is slowing down
this one.
Anyone interested? It's pretty simple...
Zeen,
-Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____
USDoC, National Institute of Standards & Technology (NIST) |\ ||< |
Center for Theoretical and Computational Materials Science | \||_> |
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: Optimized zgemv/cgemv routine
[not found] <19990103223855N.goto@statabo.rim.or.jp>
1999-01-25 19:23 ` Optimized zgemv/cgemv routine Adam
@ 1999-02-08 23:32 ` Adam
1 sibling, 0 replies; 2+ messages in thread
From: Adam @ 1999-02-08 23:32 UTC (permalink / raw)
"Adam C. Powell, IV" wrote:
> For my own selfish reasons, I would love to see an accelerated dger, the
> level 2 BLAS function which calculates the outer product of two
> vectors. I think it is the last unoptimized part of dgetrf (which I use
> a lot), and I think it is what makes dgetrf slow for large block sizes
> (e.g. faster for 32x32 than 64x64, which I think should be faster for
> dgemm).
Okay, I feel silly. I replaced the call to dger_ with a looped call to
(Goto's assembler) daxpy_ and dgetrf now runs about 30% faster for a
1000x1000 matrix, not quite so much faster for larger matrices.
So, assembler dger would not help me.
Thanks,
-Adam `Cold Fusion' Powell, IV http://www.ctcms.nist.gov/~powell/ ____
USDoC, National Institute of Standards & Technology (NIST) |\ ||< |
Center for Theoretical and Computational Materials Science | \||_> |
^ permalink raw reply [flat|nested] 2+ messages in thread