error in ParallelDirectIntroSort #2

Closed
opened 2016-03-21 14:12:58 +00:00 by Imageman · 3 comments
Imageman commented 2016-03-21 14:12:58 +00:00 (Migrated from github.com)

error in ParallelDirectIntroSort
demo
http://pastebin.com/x9U22C8K

on small N all Ok; On N=10000 error (some values dublicate)

error in ParallelDirectIntroSort demo http://pastebin.com/x9U22C8K on small N all Ok; On N=10000 error (some values dublicate)
Imageman commented 2016-03-22 06:19:52 +00:00 (Migrated from github.com)

Fixed ParallelDirectIntroSort.
ParallelDirectMergeSort demo test failed!

Fixed ParallelDirectIntroSort. ParallelDirectMergeSort demo test failed!
BeRo1985 commented 2016-03-22 08:50:11 +00:00 (Migrated from github.com)

In your pastebin code I see GlobalPasMP.Invoke(GlobalPasMP.ParallelDirectMergeSort(@DataArray[0],0,N-1,SizeOf(longint),CompareInteger,16,8)); // <= Invoke = Run+Wait+Release into a single call which must be also GlobalPasMP.Invoke(GlobalPasMP.ParallelDirectMergeSort(@DataArray[0],0,N-1,SizeOf(TSimpleVal),CompareSimpleVal,16,8)); then it works, at least at me, see: https://youtu.be/VlknV2WYOTU

In your pastebin code I see `GlobalPasMP.Invoke(GlobalPasMP.ParallelDirectMergeSort(@DataArray[0],0,N-1,SizeOf(longint),CompareInteger,16,8)); // <= Invoke = Run+Wait+Release into a single call` which must be also `GlobalPasMP.Invoke(GlobalPasMP.ParallelDirectMergeSort(@DataArray[0],0,N-1,SizeOf(TSimpleVal),CompareSimpleVal,16,8));` then it works, at least at me, see: [https://youtu.be/VlknV2WYOTU](https://youtu.be/VlknV2WYOTU)
Imageman commented 2016-03-22 09:21:05 +00:00 (Migrated from github.com)

Yes!
Sorry, this is my problem :-(
All 'Ok'. Thanks.

Yes! Sorry, this is my problem :-( All 'Ok'. Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
BeRo1985/pasmp#2
No description provided.