Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* 21164 speed
@ 1998-12-16 17:08 Thorsten Koch
  1998-12-16 18:10 ` Matti Aarnio
  1998-12-16 19:20 ` Oscar Levi
  0 siblings, 2 replies; 10+ messages in thread
From: Thorsten Koch @ 1998-12-16 17:08 UTC (permalink / raw)
  To: axp-list

Hello,

does anybody know if the 21164 can get more than one result
per cycle ?
Is there a sequence of instructions like

addt $f0,$f1,$f2
addq $1,$2,$3
mult $f3,$f4,$f5
addq $4,$5,$6

that executes in less than 4 cycles ?

Regards,
Thorsten

-- 
"They that can give up essential liberty to obtain a little temporary
saftey deserve neither liberty not saftey."
-- Benjamin Franklin, 1759


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 21164 speed
  1998-12-16 17:08 Thorsten Koch
@ 1998-12-16 18:10 ` Matti Aarnio
  1998-12-16 22:42   ` Greg Lindahl
  1998-12-16 19:20 ` Oscar Levi
  1 sibling, 1 reply; 10+ messages in thread
From: Matti Aarnio @ 1998-12-16 18:10 UTC (permalink / raw)
  To: axp-list

> Hello,
> 
> does anybody know if the 21164 can get more than one result
> per cycle ?
> Is there a sequence of instructions like
> 
> addt $f0,$f1,$f2
> addq $1,$2,$3
> mult $f3,$f4,$f5
> addq $4,$5,$6
> 
> that executes in less than 4 cycles ?

	No, in fact they take more -- FP multiplier has pipeline
	latency of 8 cycles.  FP-add pipeline takes also 8 cycles.
(archive digging --- dec21164pchwm.pdf found ...)

	The 21164 has two parallel integer pipes and two parallel
	floating-point pipes, plus registerfile/memory load/store
	processing, plus a few other gimmics.

	ipipe0:
		add, log, shift, ld, st, imul, cmp, sext, cmov,
		byte, word, mvi
	ipipe1:
		add, log, br, cmp, cmov
	fpipe0:
		ld, st, add, div, fbr, fcmovs, fcpy
	fpipe1:
		mul, fcmovs, fcpys

	For instruction issue slotting rules see the
	21164 Hardware Reference Manual.


	For short, under optimal conditions you can issue up to 
	two integer, and two FP operations per each clock cycle.

	That is quite much indeed.  It even looks like you can
	issue matrix kernel Multiply+Add pipelined instruction
	pair at full throttle of the system and thus calculate
	the matrix multiplies quite fast..  .. like one product
	per every second clock cycle, if you can keep the MUL+ADD
	pipe full by doing preloads from memory to cache, and then
	doing final loads, and address index calculation in parallel
	to the FP side processing.

	You will need also loop unrolling, and register resource
	rotating so that you don't force pipeline stalls at register
	file accesses -- and allow processing pipeline delay!

> Regards,
> Thorsten

/Matti Aarnio <matti.aarnio@sonera.fi>


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 21164 speed
  1998-12-16 17:08 Thorsten Koch
  1998-12-16 18:10 ` Matti Aarnio
@ 1998-12-16 19:20 ` Oscar Levi
  1 sibling, 0 replies; 10+ messages in thread
From: Oscar Levi @ 1998-12-16 19:20 UTC (permalink / raw)
  To: axp-list

On Wed, Dec 16, 1998 at 06:08:50PM +0100, Thorsten Koch wrote:
> Hello,
> 
> does anybody know if the 21164 can get more than one result
> per cycle ?
> Is there a sequence of instructions like
> 
> addt $f0,$f1,$f2
> addq $1,$2,$3
> mult $f3,$f4,$f5
> addq $4,$5,$6
> 
> that executes in less than 4 cycles ?

I think the question is whether or not the processor issues multiple
instructions per cycle.  I believe that the 21264 does this, but the
21164 is only pipelined.  IIRC, multiple issue makes sense only when
coupled with out-of-order execution.  This, too, I believe is a 21264
feature.  Also note that to execute more than four instructions in
four cycles requires a fetch unit that can fetch more than one
instruction per cycle.  Again, IIRC, the memory bus must be at least
64 bits wide on the Alpha for this to happen since instruction are at
least 32 bits wide.

I'm not sure you would see any given fragment execute in less than 4
cycles.  Instead, you might see the aggregate performance of a
sequence of instructions be less than the sequential fetch time.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 21164 speed
@ 1998-12-16 20:01 Robert Harley
  1998-12-16 23:31 ` Oscar Levi
  0 siblings, 1 reply; 10+ messages in thread
