mersenneforum.org  

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

Reply
 
Thread Tools
Old 2005-11-24, 09:32   #1
rudi_m
 
rudi_m's Avatar
 
Jul 2005

101101102 Posts
Default mprime on SunOS/sparc?

Hi,
I just got a login on a Sun workstation but I didnt found the right mprime binary.

uname -a
SunOS pepita 5.9 Generic_118558-16 sun4u sparc SUNW,Sun-Fire

Is there a binary for that machine? Or is it possible to compile it by myself?
rudi_m is offline   Reply With Quote
Old 2005-11-24, 13:57   #2
Peter Nelson
 
Peter Nelson's Avatar
 
Oct 2004

232 Posts
Default

What model of Sun is it?

mprime / prime95 is currently ONLY available for x86 / x86-64 architectures (and currently only x86 under *nix)

Therefore if your suns were opteron or similar machines you might possibly get somewhere.

If they are sparc-based machines (as it appears from the info you posted), it will NOT work, and you will not find any sparc binaries, nor can you compile it from source because the assembler code and its optimisation would be totally different.

However there may be other primality testing programs which would run on your Sun box (see the links to other software on the mersenne.org site).

Last fiddled with by Peter Nelson on 2005-11-24 at 13:59
Peter Nelson is offline   Reply With Quote
Old 2005-11-24, 14:29   #3
Greenbank
 
Greenbank's Avatar
 
Jul 2005

2·193 Posts
Default

SunOS pepita 5.9 Generic_118558-16 sun4u sparc SUNW,Sun-Fire

Definitely Sparc not Opteron.

For x86 it would have been:

SunOS <hostname> <OS_version> <kernel> i86pc i386 i86pc

No x86 Sun kit where I work, all Sparc and their insanely slow multiply instructions.
Greenbank is offline   Reply With Quote
Old 2005-11-24, 15:45   #4
Xyzzy
 
Xyzzy's Avatar
 
"Mike"
Aug 2002

3·19·137 Posts
Default

http://hogranch.com/mayer/README.html
Xyzzy is offline   Reply With Quote
Old 2005-11-24, 21:25   #5
rudi_m
 
rudi_m's Avatar
 
Jul 2005

2×7×13 Posts
Default

thx for your answers.
pity, I just wanted to compare mprime benchmark with other computers where I got login.
Does anybody know how I can get further Informations about CPU on that machine(iam not familar with SunOS).
In /proc I can only find informations about running processes!?
rudi_m is offline   Reply With Quote
Old 2005-11-25, 11:54   #6
Greenbank
 
Greenbank's Avatar
 
Jul 2005

6028 Posts
Default

Processor info:

/usr/sbin/psrinfo -v

Also:

/usr/platform/sun4u/sbin/prtdiag -v
Greenbank is offline   Reply With Quote
Old 2005-11-28, 19:54   #7
rudi_m
 
rudi_m's Avatar
 
Jul 2005

101101102 Posts
Default

Hehe its a big machine, pity that I cant run mrime on it

pepita$ /usr/platform/sun4u/sbin/prtdiag -v
System Configuration: Sun Microsystems sun4u Sun Fire 6800
System clock frequency: 150 MHz
Memory size: 81920 Megabytes

========================= CPUs ===============================================

CPU Run E$ CPU CPU
FRU Name ID MHz MB Impl. Mask
---------- ------- ---- ---- ------- ----
/N0/SB0/P0 0,512 1350 16.0 US-IV 3.1
/N0/SB0/P1 1,513 1350 16.0 US-IV 3.1
/N0/SB0/P2 2,514 1350 16.0 US-IV 3.1
/N0/SB0/P3 3,515 1350 16.0 US-IV 3.1
/N0/SB1/P0 4,516 1350 16.0 US-IV 3.1
/N0/SB1/P1 5,517 1350 16.0 US-IV 3.1
/N0/SB1/P2 6,518 1350 16.0 US-IV 3.1
/N0/SB1/P3 7,519 1350 16.0 US-IV 3.1
/N0/SB3/P0 12,524 1350 16.0 US-IV 3.1
/N0/SB3/P1 13,525 1350 16.0 US-IV 3.1
/N0/SB3/P2 14,526 1350 16.0 US-IV 3.1
/N0/SB3/P3 15,527 1350 16.0 US-IV 3.1
/N0/SB4/P0 16,528 1350 16.0 US-IV 3.1
/N0/SB4/P1 17,529 1350 16.0 US-IV 3.1
/N0/SB4/P2 18,530 1350 16.0 US-IV 3.1
/N0/SB4/P3 19,531 1350 16.0 US-IV 3.1
/N0/SB5/P0 20,532 1350 16.0 US-IV 3.1
/N0/SB5/P1 21,533 1350 16.0 US-IV 3.1
/N0/SB5/P2 22,534 1350 16.0 US-IV 3.1
/N0/SB5/P3 23,535 1350 16.0 US-IV 3.1
[....]


