Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

why Program running time is this?

Frank_F
Beginner
291 Views

The serial program and the parallel program running time is like the attachment,the parallel total time is less than the serial total time ,but the amplifier shows Parallel module run more time than the serial module ,for example,in the serial program,the second spend time module is propagate::reflect_particles is consume 318.938s,but the parallel the same module reflect_part consume 527.269.Why appear this? What the time show in the amplifier in the parallel program?

0 Kudos
1 Reply
Vladimir_P_1234567890
291 Views

you need to run locks&waits activity on your application.

It looks you have memory contention in reflect_part (i.e. accessing many times to the same array/data structure in parallel)

--Vladimir

0 Kudos
Reply