Re: [Haskell-cafe] Problems with threading?

--- On Mon, 6/7/10, Don Stewart
As Louis has already mentioned this to me, I'll take
From: Don Stewart
Subject: Re: [Haskell-cafe] Problems with threading? To: "Isaac Gouy" Cc: "Louis Wasserman" , "Haskell Café List" Date: Monday, June 7, 2010, 4:43 PM igouy2: 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&id=3.
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
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
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&id=2#log http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc&id=3#log http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id=4#log http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id=1#log

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&id=2#log
http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc&id=3#log
http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id=4#log
http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id=1#log
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&id=2#log
http://shootout.alioth.debian.org/u64q/program.php?test=binarytrees&lang=ghc&id=3#log
http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id=4#log
http://shootout.alioth.debian.org/u64q/program.php?test=regexdna&lang=ghc&id=1#log
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