> Recently GPH was installed on my Universities beowulf cluster. PVM3 is
> installed (as well as Lam MPI). Ghc appears to be correctly installed; it
> compiles non-parallel programs fine. However when I try to compile (for
> example) the fibonacci function given in the documentation it fails.
[..]
> Given the command:
> ghc -parallel -O -o p  parallelfib.hs
> 
> The result is:
> parallelfib.hs:2: Could not find valid interface file `Prelude'

It would appear that you don't have the parallel build of the compiler installed 
properly.

GHC is built with one or more `ways'.  The normal `way' is  the default, but there are 
also `p' for profiling, `t' for ticky-ticky, and ... `mp' for parallel.  When 
compiling with a `way' other than the normal one, GHC looks for Foo.mp_hi, Foo.mp_o, 
and so on instead of Foo.hi, Foo.o.

So there should a file Prelude.mp_hi in one of the directories GHC is looking through. 
 GHC is complaining that it's not there.

HTH.

--KW 8-)
-- 
: Keith Wansbrough, MSc, BSc(Hons) (Auckland) -------------------:
: PhD Student, Computer Laboratory, University of Cambridge, UK. :
: Native of Antipodean Auckland, New Zealand: 174d47'E, 36d55'S. :
: http://www.cl.cam.ac.uk/users/kw217/ mailto:[EMAIL PROTECTED] :
:----------------------------------------------------------------:



Reply via email to