-
3 Attachment(s)
Quote:
Originally Posted by
Qkjhfhaiguihfma
Hi guys,
i was following your discussion and when the above link was posted i wanted to test this pi algorithm. Unfortunately there was only the source code available and it took me one day to figure out how to compile it. And finally i did it :)
I thought it might be interesting for other people to run it and compare the results between each other and the website. Since i have almost no expirience with gcc i hope the executables run on your system.....
Those were created on AMD64-64Bit SuseLinux. The source uses GMP libraries from http://gmplib.org/.
This means they dont run on 32Bit linux i think.
Further i have created different optimized versions. One standard(should run on all processors) one for K8 and one for K10.
But keep in mind since the source uses GMP the optimisations wont effect the program on a large scale i think.
AFTER DOWNLOAD RENAME THE EXTENSION FROM .TXT TO .out for example.
I would be interested if someone can run this on a phenom and compare the K8 to the K10 version.
To execute the files you have to do the following:
1. copy the files somewhere on your HDD in a folder.
2. open a shell(console)
3. go into that folder using cd myfolder or something
4. Enter: ./programm name.out .Make sure there is no space between ./ and the program name. E.g. ./pi-normal-opt.out 10000000 <PRESS ENTER>. The 10000000 specifies that you want to calculate pi up to 10 million digits.
I have no idea if those run on your machines.... but i hope so.
This is what i have gotten @ 3400MHz:
moork@linux-nns4:~/programming> ./pi-normal-opt.out 10000000
#terms=705136, depth=21
sieve time = 0.170
.................................................. .
bs time = 15.360
gcd time = 2.760
div time = 1.840
sqrt time = 0.990
mul time = 0.700
total time = 19.070
P size=14561191 digits (1.456119)
Q size=14561184 digits (1.456118)
And using
-
Well GMP runs in 32-bit as well. Will try it out. Anyone got any good optimization flags for K8 to suggest? Havent played arond with optimizing for perfomance with gcc.
//Edit if you mean that you compiled the files on a 64bit OS then yes they wont work on 32bit OSes
-
Yes, i have compiled them under 64Bit Linux.
Here is the link with the CPU specific compilerflags
http://gcc.gnu.org/onlinedocs/gcc-4....002d64-Options
e.g. gcc -mtune=K8 etc
-
Hmmm SP on linux without Wine.
I thought about it for a long time ago.
I've of course tried but it was only a big loss lol.
Get on your great work mate ;)
-
This proggy beats SuperPI tenfold....
And by the way it is faster on AMD than the Intels and this is the real interesting part :) The speed info can be found on the GMP website.
Of course it has no real interface thats the bad part.