How to call stop from parallel foreach
seany
seany at uni-bonn.de
Fri Jun 25 19:17:38 UTC 2021
On Friday, 25 June 2021 at 16:37:44 UTC, seany wrote:
> On Friday, 25 June 2021 at 16:37:06 UTC, seany wrote:
>> On Friday, 25 June 2021 at 15:50:37 UTC, seany wrote:
>>> On Friday, 25 June 2021 at 15:16:30 UTC, jfondren wrote:
>>>> [...]
>>>
>>> Try : (this
>>> version)[https://github.com/naturalmechanics/mwp/tree/nested-loops]
>>>
>>> The goal is to parallelize :
>>> `calculate_avgSweepDist_pairwise` at line `3836`. Notice
>>> there we have 6 nested loops. Thank you.
>>
>> Ok, i stopped the buss error and the segfault. It was indeed
>> an index that was written wrong in the flattened version .
>>
>> No, I dont have the seg fault any more. But I have "error
>> creating thread" - time to time. Not always.
>>
>> But, even with the taskpool, it is not spreading to multiple
>> cores.
>
> PS: this is the error message :
> "core.thread.threadbase.ThreadError at src/core/thread/threadbase.d(1219): Error creating thread"
If i use `parallel(...)`it runs.
If i use `prTaskPool.parallel(...`, then in the line : `auto
prTaskPool = new TaskPool(threadCount);` it hits the error.
Please help.
More information about the Digitalmars-d-learn
mailing list