The Parallelism Blues: when faster code is slower
pythonspeed.com
The Parallelism Blues: when faster code is slower
1–10 of 25 posts
Re: The Parallelism Blues: when faster code is slower
#2Re: The Parallelism Blues: when faster code is slower
#3Basically impossible by Ahmdal's law.
Re: The Parallelism Blues: when faster code is slower
#4I'm on my phone, so rather than trying to type out an explanation, I'm going to link to Wikipedia: https://en.wikipedia.org/wiki/Hyper-threading
Re: The Parallelism Blues: when faster code is slower
#5In Julia, where the paralleization options are explicit (SIMD, AVX, threads or multiprocessing), it always depends on the load, for small operation (around 10000 elements) a single thread is faster only for the thread spawning time (around 1 microsecond). And there is the issue of the independent Blas threaded model, where the Blas threads sometimes interfere with Julia threads... In a nutshell, parallelization is no…
Re: The Parallelism Blues: when faster code is slower
#6In Julia, where the paralleization options are explicit (SIMD, AVX, threads or multiprocessing), it always depends on the load, for small operation (around 10000 elements) a single thread is faster only for the thread spawning time (around 1 microsecond). And there is the issue of the independent Blas threaded model, where the Blas threads sometimes interfere with Julia threads... In a nutshell, parallelization is no…
Do you know if Julia will add OpenMP support? It's clearly the way to go for offloading to hardware in a productive way.
Re: The Parallelism Blues: when faster code is slower
#7This is perfectly normal behavior when Intel Hyperthreading is involved. I'm on my phone, so rather than trying to type out an explanation, I'm going to link to Wikipedia: https://en.wikipedia.org/wiki/Hyper-threading
Re: The Parallelism Blues: when faster code is slower
#8"It would be extremely surprising, then, if running with N threads actually gave ×N performance." Basically impossible by Ahmdal's law.
Re: The Parallelism Blues: when faster code is slower
#9"It would be extremely surprising, then, if running with N threads actually gave ×N performance." Basically impossible by Ahmdal's law.
Re: The Parallelism Blues: when faster code is slower
#10The title is also misleading; it suggests that the wall clock time might be longer for parallel code in certain cases. While not impossible, that isn't what the article covers.