SCM

[#311058] Haskell GHC: parallel thread-ring

View Trackers | Archive One | Export CSV

Date:
2008-09-08 01:18
Priority:
3
State:
Closed
Submitted by:
Don Stewart (dons-guest)
Assigned to:
Nobody (None)
Category:
Haskell GHC
Group:
thread-ring (new)
Resolution:
Accepted
Summary:
Haskell GHC: parallel thread-ring

Detailed description
Parallelisation strategy for thread-ring: place segments of the thread ring on each cpu, to prevent migration. Should get around the speed of one core, if the token is passed efficiently.

On my quad core:

* old program:
103 seconds

* this program:
9 seconds

Flags:

Compilation flags are:

ghc -O2 -threaded

*Important runtime flags*:

+RTS -N4 -qm -qw -RTS

(Use 4 capabilities, don't migrate threads, wake up on the current cpu).

Followups: Sort comments antichronologically

No Followups Have Been Posted

Attached Files:

Attachments:
Size Name Date By Download
1 KiBA.hs2008-09-08 01:18dons-guestA.hs

Changes:

Field Old Value Date By
status_idOpen2008-09-12 17:08igouy-guest
close_date2008-09-12 17:082008-09-12 17:08igouy-guest
ResolutionNone2008-09-12 17:08igouy-guest
File Added2753: A.hs2008-09-08 01:18dons-guest
Powered By FusionForge