next up previous
Next: Profiling and Tuning a Up: GpHLab Previous: Sequential Profiling

Executing GpH on a Multicore

  1. Log in to lxpara3
    lxpara3

  2. Take a copy of the thresholding parfib.hs program from www.macs.hw.ac.uk/~trinder/ParDistr/Examples/

  3. Read the code to check you understand it.

  4. Compile the parfib program for parallel execution.
    /u1/staff/pm175/sw/ghc/7.4.1/x86_64/bin/ghc-7.4.1 -threaded -rtsopts -eventlog --make -package-conf=/u1/staff/pm175/sw/ghc/_dot_ghc/x86_64-linux-7.4.1/package.conf.d parfib.hs
    

    Hint: You can alias this command to hide all the detail!

  5. Run the program to calculate nfib 40 on 3 cores (takes 60 seconds)
    time ./parfib 40 +RTS -N3 -sstderr -ls
    



Phil Trinder 2013-02-08