3 ms·
Slightly off topic: does anyone have a link to recent work done toward automatic parallelization? (Write single threaded code and have a compiler create multit
by djoldman 2y ago
Slightly off topic: does anyone have a link to recent work done toward automatic parallelization?
(Write single threaded code and have a compiler create multithreaded code)
https://en.m.wikipedia.org/wiki/Automatic_parallelization_tool https://en.m.wikipedia.org/wiki/Automatic_parallelization_to...
- Vecr 2y agoRust's Rayon could probably have a mode with additional heuristics, so it wouldn't multi-thread if it guessed the memory usage increase or overhead would be too much. Not really automatic, but for some iterator chains you can just slap an adapter on. Currently you have to think and benchmark, but for some scripting type applications the increased overhead of the heuristics might be justified, as long as it was a new mode.
- buildbot 2y agoReposting this answer as it’s relevant here too - we already do this - a modern superscalar CPU is essentially an engine for turning sequential code into 6-8 (or more!) simultaneous operations that are dispatched all at once. Downstream, some 4-8 (or more!) ops are retired at once, their operations complete. This is all in a single core.