1
Programming Bootcamp / Regarding recent MPI Lecture video (some quesitons part 2/2)
« on: January 07, 2021, 03:54:11 PM »
I can't grasp the idea of false sharing.
Q1. Are pad, sync, and reduction available choices to solve false sharing/sequential
consistency?
Q2. What difference is made by pad (next slide)?
Followup: Here it appears that all calculations are happening in pad0? Is it right?
Q3. What synchronization doing (next slide)? So does sync solve problem of pad0? Second for loop
Q4. So what the reduction do? Does reduction do the job of sync and pad? So only reduction is
enough to stop false sharing/sequential consistency? And when to use reduction types?
Q5. Finally does intel mkl has parallel capabilities and can't we do multi-threading and multi-processing in cpp?
Q1. Are pad, sync, and reduction available choices to solve false sharing/sequential
consistency?
Q2. What difference is made by pad (next slide)?
Followup: Here it appears that all calculations are happening in pad0? Is it right?
Q3. What synchronization doing (next slide)? So does sync solve problem of pad0? Second for loop
Code: [Select]
for
dot + = sum
is gone.Q4. So what the reduction do? Does reduction do the job of sync and pad? So only reduction is
enough to stop false sharing/sequential consistency? And when to use reduction types?
Q5. Finally does intel mkl has parallel capabilities and can't we do multi-threading and multi-processing in cpp?