[project @ 2001-03-22 03:51:08 by hwloidl]
authorhwloidl <unknown>
Thu, 22 Mar 2001 03:51:13 +0000 (03:51 +0000)
committerhwloidl <unknown>
Thu, 22 Mar 2001 03:51:13 +0000 (03:51 +0000)
commit20fc2f0ced64a12d8e44956931b2ac341ed2186f
treed11231f7dac6d1e918764c7894781175cd36bb5d
parent982fe3c72ef579a955271b772c14fd7a10a6144a
[project @ 2001-03-22 03:51:08 by hwloidl]
-*- outline -*-
Time-stamp: <Thu Mar 22 2001 03:50:16 Stardate: [-30]6365.79 hwloidl>

This commit covers changes in GHC to get GUM (way=mp) and GUM/GdH (way=md)
working. It is a merge of my working version of GUM, based on GHC 4.06,
with GHC 4.11. Almost all changes are in the RTS (see below).

GUM is reasonably stable, we used the 4.06 version in large-ish programs for
recent papers. Couple of things I want to change, but nothing urgent.
GUM/GdH has just been merged and needs more testing. Hope to do that in the
next weeks. It works in our working build but needs tweaking to run.
GranSim doesn't work yet (*sigh*). Most of the code should be in, but needs
more debugging.

ToDo: I still want to make the following minor modifications before the release
- Better wrapper skript for parallel execution [ghc/compiler/main]
- Update parallel docu: started on it but it's minimal [ghc/docs/users_guide]
- Clean up [nofib/parallel]: it's a real mess right now (*sigh*)
- Update visualisation tools (minor things only IIRC) [ghc/utils/parallel]
- Add a Klingon-English glossary

* RTS:

Almost all changes are restricted to ghc/rts/parallel and should not
interfere with the rest. I only comment on changes outside the parallel
dir:

- Several changes in Schedule.c (scheduling loop; createThreads etc);
  should only affect parallel code
- Added ghc/rts/hooks/ShutdownEachPEHook.c
- ghc/rts/Linker.[ch]: GUM doesn't know about Stable Names (ifdefs)!!
- StgMiscClosures.h: END_TSO_QUEUE etc now defined here (from StgMiscClosures.hc)
                     END_ECAF_LIST was missing a leading stg_
- SchedAPI.h: taskStart now defined in here; it's only a wrapper around
              scheduleThread now, but might use some init, shutdown later
- RtsAPI.h: I have nuked the def of rts_evalNothing

* Compiler:

- ghc/compiler/main/DriverState.hs
  added PVM-ish flags to the parallel way
  added new ways for parallel ticky profiling and distributed exec

- ghc/compiler/main/DriverPipeline.hs
  added a fct run_phase_MoveBinary which is called with way=mp after linking;
  it moves the bin file into a PVM dir and produces a wrapper script for
  parallel execution
  maybe cleaner to add a MoveBinary phase in DriverPhases.hs but this way
  it's less intrusive and MoveBinary makes probably only sense for mp anyway

* Nofib:

- nofib/spectral/Makefile, nofib/real/Makefile, ghc/tests/programs/Makefile:
  modified to skip some tests if HWL_NOFIB_HACK is set; only tmp to record
  which test prgs cause problems in my working build right now
65 files changed:
ghc/compiler/codeGen/CgClosure.lhs
ghc/compiler/main/DriverPipeline.hs
ghc/compiler/main/DriverState.hs
ghc/compiler/prelude/primops.txt
ghc/docs/users_guide/parallel.sgml
ghc/docs/users_guide/using.sgml
ghc/includes/ClosureTypes.h
ghc/includes/Hooks.h
ghc/includes/InfoMacros.h
ghc/includes/InfoTables.h
ghc/includes/Parallel.h
ghc/includes/PrimOps.h
ghc/includes/RtsAPI.h
ghc/includes/RtsTypes.h
ghc/includes/SchedAPI.h
ghc/includes/StgMiscClosures.h
ghc/includes/TSO.h
ghc/includes/Updates.h
ghc/lib/std/PrelForeign.lhs
ghc/lib/std/PrelWeak.lhs
ghc/rts/ClosureFlags.c
ghc/rts/Exception.hc
ghc/rts/GC.c
ghc/rts/Linker.c
ghc/rts/Main.c
ghc/rts/PrimOps.hc
ghc/rts/Printer.c
ghc/rts/RtsAPI.c
ghc/rts/RtsFlags.c
ghc/rts/RtsFlags.h
ghc/rts/RtsStartup.c
ghc/rts/Sanity.c
ghc/rts/Sanity.h
ghc/rts/Schedule.c
ghc/rts/Schedule.h
ghc/rts/Sparks.c
ghc/rts/Sparks.h
ghc/rts/Stats.c
ghc/rts/Storage.c
ghc/rts/hooks/InitEachPE.c
ghc/rts/hooks/ShutdownEachPEHook.c [new file with mode: 0644]
ghc/rts/parallel/Dist.c [new file with mode: 0644]
ghc/rts/parallel/Dist.h [new file with mode: 0644]
ghc/rts/parallel/FetchMe.h
ghc/rts/parallel/FetchMe.hc
ghc/rts/parallel/Global.c
ghc/rts/parallel/GranSim.c
ghc/rts/parallel/GranSimRts.h
ghc/rts/parallel/HLC.h
ghc/rts/parallel/HLComms.c
ghc/rts/parallel/LLC.h
ghc/rts/parallel/LLComms.c
ghc/rts/parallel/PEOpCodes.h
ghc/rts/parallel/Pack.c
ghc/rts/parallel/ParInit.c
ghc/rts/parallel/ParTicky.c [new file with mode: 0644]
ghc/rts/parallel/ParTicky.h [new file with mode: 0644]
ghc/rts/parallel/Parallel.c
ghc/rts/parallel/ParallelDebug.c
ghc/rts/parallel/ParallelDebug.h
ghc/rts/parallel/ParallelRts.h
ghc/rts/parallel/RBH.c
ghc/rts/parallel/SysMan.c
ghc/tests/Makefile
ghc/tests/programs/Makefile