pepita $ /usr/sbin/psrinfo -v
[....]
Status of virtual processor 533 as of: 11/28/2005 20:46:23
on-line since 11/22/2005 17:25:10.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 534 as of: 11/28/2005 20:46:23
on-line since 11/22/2005 17:25:10.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
Status of virtual processor 535 as of: 11/28/2005 20:46:23
on-line since 11/22/2005 17:25:10.
The sparcv9 processor operates at 1350 MHz,
and has a sparcv9 floating point processor.
rudi_m is offline   Reply With Quote
Old 2005-11-29, 00:41   #8
moo
 
moo's Avatar
 
Jul 2004
Nowhere

14518 Posts
Default

wow from the looks of it you have around 24 processing units jeezers...
moo is offline   Reply With Quote
Old 2005-11-29, 10:43   #9
Mystwalker
 
Mystwalker's Avatar
 
Jul 2004
Potsdam, Germany

3·277 Posts
Default

Quote:
Originally Posted by rudi_m
Hehe its a big machine, pity that I cant run mrime on it
As Xyzzy indicated, it might be worth trying mlucas or glucas.
Mystwalker is offline   Reply With Quote
Old 2005-11-30, 14:29   #10
rudi_m
 
rudi_m's Avatar
 
Jul 2005

2×7×13 Posts
Default

Quote:
Originally Posted by Mystwalker
As Xyzzy indicated, it might be worth trying mlucas or glucas.
wow first time I looked for binarys only but Mlucas compiled fine on that machine :)

Is there a standard way for benchmarking it?
I just compared LL of M100069 with my home comp:

mprime on AMD2100+: 30 sec
Mlucas on AMD2100+: 145 sec
Mlucas on Sun/Sparc: 260 sec (but CPU usage was only 2%!!)

two questions:
1. Is the differrence between mprime and Mlucas on AMD ok or is it worth to try some gcc optflags or playing around with mlucas.cfg?
2. Since I dont know about Sun/Sparc - What compiler should I use? Ive just made "cc -o Mlucas2 *.c -lm" but couldnt find out what compiler it is exactly.

Ok now I go check out Glucas:)

Last fiddled with by rudi_m on 2005-11-30 at 14:33
rudi_m is offline   Reply With Quote
Old 2005-11-30, 20:46   #11
ewmayer
2ω=0
 
ewmayer's Avatar
 
Sep 2002
Rep├║blica de California

266A16 Posts
Default

Quote:
Originally Posted by rudi_m
wow first time I looked for binarys only but Mlucas compiled fine on that machine :)

Is there a standard way for benchmarking it?
"Mlucas -s m" will run a series of self-tests at a variety of FFT lengths and at the same time figure out the best FFT parameters for your machine - best-FFT timings appear in the mlucas.cfg file that results from the self-tests. All this is explained at the Mlucas homepage.

Quote:
I just compared LL of M100069 with my home comp:

mprime on AMD2100+: 30 sec
Mlucas on AMD2100+: 145 sec
Mlucas on Sun/Sparc: 260 sec (but CPU usage was only 2%!!)
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?

Quote:
1. Is the differrence between mprime and Mlucas on AMD ok or is it worth to try some gcc optflags or playing around with mlucas.cfg?
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.

Quote:
2. Since I dont know about Sun/Sparc - What compiler should I use? Ive just made "cc -o Mlucas2 *.c -lm" but couldnt find out what compiler it is exactly.
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 - 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.
ewmayer is offline   Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building 14.1/autoconf on Solaris 11/SPARC olegkirillov Mlucas 11 2017-06-14 21:29
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 16:55.

Sat Nov 28 16:55:40 UTC 2020 up 79 days, 14:06, 4 users, load averages: 1.04, 1.24, 1.34

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, 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.