SimCenter Training > Programming Bootcamp

Regarding recent MPI Lecture video (some quesitons part 1/2)

(1/1)

faisal:
I have some questions from recently uploaded MPI video @11.46 of the video time.

Q1. Which one will be faster? sum1.c, sum2.c or sum3.c?

Q2. In code dot1.c Will the tid will always be 0 in for(int i = tid ... will always be 0?
Q3. Followup: Will numT = number of elements in sum? 64?
Q4. Followup: Why the second for loop is outside #pragma?

fmk:
1. sum1 .. false sharing again in 2 .. would assume 3 will be close to 1 as letting compiler put in what it thinks best
2. no
3. if you could, but numT not known at that statment location for a compile time setup
4. not sure which file you are referring to

Navigation

[0] Message Index

Go to full version