From: Robert Harley @ 1998-12-16 20:01 UTC (permalink / raw)
  To: axp-list

Oscar Levi wrote:
>[...a bunch of crap...]

Hey, if you have ABSOLUTELY NO CLUE WHATSOEVER about the topic at hand,
then why bother replying?

In answer to the question: yes the 21164 can issue up to four
instructions in one cycle under the right conditions.  The example
given looks to me like it ought to go through in one as long as it
is correctly aligned, but check the document mentioned in the "ALPHA
instruction timing" thread a few days ago for a definitive answer.

Rob.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 21164 speed
  1998-12-16 18:10 ` Matti Aarnio
@ 1998-12-16 22:42   ` Greg Lindahl
  1998-12-16 22:43     ` Bob McElrath
  0 siblings, 1 reply; 10+ messages in thread
From: Greg Lindahl @ 1998-12-16 22:42 UTC (permalink / raw)
  To: axp-list

> 	That is quite much indeed.  It even looks like you can
> 	issue matrix kernel Multiply+Add pipelined instruction
> 	pair at full throttle of the system and thus calculate
> 	the matrix multiplies quite fast..  .. like one product
> 	per every second clock cycle, if you can keep the MUL+ADD
> 	pipe full by doing preloads from memory to cache, and then
> 	doing final loads, and address index calculation in parallel
> 	to the FP side processing.

Uh, the 21164 already does matrix multiplies as fast as the 21264,
because Goto hand-scheduled the routine.

Why speculate about what is known?

-- g


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 21164 speed
  1998-12-16 22:42   ` Greg Lindahl
@ 1998-12-16 22:43     ` Bob McElrath
  1998-12-16 22:45       ` Greg Lindahl
  0 siblings, 1 reply; 10+ messages in thread
From: Bob McElrath @ 1998-12-16 22:43 UTC (permalink / raw)
  To: axp-list

On Wed, 16 Dec 1998, Greg Lindahl wrote:

> > 	That is quite much indeed.  It even looks like you can
> > 	issue matrix kernel Multiply+Add pipelined instruction
> > 	pair at full throttle of the system and thus calculate
> > 	the matrix multiplies quite fast..  .. like one product
> > 	per every second clock cycle, if you can keep the MUL+ADD
> > 	pipe full by doing preloads from memory to cache, and then
> > 	doing final loads, and address index calculation in parallel
> > 	to the FP side processing.
> 
> Uh, the 21164 already does matrix multiplies as fast as the 21264,
> because Goto hand-scheduled the routine.

Where would one find said routine?

-- Bob

Bob McElrath (mcelrath@draal.physics.wisc.edu) Univ. of Wisconsin at Madison


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 21164 speed
  1998-12-16 22:43     ` Bob McElrath
@ 1998-12-16 22:45       ` Greg Lindahl
  0 siblings, 0 replies; 10+ messages in thread
From: Greg Lindahl @ 1998-12-16 22:45 UTC (permalink / raw)
  To: axp-list

> > Uh, the 21164 already does matrix multiplies as fast as the 21264,
> > because Goto hand-scheduled the routine.
> 
> Where would one find said routine?

You would look at the Alpha Linux FAQ? Matrix multiply gets talked
about at least once a week on this mailing list; we should be sure
that we all use the FAQ to cut out redundant chatter.

-- g


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 21164 speed
  1998-12-16 20:01 Robert Harley
