LinuxPPC & gcc optimizer flags
Hi all,
there was recently some discussion about the usage of different gcc optimizer
flags with LinuxPPC. I ran the HINT benchmark on may PowerBook G3/300, 192 MB Ram, LinuxPPC Release 5 with all combinations of the -O[0123] and -mcpu={|603|604|750} flags. Plots of the results are attached as ps files. Interestingly, the best results are achieved with "-O2 -mcpu=603" or "-O3 -mcpu=603" and NOT with -mcpu=750....
BTW, the HINT homepage is http://www.scl.ameslab.gov/HINT/
Albrecht.
Signature · 11 lines
+-----------------------------------------------------------------------------+ | Dr.-Ing. Albrecht Dre\ss ---- | | Max-Planck-Institut f\"ur Radioastronomie |\ / /o o\ | | Abteilung f\"ur Infrarot-Interferometrie | \ / | / | | | Auf dem H\"ugel 69 | \ | \ ---/ | | D-53121 Bonn (Germany) ------------+------+------------------- | | | / | | | Phone (+49) 228 525 319 | / / | | Fax (+49) 228 525 411 |/ / | | Mail [email protected] | +-------------- electrical engineers do it with less resistance --------------+
Quoted 9 lines · Albrecht Dreß
Hi all,
there was recently some discussion about the usage of different
gcc optimizer
flags with LinuxPPC. I ran the HINT benchmark on may PowerBook G3/300, 192 MB Ram, LinuxPPC Release 5 with all combinations of the -O[0123] and -mcpu={|603|604|750} flags. Plots of the results are attached as ps files. Interestingly, the best results are achieved with "-O2 -mcpu=603" or "-O3 -mcpu=603" and NOT with -mcpu=750....
Which compiler did you use? Up to egcs-1.1.2, -mcpu=750 is a no-op :-). Did you also try different mixings of -march= and -mtune=?
If you are on R5, I can provide you gcc-2.95pre RPM's which support -mcpu=750.
Franz.
[[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]]
[[ and http://www.linuxppc.org/ for useful information before posting. ]]
Quoted 1 line · Franz Sirl
Which compiler did you use? Up to egcs-1.1.2, -mcpu=750 is a no-op :-). Did
egcs 1.1.2. This explains the identical results of no cpu and '750 flags...
Quoted 1 line
you also try different mixings of -march= and -mtune=?
`arch´ doesn't work at all. Didn't check tune yet...
Quoted 1 line
If you are on R5, I can provide you gcc-2.95pre RPM's which support -mcpu=750.
Thanks, but speed is a less critical issue for us than reliability, so I live with cpu=603 and wait for the final release....
Thanks, Albrecht.
Signature · 16 lines
+-----------------------------------------------------------------------------+ | Dr.-Ing. Albrecht Dre\ss ---- | | Max-Planck-Institut f\"ur Radioastronomie |\ / /o o\ | | Abteilung f\"ur Infrarot-Interferometrie | \ / | / | | | Auf dem H\"ugel 69 | \ | \ ---/ | | D-53121 Bonn (Germany) ------------+------+------------------- | | | / | | | Phone (+49) 228 525 319 | / / | | Fax (+49) 228 525 411 |/ / | | Mail [email protected] | +-------------- electrical engineers do it with less resistance --------------+ [[ This message was sent via the linuxppc-dev mailing list. Replies are ]] [[ not forced back to the list, so be sure to Cc linuxppc-dev if your ]] [[ reply is of general interest. Please check http://lists.linuxppc.org/ ]] [[ and http://www.linuxppc.org/ for useful information before posting. ]]