Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Permutation Tensor
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  Messages 51 - 53 of 53 - Collapse all  -  Translate all to Translated (View all originals) < Older 
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Alex Wegel  
View profile  
 More options Jul 27 2012, 7:42 am
Newsgroups: comp.lang.forth
From: awe...@arcor.de (Alex Wegel)
Date: Fri, 27 Jul 2012 13:42:22 +0200
Local: Fri, Jul 27 2012 7:42 am
Subject: Re: Permutation Tensor

One part of it surely is, but - as i stated - the forth compiler used
plays a major role too.

> AFAIK, the pentium has
> a deeper pipeline compared to the PPC?

It used to be this way - my ppc is rather old anyway, so it's pipeline
might look even shorter when comparing with a modern x86 (but i didn't
care for such trends at all lately, so this is just a guess).

> So iForth is slower probably
> because of pipeline bubbles due to branch misprediction? -AD

That's where guessing and gambling starts without access to everything
involved (iForth, x86).

In the end, there are a lot of factors, esp. when looking at todays
superscalar CPUs, and the real world might still look *totally*
different than a simplistic benchmark would suggest. (Different input
data, different call pattern, etc.).

To sum it up: Searching the "best" variant of such a function by using a
benchmark is nerd-fun, but that's probably it.

Cheers,
Alex


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Marcel Hendrix  
View profile  
 More options Jul 27 2012, 9:39 am
Newsgroups: comp.lang.forth
From: m...@iae.nl (Marcel Hendrix)
Date: Fri, 27 Jul 2012 15:39:37 +0200
Local: Fri, Jul 27 2012 9:39 am
Subject: Re: Permutation Tensor
awe...@arcor.de (Alex Wegel) writes Re: Permutation Tensor

> Arnold Doray <inva...@invalid.com> wrote:
[..]
>> Perhaps the difference is due to CPU architecture.
> One part of it surely is, but - as i stated - the forth compiler used
> plays a major role too.
[..]
>> So iForth is slower probably
>> because of pipeline bubbles due to branch misprediction? -AD
> That's where guessing and gambling starts without access to everything
> involved (iForth, x86).

Would it be so much less of a gamble when *did* have access?

> In the end, there are a lot of factors, esp. when looking at todays
> superscalar CPUs, and the real world might still look *totally*
> different than a simplistic benchmark would suggest. (Different input
> data, different call pattern, etc.).

This exercise has shown that the difference between algorithms is (1) large,
and (2) unpredictable and counterintuitive. I looked again just now,
and I would not have expected lcsymbol4 to be the best (in iForth64), nor
can can I understand its terrible performance in 32bit mode.

> To sum it up: Searching the "best" variant of such a function by using a
> benchmark is nerd-fun, but that's probably it.

In Forth we can test such things at runtime very easily. Imagine
Forth applications that adapt themselves to their surroundings
organically :-)

-marcel


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Arnold Doray  
View profile  
 More options Jul 30 2012, 12:52 am
Newsgroups: comp.lang.forth
From: Arnold Doray <inva...@invalid.com>
Date: Mon, 30 Jul 2012 04:52:43 +0000 (UTC)
Local: Mon, Jul 30 2012 12:52 am
Subject: Re: Permutation Tensor

On Fri, 27 Jul 2012 15:39:37 +0200, Marcel Hendrix wrote:
>> To sum it up: Searching the "best" variant of such a function by using
>> a benchmark is nerd-fun, but that's probably it.

> In Forth we can test such things at runtime very easily. Imagine Forth
> applications that adapt themselves to their surroundings organically :-)

> -marcel

A tongue-in-cheek comment, but still an interesting thought.

JITs do this all the time, but the direction for optimization is
unambigious. With multiple algorithms, it would take longer to test for
optimality, and for the hypothetical "JIT" to kick in, unless there are
some heuristics. A more obvious application is processing data across
multiple nodes -- sometimes it's good to just stream the data from the
"data node" to the "compute node", at others, to send the computation to
be performed on the "data node" itself and relay the results back to the
compute node.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages < Older 
« Back to Discussions « Newer topic     Older topic »