@ 1998-12-16 23:31 ` Oscar Levi
  0 siblings, 0 replies; 10+ messages in thread
From: Oscar Levi @ 1998-12-16 23:31 UTC (permalink / raw)
  To: axp-list

On Wed, Dec 16, 1998 at 09:01:52PM +0100, Robert Harley wrote:
> Oscar Levi wrote:
> >[...a bunch of crap...]
> 
> Hey, if you have ABSOLUTELY NO CLUE WHATSOEVER about the topic at hand,
> then why bother replying?

You're a rude piece of trash.

> In answer to the question: yes the 21164 can issue up to four
> instructions in one cycle under the right conditions.  The example
> given looks to me like it ought to go through in one as long as it
> is correctly aligned, but check the document mentioned in the "ALPHA
> instruction timing" thread a few days ago for a definitive answer.

> 
> Rob.
> 
> -- 
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com
> 


^ permalink raw reply	[flat|nested] 10+ messages in thread

* RE: 21164 speed
@ 1998-12-16 23:48 Marek Dohojda
  1998-12-17  5:09 ` Oscar Levi
  0 siblings, 1 reply; 10+ messages in thread
From: Marek Dohojda @ 1998-12-16 23:48 UTC (permalink / raw)
  To: axp-list

Please be nice, or replay to yourselves.  This is a good list, with good
information, and great people.  If you want or need to flame each other,
do so in private.

		-----Original Message-----
		From:	Oscar Levi [mailto:elf@buici.com]
		Sent:	Wednesday, December 16, 1998 3:32 PM
		To:	axp-list@redhat.com
		Subject:	Re: 21164 speed

		On Wed, Dec 16, 1998 at 09:01:52PM +0100, Robert Harley
wrote:
		> Oscar Levi wrote:
		> >[...a bunch of crap...]
		> 
		> Hey, if you have ABSOLUTELY NO CLUE WHATSOEVER about
the topic at hand,
		> then why bother replying?

		You're a rude piece of trash.

		> In answer to the question: yes the 21164 can issue up
to four
		> instructions in one cycle under the right conditions.
The example
		> given looks to me like it ought to go through in one
as long as it
		> is correctly aligned, but check the document mentioned
in the "ALPHA
		> instruction timing" thread a few days ago for a
definitive answer.

		> 
		> Rob.
		> 
		> -- 
		> To unsubscribe: send e-mail to
axp-list-request@redhat.com with
		> 'unsubscribe' as the subject.  Do not send it to
axp-list@redhat.com
		> 

		-- 
		To unsubscribe: send e-mail to
axp-list-request@redhat.com with
		'unsubscribe' as the subject.  Do not send it to
axp-list@redhat.com


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: 21164 speed
  1998-12-16 23:48 21164 speed Marek Dohojda
@ 1998-12-17  5:09 ` Oscar Levi
  0 siblings, 0 replies; 10+ messages in thread
From: Oscar Levi @ 1998-12-17  5:09 UTC (permalink / raw)
  To: axp-list

On Wed, Dec 16, 1998 at 03:48:48PM -0800, Marek Dohojda wrote:
> Please be nice, or replay to yourselves.  This is a good list, with good
> information, and great people.  If you want or need to flame each other,
> do so in private.

Certainly appropriate.

It is significant the the axp-list replies automatically to itself.
This policy tends to put more traffic on the list than we'd all like
to see.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1998-12-17  5:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-16 23:48 21164 speed Marek Dohojda
1998-12-17  5:09 ` Oscar Levi
  -- strict thread matches above, loose matches on Subject: below --
1998-12-16 20:01 Robert Harley
1998-12-16 23:31 ` Oscar Levi
1998-12-16 17:08 Thorsten Koch
1998-12-16 18:10 ` Matti Aarnio
1998-12-16 22:42   ` Greg Lindahl
1998-12-16 22:43     ` Bob McElrath
1998-12-16 22:45       ` Greg Lindahl
1998-12-16 19:20 ` Oscar Levi

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