Skip to content
Snippets Groups Projects
Commit b200c258 authored by André Santos's avatar André Santos
Browse files

[project @ 1997-07-21 11:57:04 by andre]

Parallel 2.04 patches
parent 65ee4e4f
No related merge requests found
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.7 1997/07/21 11:31:42 andre Exp $
# $Id: Makefile,v 1.8 1997/07/21 11:57:04 andre Exp $
TOP=..
CURRENT_DIR=ghc/driver
......@@ -137,7 +137,6 @@ WAY_mt_HC_OPTS+=-fstack-check -fconcurrent -fticky-ticky -D__CONCURRENT_HASKELL_
# Way `mp':
WAY_mp_NAME=parallel
WAY_mp_HC_OPTS+=-fstack-check -fconcurrent -D__PARALLEL_HASKELL__ -DPAR -optcpp-D__PARALLEL_HASKELL__ -optc-DPAR -optc-DCONCURRENT
# try WAY_mp_HC_OPTS+=-fstack-check -fconcurrent -D__PARALLEL_HASKELL__ -DPAR -optcpp-D__CONCURRENT_HASKELL__ -optc-DPAR -optc-DCONCURRENT
#
# Way `mg':
......
......@@ -84,7 +84,7 @@ void get_opcode_and_sender PROTO((PACKET p, OPCODE *popcode, GLOBAL_TASK_ID *pse
GLOBAL_TASK_ID *PEStartUp PROTO((unsigned nPEs));
void PEShutDown(STG_NO_ARGS);
void (*ExceptionHandler) PROTO((PACKET));
extern void (*ExceptionHandler) PROTO((PACKET));
#endif /*PAR */
#endif /*defined __LLC_H */
......@@ -67,7 +67,7 @@ par, fork :: Eval a => a -> b -> b
{-# INLINE par #-}
{-# INLINE fork #-}
#ifdef __CONCURRENT_HASKELL__
#if defined(__PARALLEL_HASKELL__) || defined (__GRANSIM__)
par x y = case (par# x) of { 0# -> parError; _ -> y }
fork x y = case (fork# x) of { 0# -> parError; _ -> y }
#else
......
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.7 1997/05/27 05:58:46 sof Exp $
# $Id: Makefile,v 1.8 1997/07/21 12:00:03 andre Exp $
# This is the Makefile for the runtime-system stuff.
# This stuff is written in C (and cannot be written in Haskell).
......@@ -237,7 +237,7 @@ endif
gum/SysMan : gum/SysMan.mp_o gum/LLComms.mp_o main/Mallocs.o hooks/OutOfVM.o
$(RM) $@
$(HC) $(HC_OPTS) -o $@ gum/SysMan.mp_o gum/LLComms.mp_o main/Mallocs.o hooks/OutOfVM.o -L$$PVM_ROOT/lib/$$PVM_ARCH -lpvm3 -lgpvm3 $(__socket_libs)
gcc -o $@ gum/SysMan.mp_o gum/LLComms.mp_o main/Mallocs.o hooks/OutOfVM.o -L$$PVM_ROOT/lib/$$PVM_ARCH -lpvm3 -lgpvm3 $(__socket_libs)
CLEAN_FILES += gum/SysMan.mp_o gum/SysMan
INSTALL_LIBS += gum/SysMan
......
......@@ -23,9 +23,11 @@ A filehandle to which any storage-manager statistics should be written.
rtsBool
exitSM (smInfo *sm_info)
{
#ifndef PAR
int rc;
/* Upon closing down the storage manager, we free all foreign objects */
rc = freeForeigns(sm_info->ForeignObjList);
#endif
/* Return code ignored for now */
stat_exit(sm_info->hp - hp_start);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment