Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: goto@statabo.rim.or.jp (Kazushige Goto)
Subject: fast GEMM routine
Date: 1999/10/01	[thread overview]
Message-ID: <GOTO.99Oct1124100@news.statabo.rim.or.jp> (raw)

Hi,

I release optimized Matrix-Matrix Multiply routines(GEMM) for EV5,
EV6.


1. GEMM for EV6

This routine is optimized for 21264(EV6).  You can get 85% to 90%
performance of theoretical value.  If you use 677MHz machine, you may
get "GFlops World".


   table 1. FORTRAN SGEMM routine
			(21264  500MHz + 2MB L2 cache, MFLOPS)
	   ---------------------------------------------
	   Matrix Sizes | N x N | N x T | T x N | T x T
	   -------------+-------+-------+-------+-------
	     200 x  200 |  842  |  888  |  842  |  888
	     400 x  400 |  882  |  888  |  889  |  888
	     600 x  600 |  876  |  881  |  887  |  883
	    1000 x 1000 |  887  |  888  |  894  |  892
	    2000 x 2000 |  891  |  890  |  896  |  895
	    3000 x 3000 |  897  |  890  |  903  |  897
	   ---------------------------------------------


   table 2. FORTRAN DGEMM routine
			(21264  500MHz + 2MB L2 cache, MFLOPS)
	   ---------------------------------------------
	   Matrix Sizes | N x N | N x T | T x N | T x T
	   -------------+-------+-------+-------+-------
	     200 x  200 |  800  |  842  |  842  |  800
	     400 x  400 |  800  |  790  |  800  |  790
	     600 x  600 |  857  |  864  |  862  |  862
	    1000 x 1000 |  846  |  848  |  849  |  852
	    2000 x 2000 |  867  |  866  |  870  |  870
	    3000 x 3000 |  868  |  869  |  872  |  872
	   ---------------------------------------------


   table 3. FORTRAN CGEMM routine
			(21264  500MHz + 2MB L2 cache, MFLOPS)
	   ---------------------------------------------
	   Matrix Sizes | N x N | N x T | T x N | T x T
	   -------------+-------+-------+-------+-------
	     200 x  200 |  853  |  831  |  853  |  842
	     400 x  400 |  853  |  857  |  861  |  859
	     600 x  600 |  869  |  869  |  872  |  872
	    1000 x 1000 |  872  |  871  |  876  |  976
	    2000 x 2000 |  877  |  876  |  881  |  881
	    3000 x 3000 |  878  |  878  |  882  |  882
	   ---------------------------------------------


   table 4. FORTRAN ZGEMM routine
			(21264  500MHz + 2MB L2 cache, MFLOPS)
	   ---------------------------------------------
	   Matrix Sizes | N x N | N x T | T x N | T x T
	   -------------+-------+-------+-------+-------
	     200 x  200 |  831  |  831  |  831  |  820
	     400 x  400 |  838  |  838  |  839  |  839
	     600 x  600 |  812  |  839  |  815  |  843
	    1000 x 1000 |  849  |  849  |  853  |  853
	    2000 x 2000 |  853  |  854  |  857  |  957
	   ---------------------------------------------


2. GEMM for EV5

This routine is optimized for 21164(EV5).  


   table 5. FORTRAN SGEMM routine
			(21164A 600MHz + 2MB L3 cache, MFLOPS)
	   ---------------------------------------------
	   Matrix Sizes | N x N | N x T | T x N | T x T
	   -------------+-------+-------+-------+-------
	     200 x  200 |  952  |  956  |  952  |  941
	     400 x  400 |  955  |  955  |  948  |  948
	     600 x  600 |  964  |  958  |  960  |  954
	    1000 x 1000 |  962  |  956  |  958  |  951
	    2000 x 2000 |  960  |  955  |  955  |  950
	    3000 x 3000 |  958  |  957  |  956  |  951
	   ---------------------------------------------


   table 6. FORTRAN DGEMM routine
			(21164A 600MHz + 2MB L3 cache, MFLOPS)
	   ---------------------------------------------
	   Matrix Sizes | N x N | N x T | T x N | T x T
	   -------------+-------+-------+-------+-------
	     200 x  200 |  842  |  842  |  842  |  842
	     400 x  400 |  820  |  815  |  820  |  815
	     600 x  600 |  852  |  832  |  855  |  844
	    1000 x 1000 |  854  |  855  |  858  |  858
	    2000 x 2000 |  856  |  864  |  867  |  866
 	    3000 x 3000 |  859  |  860  |  860  |  865
	   ---------------------------------------------


   table 7. FORTRAN CGEMM routine
			(21164A 600MHz + 2MB L3 cache, MFLOPS)
	   ---------------------------------------------
	   Matrix Sizes | N x N | N x T | T x N | T x T
	   -------------+-------+-------+-------+-------
	     200 x  200 |  967  |  928  |  970  |  941
	     400 x  400 |  996  |  994  | 1005  | 1000
	     600 x  600 |  963  |  987  |  966  |  983
	    1000 x 1000 | 1023  | 1023  | 1027  | 1020
	    2000 x 2000 | 1030  | 1030  | 1035  | 1033
	    3000 x 3000 | 1032  | 1025  | 1024  | 1025
	   ---------------------------------------------


   table 8. FORTRAN ZGEMM routine
			(21164A 600MHz + 2MB L3 cache, MFLOPS)
	   ---------------------------------------------
	   Matrix Sizes | N x N | N x T | T x N | T x T
	   -------------+-------+-------+-------+-------
	     200 x  200 |  780  |  771  |  780  |  980
	     400 x  400 |  747  |  811  |  742  |  781
	     600 x  600 |  668  |  735  |  672  |  733
	    1000 x 1000 |  883  |  885  |  891  |  912
	    2000 x 2000 |  908  |  907  |  913  |  911
	   ---------------------------------------------

3. Distribution

   based on GPL2.


4. source

   please see at

   ftp://www.netstat.ne.jp/pub/Linux/Linux-Alpha-JP/BLAS

   libgemm_ev5-991001.tar.gz   : for EV5
   libgemm_ev6-991001.tar.gz   : for EV6

P.S.
   CGEMM/ZGEMM routines are not well optimized yet.  If you find any
problems, please let me know.

-----
  goto@statabo.rim.or.jp



             reply	other threads:[~1999-10-01  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-01  4:00 Kazushige Goto [this message]
1999-10-01  4:00 ` fast GEMM routine Toon Moene
1999-10-01  4:00   ` Johannes Nix
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