Previous | Next --- Slide 12 of 46
Back to Lecture Thumbnails
kayvonf

Question: Is there explicit parallelism in this code? (Does the programming model dictate any of the described logic must run in parallel?)

bxb

@kayvonf If I'm recalling this correctly then this was written in Kayvon's mystery language. In which case, the for_all body was written with the intention of being parallel, but whether it actually is depends on the implementation. Unless there was some explicit assignment and/or mapping to a thread, core, etc. I wouldn't say that this code must run in parallel.

aew

I agree with @bxb, the for_all indicates to the compiler that each iteration can be performed in parallel, but does not dictate that it must be run in parallel. So there is not explicit parallelism, just the potential to be parallelized, which depends on the implementation.