Post details: Semi-optimized PS3 stages

8 March, 2007

Permalink 19:21 UTC, by Brent BAUDE Email , 171 words, 2676 views   English (US)
Categories: Gentoo

Semi-optimized PS3 stages

A few days ago, I announced new stages had been pushed to the Gentoo mirrors. Shortly thereafter, mtb and I had a conversation on IRC where he was asking about the default set of CFLAGS in make.conf. After some short investigation, it appears that the PS3 stages were not getting the desired CFLAGS with things like altivec send to them when being built. I must thank mtb for bringing this up.

The good news is that I have corrected the problem in the build process and now stages are getting the CFLAGS consistent with the 970 profile:

CFLAGS="-O2 -pipe -mcpu=970 -mtune=970 -mabi=altivec"

I have rebuilt the stages and GRP and they are already on the mirrors.

http://gentoo.osuosl.org/experimental/ppc64/stages/

Remember the installation instructions can be found at:

http://overlays.gentoo.org/proj/cell/wiki/InstallGentooOnPS3

As I mentioned in my last blog, I am still working on a new livecd which should include an updated version of Firefox and a working version of Thunderbird.

Enjoy!

Trackback address for this post:

http://planet.gentoo.org/developers/htsrv/trackback.php/1277

Comments, Trackbacks:

Comment from: Stroller [Visitor] Email
Hi there,

Is -O2 really optimal for the PS3? I have little experience of optimising CFLAGS but considering the PS3 doesn't have so much RAM, might -Os be better? Do you know if anyone has done any tests?

Stroller.
PermalinkPermalink 13 July, 2007 @ 22:08
Comment from: Brent BAUDE [Member] Email · http://dev.gentoo.org/~ranger/
In my humble opinion, optimized can be a result of several different things. I would not consider -0-anything the only way to optimize. The passing of the 970 flags was what my original announcement was referring to. Prior to then, as I mentioned in the post, the CFLAGS were not getting set properly in the various stages as they were built, specifically in stage3.

Just for reference, we're working to become more gcc-4.3 savy so that we can actually begin to pass the "cell" mcpu for increased optimization. My hope is that will make things a little more interesting.
PermalinkPermalink 29 July, 2007 @ 22:01
Comment from: popper [Visitor] Email
hi brent.

just a passing thought as you bring up
the flags.

i was rereading http://forum.beyond3d.com/showthread.php?s=7c9350bc2751cdda0bb5aee91b329bf7&p=893620#post893620 again and remembered about
using -funroll-loops to increase speed.

also, while i assume noones yet
replaced any core PPC linux code with
Altivec routines?, perhaps its time
to see if some optimisations can be found.

it seems such a waste to have the
Altivec chip sat there (almost) idle
taking up power and not being used in
any of the current core OS code.

markos's freevec still seems unused
anywere obvious in any part of the PPC OS codebase, and yet freevec is full of
tested code that works for most app
speed options....

he implyed it could be used to replace
or supliment lots of core code and get
a massive speed boost, such a shame
noone seems to have tryed to run tests
to see if it can boost the PS3 effort.


for readers, that thread was good for test code
code and otpimisations to try.
-----------------

-O0: some basic and minimum optimization
-O2: strong, low-level optimization that benefits most programs
-O3: intense, low-level optimization analysis with basic loop optimization

--------------

i think gcc4 still has broken -03 and still produces slower code than the old ones, but i may be wrong or was it just 4.0.3
PermalinkPermalink 18 August, 2007 @ 05:16
Comment from: Fallen- [Visitor] Email
Hello, I have my PS3 with Gentoo now :D and I want to optimize CFLAGS to install other things like Gnome.Should I replace mcpu=cell or do I leave mcpu=970? on:
http://gentoo-wiki.com/Safe_Cflags#Cell_Broadband_Engine_.28Playstation_3.29
the recommendation is cell.

Thank you for your help! Best regards.
PermalinkPermalink 22 September, 2007 @ 15:26

This post has 1 feedback awaiting moderation...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Brent Baude

July 2008
Mon Tue Wed Thu Fri Sat Sun
<< <     
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      

Search

Categories

Misc

XML Feeds

What is RSS?

Who's Online?

  • Guest Users: 63

powered by
b2evolution