mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Software

Reply
 
Thread Tools
Old 2005-12-01, 01:22   #12
rudi_m
 
rudi_m's Avatar
 
Jul 2005

101101102 Posts
Default

Quote:
best-FFT timings appear in the mlucas.cfg file that results from the self-tests
Ah ok,
I will try that but currently I run Glucas which is about 3 times faster as the my first Mlucas binary (maybe the "configure" script in Glucas just made a better job as my "cc -o Mlucas *.c -lm" for compiling Mlucas ;).

Quote:
If you have multiple CPUs, the reported utilization may be in terms of the overall system utilization, e.g. with 4 CPUs a process running on only one will get at best 25%. You have 24 CPUs, but each runs at only 150MHz, did I read that right?
Currently it seems to be 50 CPUs each 1350MHZ with 80G RAM
but Ive heard that its a dynamic system which is bigger during day and smaller at nights.

Quote:
George already has optimized code for AMD in Prime95/mprime, and AFAIK the Intel C compiler (far better than gcc for x86-style CPUs) isn't available for AMD, so there's little point in using anything other than mprime on AMD at present.
Yep, of course - I was just comparing to learn about Mlucas.

Quote:
Do a "which cc" and/or "man cc" to find out - but I'm 99.9% certain that it's gcc, which in my experience absolutely sucks at producing optimized code for Sparc. For decent performance, you've got to use the SunPro (native C) compiler
well the cc in $PATH seems to be SUNWspro
Now I tried also gcc 3.4.1 and you are right it was 20% slower!
But with gcc -O3 It was double as fast!!
Sou would be really interesting to checkout SUNWspro Optflags too!

Quote:
- if anyone wants to give me guest access to a system with that compiler, I'll be more than happy to do some building and tuning and post a prebuilt executable to the Mlucas page.
I cant give you login to that machine because its just a friend's login
But I watch through my own accounts if I find another Sun/Sparc.

Or you could even send me bash scripts with compile runs and benchmarking etc. which I could run for you and send you the results back.

Last fiddled with by rudi_m on 2005-12-01 at 01:29
rudi_m is offline   Reply With Quote
Old 2005-12-01, 01:48   #13
rudi_m
 
rudi_m's Avatar
 
Jul 2005

2·7·13 Posts
Default

Quote:
- if anyone wants to give me guest access to a system with that compiler, I'll be more than happy to do some building and tuning and post a prebuilt executable to the Mlucas page.
OK, Ive sent you login to a similar machine- watch your PM.
rudi_m is offline   Reply With Quote
Old 2005-12-03, 21:08   #14
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

22×2,939 Posts
Default

OK, I've played around with various build flags on the Ultra-3 system Rudi got me a login for, and got a preliminary binary built. The main thing I discovered while doing the builds was that the #define sequence I had previously been using to inline prefetch macros on Sparc with the SunPro C compiler did not work with the more-recent versions of the compiler - it seems Sun changed the associated predefines. Once I'd fixed that up, timings improved by 20-25% across the board, though they're still not what I'd hope to see from this type of processor (compared to, say, timings on the Alpha ev6, which has similar floating-point capabilities). Here is what I'm getting at present on a 900 MHz Ultra-3:

Code:
FFT length (K)     Timing
576               sec/iter =    0.118
640               sec/iter =    0.135
704               sec/iter =    0.160
768               sec/iter =    0.152
832               sec/iter =    0.182
896               sec/iter =    0.199
960               sec/iter =    0.198
1024              sec/iter =    0.206
1152              sec/iter =    0.249
1280              sec/iter =    0.293
1408              sec/iter =    0.365
1536              sec/iter =    0.366
1664              sec/iter =    0.431
1792              sec/iter =    0.475
1920              sec/iter =    0.485
2048              sec/iter =    0.500
These are at least 1.5x worse per-cycle than I get on Alpha - I notice that the compiler on the system I'm using is not the latest (it's v9), so I'm going to look around for a system with a v10 compiler installed and see if the performance improves any.

Rudi, could you do some Glucas timing runs on this same system (so we get a fair comparison) and let me know what sorts of timings you get at these kinds of FFT lengths?
ewmayer is offline   Reply With Quote
Old 2005-12-09, 23:07   #15
rudi_m
 
