S@H optimizations

Status
Not open for further replies.
I voted Hell Yes.

The whole world of AMD-Athlon and SETI seems to be an interesting one.

We've discussed this before. Perhaps someone (Poof is really, really good at this) should resurrect the old thread so we can just recycle the old postings ;) .

As I recall, my attitude toward this was: 1) Who is going to volunteer? 2) Has anyone got an actual 3DNow! compiler, especially for, say, Linux/gcc?

Porting to "lesser" platforms requires someone to volunteer to do the port. It also requires, in this case, a suitable compiler running on a suitable operating system.

AFAIK and IIRC, we concluded that Microsoft C++ has no Athlon specific code generation. Intel's C (a good one for at least CPU benchmarks) would obviously not do the trick. Gcc or maybe Inprise/Borland would be the best bet unless Athlon itself has something floating about.

So, problem one is to get out of the world of assembler language and into a suitable C compiler. Impractical otherwise. Who would want an Athlon specific port that was slower than Microsoft C/C++?

Given the compiler, though, then it should merely require a volunteer, since they have so many other ports laying about, especially for Linux.

Last time this came up, I don't remember anyone even knowing whether there was a halfway decent C compiler that also did 3DNow! codegen. AFAIK, that's still the main stumbling block. I mean, if a compiler does a good job on 3DNow! and is poor at regular codegen, it might still be too slow overall. What's the point in that case?

Moreover, it may be that in this case, since there is a client available, they'd want to see something substantial in terms of improvement before they put up with whatever the burdens are of an extra client to manage. Adding a Linux version for SPARC is all upside for them. Adding a Athlon-on-Linux version is more problematical in that they already have something.

We already know from VLAR that the bar is probably on the order of 5 to 10 percent or better to get them interested. Or, maybe it can be done for the price of a volunteer.

But, first things first; where's the compiler?


PS: What's sad about the current stats is that AMD is lumped in with Intel on the stats page.
 

Hat Monster

Ars Legatus Legionis
47,680
Subscriptor
Our verbose and long winded friend, Larry, gives his normal exceedingly well thought out argument.
In contraction, it is: How can we optimize for K7 over P6 or generic when no compilers exist for the K7?
That lies with AMD. They have a core that can really whip the P6 on general code, but when optimized for can completely destroy the P6. No compilers at present can supply the K7 with the code that it would show it's true generation seven prowess at. S@H is too unoptimized for K7. If has far more cache misses than is needed, even including the mammoth 128k L1 cache that AMD gave to alleviate the architectural differences. Everybody knows the EV6 bus isn't too hot when dealing with system memory that's slower than PC150 CAS2 so we need a client that can take full advantage of the great amount of cache that AMD have provided.
I will return to where I have stood for many years, and which on 680x0 I am near master. Assembly.
It doesn't take much for s@h to find a willing volunteer (note: volunteer - unpaid) to hand code the FFT routines for ultimate performace on Athlon, on PentiumII+ or on G4 AND for that volunteer to sign a NDA. I was a member of Team 3DNow! for quite some time and they have a great number of assembler masters who would be MORE than willing. I am aware of the security risks, but I have worked under an NDA several times and would never dream of disclosing anything which would undermine my pride and joy - my code.
Let us now see this thread as theoretical. As perhaps ethics. Is it good or is it bad, assuming the s@h boys could safely pull it off?
 

Hat Monster

Ars Legatus Legionis
47,680
Subscriptor
That's on benchmark code, Arkat. The code itself must give a specific result in the shortest amount of time. Compilers show not here. The code is hand written and Über-fast. The KLAT-2 excels at this code due to each Athlon having 128kB of ultra low latency L1 cache.
Can we spell 'prefetch'?

[This message was edited by Hat Monster on February 17, 2001 at 21:04.]
 

littlegreen

Ars Praetorian
556
Subscriptor++
/wades in with ideas, but no evidence :D

would 3dnow be any use to seti? i thought seti was mostly floating point & 3dnow only supports single precision? (have been wrong soooo many times b4 :D)

if you want to compile with processor specific instructions, the processor pack for vc6 from m$ lets you do it - i've been messing around with sse & it kicks a$$ for many things, but again is only single precision - so not for seti (?)

alistair
 
Hat Monster, I think hand-coded assembler is a problem.

IIRC, there is a history where some of the server vendors did hand coding in the manner you suggest on earlier clients. It was a minor scandal in the sense that SETI eventually decided that it wasn't comfortable with such things and eventually ruled them out of bounds.

I suspect code must come from a compiler and probably one that is "commercially available"; not your privately modified gcc.

PS, this was before my time, really, so I don't have any first-hand knowledge of this. Maybe it was recoded C, assembler, special compilers, who knows what. Whatever it is, SETI eventually decided to disallow it. You seem to be heading in that direction. Probably an uphill road.

[This message was edited by Larry Loen on February 17, 2001 at 21:27.]
 

Hat Monster

Ars Legatus Legionis
47,680
Subscriptor
Where's Poof when you need her, eh?
Alistair: 3DNow! would indeed have an impact on s@h. Especially the FFT routines which are ripe for SIMD processing. Over at www.3dnow.org they had a text file discussing the impacts of 3DNow! on s@h's data processing. Without access to the s@h source code, they estimated from textbook examples of optimized FFT that they could be further optimized and yield a 210% speed increase (FFT only) by using AMD's mm registers to their fullest.

Larry: I touted that example to not hand code in assembly, but to hand optimize under juristiction of the s@h boys. i.e. the s@h boys get to review the code and test it before making it an official download.

I'm getting too involved with my poll here, I may be affecting results when I want a representative example of what people really think of s@h's under use of the powers bestowed upon today's CPUs. Be aware that the last s@h optimizations took place when the P5 was base level (2.x clients) and that P5 code runs pretty sluggishly on Athlons, but still faster than what it does on a P6...damn memory latency (thanks roelof)
/Hat
 

Poof

Ars Praefectus
5,092
Subscriptor
Where's Poof when you need her, eh?

:confused:

Why are you looking for me??? I've been busy installing the latest release of Mozilla on my SuSE... :D

I have 11 machines made up of 3 different hardware platforms, running processors made by 4 different companies, with 3 different OS's and 10 different revisions/versions of said OS's.

Beyond has actually been the one looking forward to/discussing the new AMD C++ compilers, etc.

All I've asked for (in too many words perhaps) is the optimization of distributed computing clients, in a fair manner, for all platforms, both hardware and software, if the means are available.
 

Hat Monster

Ars Legatus Legionis
47,680
Subscriptor
speaking of optimizations...look on dnet's RC5-64 stats for 68k series. The 68060 hammers the PPC601, needing half the MHz for the same amount of keys/sec...i'm disassembling the 680x0 amiga code (which does the battering) on my 68060@81 now. I hardly ever fire this sucker up and this is the first time it's been online in months. I'll post as to how well optimized it actually is.
(Hat spies the first TBR Amiga RC5 client in formation)
 

incognito

Ars Tribunus Militum
2,339
Subscriptor++
Why worry about redesigning the SETI@home code?

How about we all get together and create our own super FPU chip that can turn out seti WU in an hour. we can then create a specific 'sub' os that will be able to run on all platforms.

I volenteer (ouch i need a spell chequer) the Larry/Poof team to head up the sub os creation. I will work on the chipset. i think about a billion transistors will do, where did i put my magnifying glass and tweazers? :D
 
Status
Not open for further replies.