mips64 and gmp observation
Hey all, Some mips64 and gmp observations: The normal way, unregisterised, with the in-tree gmp, v3.1.1: OVERALL SUMMARY for test run started at Fri Oct 24 17:17:56 PDT 2003 1070 total tests, which gave rise to 1070 test cases, of which 0 caused framework failures 29 were skipped 889 expected passes 10 expected failures 0 unexpected passes 142 unexpected failures ^ When I recompiled using the Irix-provided libgmp, also v3.1.1, the results were: OVERALL SUMMARY for test run started at Sat Oct 25 20:13:03 PDT 2003 1070 total tests, which gave rise to 1070 test cases, of which 0 caused framework failures 29 were skipped 932 expected passes 10 expected failures 0 unexpected passes 99 unexpected failures ^ 43 tests, involving floats or double, passed with the external libgmp. The brokeness exhibited itself as segfaults, or showing values as 0.0 or 0.0e0 instead of the correct result. These tests that were cured by using an external gmp: arr0{05,06,13,16} num0{01,07,08,11} cg0{14,18,19,24,26,28,34,35,42} arith0{01,04,06-08,12-14,16-17} CPUTime001 gshow gzip paradise strings timeexts001 rand001 dynamic001 mdo001 andy_cherry barton-mangler-bug cholewo-eval fun_insts jl_defaults lennart_range thurston-modular-arith tcrun027 So mips64 users should definitely use the external gmp provided with Irix, as it must be better configured than ours for the time being. And, I guess all porters should take note that even though a port builds, and can then rebuild ghc itself, it may still be broken in ways only the testsuite will find. Cheers, Don ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Transmitting Haskell values
Hi all, sorry if it's a FAQ or I'm simply too dumb to look in the right places. What I want to do is to send Haskell values over a network to another Haskell process. Or save a Haskell value on disk and read it in in a later incarnation of the same pogram, or with a different program. Is there a good way to do this? Or, even better: a good way to find the right documentation for this sort of thing? ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Transmitting Haskell values
I think the standard way would be to use Show and Read and then send/write/rcv/read strings from the network/disk. Or you could use the Binary class to get binary representations, but these (sometimes, depending on which implementation you use) have endianness issues if you're transmitting between different architectures. On Sun, 26 Oct 2003, Joachim Durchholz wrote: > Hi all, > > sorry if it's a FAQ or I'm simply too dumb to look in the right places. > > What I want to do is to send Haskell values over a network to another > Haskell process. Or save a Haskell value on disk and read it in in a > later incarnation of the same pogram, or with a different program. > > Is there a good way to do this? > Or, even better: a good way to find the right documentation for this > sort of thing? > > ___ > Glasgow-haskell-users mailing list > [EMAIL PROTECTED] > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users > -- Hal Daume III | [EMAIL PROTECTED] "Arrest this man, he talks in maths." | www.isi.edu/~hdaume ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
UArray question....
Dear colleagues, In GHC/FFI, is there some way (is it possible ?) to access DIRECTLY an array of UArray type (immutable) in a sequential contiguous memory buffer (in C side, for example) without to need to copy the array elements one by one ? GHC hackers and implementors are wellcome... :-) My interest is to transmit the array over a network using MPI, but avoiding marshalling overheads. It is easy to do this with StorableArray's in the IO monad, of course, but I need to use UArray. Heron de Carvalho __ Acabe com aquelas janelinhas que pulam na sua tela. AntiPop-up UOL - É grátis! http://antipopup.uol.com.br/ ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Question about profiling in GHC...
Dear GHC users, I am using GHC profilling tool and I think you can help me to answer a (apparently) simple question: When I compile my program without "-prof -auto-all" option (no profiling support), its execution time is about 140s (compiled with -O2). When compiled with profiling support, the time spent by the program is about 180s (I used my own timer to measure this). Of course, the additional 40s is caused by the profiling annotation code. However, the profiler says (in the ".prof" file produced at the end of execution) that the time spent is about 85s. I suppose that the time measured by the profiler is only for evaluation of the main function of my program (I have compiled all modules with "-prof-all"). But what kind of computation is performed in the rest 95s (180s - 85s) ? Garbage collection ??? The use of -O2 option have some effect in the profiling ? I am asking this because when I use -O2 when compiling some concurrent Haskell programs that I have implemented in my work, the code assumes strange and not expected behaviour. Best Regards, Heron de Carvalho ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: UArray question....
AFAIK, no. That's the whole point of StorableArrays. Why can't you use these instead of UArrays? - Hal On Mon, 27 Oct 2003, heron_carvalho wrote: > Dear colleagues, > >In GHC/FFI, is there some way (is it possible ?) to > access DIRECTLY an array of UArray type (immutable) in a > sequential contiguous memory buffer (in C side, for > example) without to need to copy the array elements one > by one ? GHC hackers and implementors are wellcome... :-) > My interest is to transmit the array over a network using > MPI, but avoiding marshalling overheads. > > It is easy to do this with StorableArray's in the IO > monad, of course, but I need to use UArray. > > > Heron de Carvalho > > > > > __ > Acabe com aquelas janelinhas que pulam na sua tela. > AntiPop-up UOL - É grátis! > http://antipopup.uol.com.br/ > > > ___ > Glasgow-haskell-users mailing list > [EMAIL PROTECTED] > http://www.haskell.org/mailman/listinfo/glasgow-haskell-users > -- Hal Daume III | [EMAIL PROTECTED] "Arrest this man, he talks in maths." | www.isi.edu/~hdaume ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users