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
Bookmarks