rudi_m's Avatar
 
Jul 2005

18210 Posts
Default

Quote:
Rudi, could you do some Glucas timing runs on this same system (so we get a fair comparison) and let me know what sorts of timings you get at these kinds of FFT lengths?
Sry, I got less time for playing around lately.
But you can use that account as long as you want for doing further tests.
rudi_m is offline   Reply With Quote
Old 2005-12-10, 02:22   #16
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

22×2,939 Posts
Default

Quote:
Originally Posted by rudi_m
Sry, I got less time for playing around lately.
But you can use that account as long as you want for doing further tests.
...except that I've barely got enoughh time to do experimental builds of my own code, much less someone else's. You said you've built glucas on the sparc - could you point me to a binary?
ewmayer is offline   Reply With Quote
Old 2005-12-10, 22:25   #17
rudi_m
 
rudi_m's Avatar
 
Jul 2005

2·7·13 Posts
Default

ok, I compiled glucas on that machine using the sun compiler and gcc.
You will find glucas-sun and glucas-gcc in $PATH there.
First tests showed that the sun compiled binary is a bit slower but maybe the configure script just handles the gcc in a better way.
rudi_m is offline   Reply With Quote
Old 2005-12-26, 23:35   #18
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
República de California

22×2,939 Posts
Default

FYI, I posted a copy of my current Sparc binary (the one giving the above table of timings) to

ftp://hogranch.com/pub/mayer/bin/Mlucas_sparc_v9.gz
ewmayer is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Building 14.1/autoconf on Solaris 11/SPARC olegkirillov Mlucas 12 2021-06-17 01:19
mprime Unregistered Information & Answers 1 2010-12-25 15:55
Mlucas on Sparc - Unregistered Mlucas 0 2009-10-27 20:35
[SunOS 5.10] Software for prime search pacionet Programming 3 2008-02-12 12:36
Problem with mprime (Fixed with mprime -d) antiroach Software 2 2004-07-19 04:07

All times are UTC. The time now is 04:27.


Fri Jul 7 04:27:11 UTC 2023 up 323 days, 1:55, 0 users, load averages: 1.65, 1.79, 1.63

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.

≠ ± ∓ ÷ × · − √ ‰ ⊗ ⊕ ⊖ ⊘ ⊙ ≤ ≥ ≦ ≧ ≨ ≩ ≺ ≻ ≼ ≽ ⊏ ⊐ ⊑ ⊒ ² ³ °
∠ ∟ ° ≅ ~ ‖ ⟂ ⫛
≡ ≜ ≈ ∝ ∞ ≪ ≫ ⌊⌋ ⌈⌉ ∘ ∏ ∐ ∑ ∧ ∨ ∩ ∪ ⨀ ⊕ ⊗ 𝖕 𝖖 𝖗 ⊲ ⊳
∅ ∖ ∁ ↦ ↣ ∩ ∪ ⊆ ⊂ ⊄ ⊊ ⊇ ⊃ ⊅ ⊋ ⊖ ∈ ∉ ∋ ∌ ℕ ℤ ℚ ℝ ℂ ℵ ℶ ℷ ℸ 𝓟
¬ ∨ ∧ ⊕ → ← ⇒ ⇐ ⇔ ∀ ∃ ∄ ∴ ∵ ⊤ ⊥ ⊢ ⊨ ⫤ ⊣ … ⋯ ⋮ ⋰ ⋱
∫ ∬ ∭ ∮ ∯ ∰ ∇ ∆ δ ∂ ℱ ℒ ℓ
𝛢𝛼 𝛣𝛽 𝛤𝛾 𝛥𝛿 𝛦𝜀𝜖 𝛧𝜁 𝛨𝜂 𝛩𝜃𝜗 𝛪𝜄 𝛫𝜅 𝛬𝜆 𝛭𝜇 𝛮𝜈 𝛯𝜉 𝛰𝜊 𝛱𝜋 𝛲𝜌 𝛴𝜎𝜍 𝛵𝜏 𝛶𝜐 𝛷𝜙𝜑 𝛸𝜒 𝛹𝜓 𝛺𝜔