Re: [Haskell-cafe] Problems with threading?
--- On Mon, 6/7/10, Don Stewart <dons@galois.com> wrote:
From: Don Stewart <dons@galois.com> Subject: Re: [Haskell-cafe] Problems with threading? To: "Isaac Gouy" <igouy2@yahoo.com> Cc: "Louis Wasserman" <wasserman.louis@gmail.com>, "Haskell Café List" <haskell-cafe@haskell.org> Date: Monday, June 7, 2010, 4:43 PM igouy2:
As Louis has already mentioned this to me, I'll take the opportunity to sketch out a simple approach -
1) GHC programs compiled without -threaded and run without +RTS -N are already shown for x86 and x64
http://shootout.alioth.debian.org/u32/compare.php?lang=ghc
http://shootout.alioth.debian.org/u64/compare.php?lang=ghc
2) For quad-core, the GHC programs will all be compiled with -threaded and all run with +RTS -N4
3) That seems to match the approach taken with Erlang, where all the programs on quad-core run with smp built into the vm, and all the programs on one core run without smp built into the vm.
Yep, that's fine.
All the GHC programs have been re-measured. http://shootout.alioth.debian.org/u64q/compare.php?lang=ghc http://shootout.alioth.debian.org/u32/compare.php?lang=ghc Now how do we get those regex-dna and binary-trees programs to compile? http://shootout.alioth.debian.org/u32/measurements.php?lang=ghc
igouy2:
Now how do we get those regex-dna and binary-trees programs to compile?
http://shootout.alioth.debian.org/u32/measurements.php?lang=ghc
binary-trees: Could not find module `Control.Parallel.Strategies': --> cabal install parallel regex-dna: " cannot satisfy -package regex-posix" --> cabal install regex-posix Both are in Debian.
Yeah, Control.Parallel would be nice to have. Heck, ideally I could get the whole Haskell Platform, which would be a reasonable comparison to the huge Java and C++ libraries accessible to those languages. Out of curiosity, though, Haskell's thread-ring implementation just *tumbled * down the rankings http://shootout.alioth.debian.org/u64q/program.php?test=threadring&lang=ghc&.... Previously, it'd been doing most of its work on a single core, now it's spread out. Any ideas for fixin' it? (I'm going to to try using forkOnIO.) Louis Wasserman wasserman.louis@gmail.com http://profiles.google.com/wasserman.louis On Wed, Jun 9, 2010 at 6:18 PM, Don Stewart <dons@galois.com> wrote:
igouy2:
Now how do we get those regex-dna and binary-trees programs to compile?
http://shootout.alioth.debian.org/u32/measurements.php?lang=ghc
binary-trees: Could not find module `Control.Parallel.Strategies':
--> cabal install parallel
regex-dna:
" cannot satisfy -package regex-posix"
--> cabal install regex-posix
Both are in Debian.
--- On Wed, 6/9/10, Don Stewart <dons@galois.com> wrote: -snip-
Now how do we get those regex-dna and binary-trees programs to compile?
http://shootout.alioth.debian.org/u32/measurements.php?lang=ghc
binary-trees: Could not find module `Control.Parallel.Strategies':
--> cabal install parallel
regex-dna:
" cannot satisfy -package regex-posix"
--> cabal install regex-posix
parallel, regex-posix, regex-pcre are now installed and the current compile errors are caused by the programs not the absence of required libraries - http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc... http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc... http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id... http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id...
igouy2:
parallel, regex-posix, regex-pcre are now installed and the current compile errors are caused by the programs not the absence of required libraries -
http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc...
http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc...
http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id...
http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id...
Great work! For those keen to help out the Haskell programs, both compile failures in regexdna and binarytrees are related to the change in how parallel strategies work, as described here. http://hackage.haskell.org/packages/archive/parallel/2.2.0.1/doc/html/Contro... -- Don
On 12/06/2010 02:48, Don Stewart wrote:
igouy2:
parallel, regex-posix, regex-pcre are now installed and the current compile errors are caused by the programs not the absence of required libraries -
http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc...
http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc...
http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id...
http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id...
Great work!
For those keen to help out the Haskell programs, both compile failures in regexdna and binarytrees are related to the change in how parallel strategies work, as described here.
http://hackage.haskell.org/packages/archive/parallel/2.2.0.1/doc/html/Contro...
Change rnf to rdeepseq, that should fix it. Cheers, Simon
participants (4)
-
Don Stewart -
Isaac Gouy -
Louis Wasserman -
Simon Marlow