Recommendation for parallelism with nested for loops?

Shriramana Sharma not.sure.why.a.mail.id.is.needed.even.if.invalid at gmail.com
Fri Aug 19 01:49:43 UTC 2022


Hello. I want to parallelize a computation which has two for 
loops, one nested within another. All 
inner-loop-param+outer-loop-param combinations can be computed 
independent of one another.

As I suspected, 
[https://forum.dlang.org/post/xysyidbkjdinclmrxzgt@forum.dlang.org](this forum post) says that only one loop can be parallelized. Will it be an error or inefficient or useless if I try to do both?

Also, what is the best way to do parallelism in such a situation?


More information about the Digitalmars-d-learn mailing list