egi-megi / porr-pso

2 stars 0 forks source link

Segmentation fault with specific OpenMP implementations #11

Closed mpiku closed 3 years ago

mpiku commented 3 years ago

The dynamic clause effects in segmentation fault on some implementations of libgomp. As each of the particle computations should take approximately the same amount of CPU time in our implementation, I propose changing the scheduling to static.

https://github.com/egi-megi/rojCzastek_Szczepanski_Jurkiewicz_Pikulinski/blob/00a879d570337fb9b616e16d007790af9c5dffb9/src/Swarm.cpp#L101