Slashdot Mirror


Genetic Algorithms and Compiler Optimizations

mfago writes "Scott Robert Ladd has written an enlightening article and accompanying software package that utilizes genetic algorithms to optimize the optimization flags fed to a compiler. Those who have tried to squeeze the last drop of performance from a code know that it can be very difficult to determine the set of optimization flags beyond -O3 (with gcc for example) that yields the best performance. Lots of background links included in the article."

9 of 222 comments (clear)

  1. Isn't this the Windows technique? by Anonymous Coward · · Score: 4, Funny

    That is, fiddle with settings at random until it's acceptable?

    1. Re:Isn't this the Windows technique? by LoztInSpace · · Score: 2, Funny

      I think by the time it emerged from marketing it would be a "stochastic process".

  2. Re:Beware the simple, elegant solution. by tessaiga · · Score: 4, Funny
    In Go, there is a computer player that utilizes neural networks, yet it is near the middle of the pack.

    Wait, I'm confused; I thought on Slashdot we're supposed to wait for someone to mention Chess before we bring up Go?

    --
    The bold print giveth, and the fine print taketh away ...
  3. ... :P by rylin · · Score: 2, Funny

    Sadly, these genetic algorithms only work for blue-eyed developers

  4. Re:Beware the simple, elegant solution. by koekepeer · · Score: 4, Funny

    anyways think about the overkill of developing such an elegant solution for such a minor problem. i mean those few percentages of performance enhancement...

    anyway, i think it *is* really cool this guy finds it interesting to tackle this 'problem' with a genetic algorithm. why not try some bayesian networks next? support vector machines? improbability drives...

    ooops, i'm getting carried away. sorry 'bout that. /me bows in admiration

    (not intended as flamebait but mod me to hell anyway *evil grin*)

  5. Re:Beware the simple, elegant solution. by zanerock · · Score: 4, Funny

    Neural networks != genetic algorithms

    Slow Go player != inelegant solution

    I was going to dissagree with you, but I'm not even sure what your arguments are. Do you have any reason to believe that the solution for the problem discussed in the article is inelegant or innefficient, or did you just get a bad grade in your AI class?

  6. Re:Beware the simple, elegant solution. by Tet · · Score: 2, Funny
    In Go, there is a computer player that utilizes neural networks, yet it is near the middle of the pack.

    All the top of the pack human players use neural networks. Your point?

    --
    "The invisible and the non-existent look very much alike." -- Delos B. McKown
  7. Re:GAs wrong tool for the job by pimpinmonk · · Score: 2, Funny
    I am as big a fan of GAs as the next guy
    So, you mean you have little or no idea of what GA stands for, let alone what it means and what its applications in computer science are?

    Sorry, couldn't resist :-)
  8. Re:Shortcomings by pmz · · Score: 2, Funny

    12 hours on an 8 CPU

    100 million LOC, really crappy makefiles, or eight 60MHz CPUs?