This is actually a bit weird as I just did a test and if the parent task is pinned to core 0 the child tasks seem to run in linear time and in fact each task runs as if pinned on core 0. But if the parent task is pinned to core 1 they run in parallel in nonlinear time and can run on both cores.kolban wrote:I.e. no parallelism.
Is there a problem starting an unpinned task from core 0 that does not properly achieve no affinity?
Code: Select all
I (1752) tasks: Starting parent task on core 1
I (2912) tasks: Num Tasks: 1, Time: 1163329
I (4092) tasks: Num Tasks: 2, Time: 1176318
I (5852) tasks: Num Tasks: 3, Time: 1759933
I (8192) tasks: Num Tasks: 4, Time: 2339933
I (11102) tasks: Num Tasks: 5, Time: 2913288
I (14592) tasks: Num Tasks: 6, Time: 3493296
I (14592) tasks: Finished
Code: Select all
I (1747) tasks: Starting parent task on core 0
I (2907) tasks: Num Tasks: 1, Time: 1163335
I (5237) tasks: Num Tasks: 2, Time: 2327679
I (8727) tasks: Num Tasks: 3, Time: 3488639
I (13377) tasks: Num Tasks: 4, Time: 4657502
I (19197) tasks: Num Tasks: 5, Time: 5819879
I (26177) tasks: Num Tasks: 6, Time: 6981584
I (26177) tasks: Finished