by api · 11y ago · 0 comments
http://adam.ierymenko.name/files/MersenneTwister32_spe.cpp
Was working on genetic algorithms at the time and managed to port one to run on the Cell. It's a good "embarrassingly parallel" work load for that kind of chip. The MT code above was the PRNG for the genetic algorithm.
Makes me want to hack GAs again... boy are those things barrels of fun.
SPE portion: https://gist.github.com/gigablah/1c72acbe718844310b10