Re:Auto-Threading Compilers Are Here
by 7952 on Tuesday December 04, 2012 @02:35PM
(#4872800)
Surely auto-parallelization is exactly what CPU pipelining and branch prediction do quite effectively?
[ Parent
| on HN ]
Well, sort of, but then the moment you run into hazards [1], bad branch predictions [2] or any other problems, the CPU will either stall the pipeline a few cycles or just flush the whole thing, so it's not like it's a magic solution just waiting to be adapted.
[1] http://en.wikipedia.org/wiki/Pipeline_hazard [2] http://en.wikipedia.org/wiki/Branch_predictor
Re:Auto-Threading Compilers Are Here
by DanWaterworth on Tuesday December 04, 2012 @02:54PM
(#4872916)
Yes, but being inside the CPU means that it can be much finer grained which makes the problem much easier.