charm.git
19 years agoAdded "+tcharm_nomig" and "+tcharm_nothreads" command-line options,
Orion Lawlor [Thu, 24 Jan 2002 23:27:20 +0000 (23:27 +0000)]
Added "+tcharm_nomig" and "+tcharm_nothreads" command-line options,
which disable various advanced (but needed) features for debugging.

+tcharm_nomig allocates the thread stack on the heap, which can
help you determine if there is a problem with isomalloc.

+tcharm_nothreads does away with threads entirely-- the user's
driver() is called as a regular function.  Of course, blocking
calls won't work so this is only for bare-bones 1 processor testing.

19 years agoadd undef to CmiSwitch
Gengbin Zheng [Thu, 24 Jan 2002 20:04:02 +0000 (20:04 +0000)]
add undef to CmiSwitch

19 years agoAdded tracing calls before and after array element entry method
Orion Lawlor [Tue, 22 Jan 2002 17:14:07 +0000 (17:14 +0000)]
Added tracing calls before and after array element entry method
invocation. This should get called for array constructors,
regular messages, and broadcasts.
Also disable Charm Kernel tracing for location manager.

19 years agoArray manager will do its own tracing, so it disables
Orion Lawlor [Tue, 22 Jan 2002 17:12:29 +0000 (17:12 +0000)]
Array manager will do its own tracing, so it disables
the Charm Kernel tracing.

19 years agoAdded ability for groups to disable their own tracing,
Orion Lawlor [Tue, 22 Jan 2002 17:11:46 +0000 (17:11 +0000)]
Added ability for groups to disable their own tracing,
by setting ckEnableTracing=CmiFalse in their constructor.
This is needed by the array and location managers so they
can trace their children properly.

19 years agoAdded another traceBeginExecute method, which takes its parameters
Orion Lawlor [Tue, 22 Jan 2002 17:10:31 +0000 (17:10 +0000)]
Added another traceBeginExecute method, which takes its parameters
from the user rather than from a message.  This is needed for arrays,
which store the entry point, etc. in the message envelope differently.

19 years agoForgot to reset message type when forwarding a vidblock message.
Orion Lawlor [Mon, 21 Jan 2002 16:54:28 +0000 (16:54 +0000)]
Forgot to reset message type when forwarding a vidblock message.

19 years agoForgot the case when VidBlock::send is called on message *arrival*;
Orion Lawlor [Sun, 20 Jan 2002 17:34:42 +0000 (17:34 +0000)]
Forgot the case when VidBlock::send is called on message *arrival*;
and the message type needs to be reset.
Hoisted fixed version of message send into separate method.

19 years agoadded these files for statistic collection
Puneet Narula [Fri, 18 Jan 2002 20:35:08 +0000 (20:35 +0000)]
added these files for statistic collection

19 years agoupdated the code for AMR
Puneet Narula [Fri, 18 Jan 2002 20:34:18 +0000 (20:34 +0000)]
updated the code for AMR

19 years agoMoved usesAtSync up to tcharm library. This is needed so
Orion Lawlor [Fri, 18 Jan 2002 20:19:48 +0000 (20:19 +0000)]
Moved usesAtSync up to tcharm library.  This is needed so
a composite application can actually get to sync.

19 years agoAdded section for delegation.
Orion Lawlor [Wed, 16 Jan 2002 20:27:24 +0000 (20:27 +0000)]
Added section for delegation.

19 years agoChanged "CProxyBase_Delegatable" to just "CProxy"
Orion Lawlor [Wed, 16 Jan 2002 20:26:52 +0000 (20:26 +0000)]
Changed "CProxyBase_Delegatable" to just "CProxy"

19 years agoChanged "CProxyBase_Delegatable" to just "CProxy".
Orion Lawlor [Wed, 16 Jan 2002 20:26:00 +0000 (20:26 +0000)]
Changed "CProxyBase_Delegatable" to just "CProxy".

19 years agoAdded CkChareMsgPrep, CkGroupMsgPrep so delegated messages can
Orion Lawlor [Wed, 16 Jan 2002 20:24:00 +0000 (20:24 +0000)]
Added CkChareMsgPrep, CkGroupMsgPrep so delegated messages can
be pushed directly into the appropriate processor's queue.
This should simplify the implementation of most delegators.

19 years agoAdded command-line options to control heap check frequency and
Orion Lawlor [Wed, 16 Jan 2002 20:21:00 +0000 (20:21 +0000)]
Added command-line options to control heap check frequency and
uninitialized memory fill.

19 years agoDocument -memory link-time option.
Orion Lawlor [Wed, 16 Jan 2002 20:20:29 +0000 (20:20 +0000)]
Document -memory link-time option.

19 years agoSimple sample of array manager delegation.
Orion Lawlor [Wed, 16 Jan 2002 18:42:45 +0000 (18:42 +0000)]
Simple sample of array manager delegation.

19 years agofixed a compiler issue.
Gengbin Zheng [Tue, 15 Jan 2002 21:14:04 +0000 (21:14 +0000)]
fixed a compiler issue.

19 years agoadded bluegene header definition.
Gengbin Zheng [Mon, 14 Jan 2002 23:04:20 +0000 (23:04 +0000)]
added bluegene header definition.

19 years agoadded some error checking, also added CmiSwitchToPE() for CcdConditions.
Gengbin Zheng [Mon, 14 Jan 2002 15:32:32 +0000 (15:32 +0000)]
added some error checking, also added CmiSwitchToPE() for CcdConditions.

19 years agocompiled with VC++
Gengbin Zheng [Mon, 14 Jan 2002 06:19:59 +0000 (06:19 +0000)]
compiled with VC++

19 years agoCmiMyPe => CkMyPe
Gengbin Zheng [Mon, 14 Jan 2002 03:16:13 +0000 (03:16 +0000)]
CmiMyPe => CkMyPe

19 years agoconv-mach-tcp for example are shared by all net version, so instead of make duplicate...
Gengbin Zheng [Mon, 14 Jan 2002 02:49:14 +0000 (02:49 +0000)]
conv-mach-tcp for example are shared by all net version, so instead of make duplicates in all net-* versions, move it to Common.net.

19 years agomoved conv-mach-tcp.*
Gengbin Zheng [Mon, 14 Jan 2002 02:46:12 +0000 (02:46 +0000)]
moved conv-mach-tcp.*

19 years agomoved conv-mach-tcp.* to Common.net
Gengbin Zheng [Mon, 14 Jan 2002 02:45:07 +0000 (02:45 +0000)]
moved conv-mach-tcp.* to Common.net

19 years agomoved conv-mach-tcp.* to Common.net.
Gengbin Zheng [Mon, 14 Jan 2002 02:44:28 +0000 (02:44 +0000)]
moved conv-mach-tcp.* to Common.net.

19 years agoconv-mach-tcp common for all net versions.
Gengbin Zheng [Mon, 14 Jan 2002 02:43:01 +0000 (02:43 +0000)]
conv-mach-tcp common for all net versions.

19 years agomoved tcp to Common.net
Gengbin Zheng [Mon, 14 Jan 2002 02:41:20 +0000 (02:41 +0000)]
moved tcp to Common.net

19 years agochanged to CcdCallOnConditionKeepOnPE()
Gengbin Zheng [Mon, 14 Jan 2002 02:11:16 +0000 (02:11 +0000)]
changed to CcdCallOnConditionKeepOnPE()

19 years agoset CMK_CONDS_USE_SPECIAL_CODE to 1.
Gengbin Zheng [Mon, 14 Jan 2002 02:06:24 +0000 (02:06 +0000)]
set CMK_CONDS_USE_SPECIAL_CODE to 1.

19 years agodefine CmiSwitchToPE() for Ccd Conditions functions.
Gengbin Zheng [Mon, 14 Jan 2002 01:56:06 +0000 (01:56 +0000)]
define  CmiSwitchToPE() for Ccd Conditions functions.

19 years agoCcd conditions have problem on bluegene and uth version where a callback function...
Gengbin Zheng [Mon, 14 Jan 2002 01:42:08 +0000 (01:42 +0000)]
Ccd conditions have problem on bluegene and uth version where a callback function can be triggered in the main scheduler without MYPE information is set. This is disasterous when callback goes into another PE without setting mype correctly, and the callback is called on the identity of caller PE.
I added another OnPE version e.g. CcdCallFnAfterOnPE and call CmiSwitchToPE when needed to switch.

19 years agoslightly changed the deq method of a work thread, so that the affinity queue is deq...
Gengbin Zheng [Fri, 11 Jan 2002 22:13:58 +0000 (22:13 +0000)]
slightly changed the deq method of a work thread, so that the affinity queue is deq only after a msg is handled, a msg from non-affinity queue is deq right away;
add another Bnv using a template class implementation.

19 years agopreparing for bgcharm: CpvInitializes are moved from group constructor to initcall.
Gengbin Zheng [Fri, 11 Jan 2002 05:18:23 +0000 (05:18 +0000)]
preparing for bgcharm: CpvInitializes are moved from group constructor to initcall.

19 years agoCmiMyPe => CkMyPe(for bgcharm)
Gengbin Zheng [Fri, 11 Jan 2002 04:41:32 +0000 (04:41 +0000)]
CmiMyPe => CkMyPe(for bgcharm)

19 years agoSectionCookie default constructor changed to not set pe, this is for bgcharm++.
Gengbin Zheng [Thu, 10 Jan 2002 23:51:02 +0000 (23:51 +0000)]
SectionCookie default constructor changed to not set pe, this is for bgcharm++.

19 years agoavoid using CkSectionCookie's default constructor.
Gengbin Zheng [Thu, 10 Jan 2002 23:49:56 +0000 (23:49 +0000)]
avoid using CkSectionCookie's default constructor.

19 years agoupdateCount is 1 for the first update, not zero.
Gunavardhan Kakulapati [Thu, 10 Jan 2002 23:44:54 +0000 (23:44 +0000)]
updateCount is 1 for the first update, not zero.

19 years agoNode value array passed to mesh_updated was half garbage.
Gunavardhan Kakulapati [Thu, 10 Jan 2002 23:44:25 +0000 (23:44 +0000)]
Node value array passed to mesh_updated was half garbage.
Cannot call FEM_My_Partition from within mesh_updated.

19 years agoForgot to include conv-autoconfig.h; so none of the
Gunavardhan Kakulapati [Thu, 10 Jan 2002 23:25:34 +0000 (23:25 +0000)]
Forgot to include conv-autoconfig.h; so none of the
name-controlling CMK_* symbols were actually defined.

19 years agoBnv changes.
Gengbin Zheng [Thu, 10 Jan 2002 21:44:20 +0000 (21:44 +0000)]
Bnv changes.

19 years agoAdded tests for ghost layer.
Orion Lawlor [Thu, 10 Jan 2002 19:45:51 +0000 (19:45 +0000)]
Added tests for ghost layer.

19 years agoAdded an easy-to-use barrier call, which internally uses a
Orion Lawlor [Thu, 10 Jan 2002 19:35:19 +0000 (19:35 +0000)]
Added an easy-to-use barrier call, which internally uses a
reduction/broadcast cycle.

19 years agoAdded ability to define "ghost layers".
Orion Lawlor [Thu, 10 Jan 2002 19:31:18 +0000 (19:31 +0000)]
Added ability to define "ghost layers".
FEM_Exchange_Ghost_Lists is still buggy-- it occasionally
hangs-- and requires some sort of serial number.

19 years agoAdded ability to define "ghost layers", which are readonly
Orion Lawlor [Thu, 10 Jan 2002 19:29:56 +0000 (19:29 +0000)]
Added ability to define "ghost layers", which are readonly
copies of nodes and/or elements on other chunks.

19 years agoAdded call to METIS_PartGraphRecursive, which works much better
Orion Lawlor [Thu, 10 Jan 2002 19:28:08 +0000 (19:28 +0000)]
Added call to METIS_PartGraphRecursive, which works much better
for a small number of partitions.

19 years agoAdded CkNoncopyable class to prevent people from inadvertently
Orion Lawlor [Thu, 10 Jan 2002 19:23:25 +0000 (19:23 +0000)]
Added CkNoncopyable class to prevent people from inadvertently
using copy constructors.

Added size() method for compatability with the C++ STL std::vector.

19 years agoAdded CkReductionGroup, a superclass groups can inherit from
Orion Lawlor [Thu, 10 Jan 2002 19:21:50 +0000 (19:21 +0000)]
Added CkReductionGroup, a superclass groups can inherit from
to perform reductions.  This entails collecting the "contribute"
declaration into a #define in ckreduction.h.

19 years agoadded more debug printouts.
Gengbin Zheng [Thu, 10 Jan 2002 07:25:59 +0000 (07:25 +0000)]
added more debug printouts.

19 years agoCmiMyPe => CkMyPe
Gengbin Zheng [Thu, 10 Jan 2002 07:17:52 +0000 (07:17 +0000)]
CmiMyPe => CkMyPe

19 years agoin array section, CmiMyPe => CkMyPe
Gengbin Zheng [Thu, 10 Jan 2002 07:15:03 +0000 (07:15 +0000)]
in array section, CmiMyPe => CkMyPe

19 years agofixed a bug when one work thread trapped in scheduler, the whole emulator hangs.
Gengbin Zheng [Thu, 10 Jan 2002 05:52:09 +0000 (05:52 +0000)]
fixed a bug when one work thread trapped in scheduler, the whole emulator hangs.

19 years agouse DEBUGF.
Gengbin Zheng [Thu, 10 Jan 2002 05:50:43 +0000 (05:50 +0000)]
use DEBUGF.

19 years agochange the DEBUGP
Gengbin Zheng [Thu, 10 Jan 2002 03:07:24 +0000 (03:07 +0000)]
change the DEBUGP

19 years agomany changes:
Gengbin Zheng [Thu, 10 Jan 2002 02:55:40 +0000 (02:55 +0000)]
many changes:
1. eliminate the use of thread in cookie setup
2. remove several entry functions.
3. debug print are turned on with DEBUG maco

19 years agomoved the array section constructor to genSubDecls.
Gengbin Zheng [Wed, 9 Jan 2002 22:07:30 +0000 (22:07 +0000)]
moved the array section constructor to genSubDecls.

19 years agofixed a bug when there is multiple constructors, section ckNew multiple decalration...
Gengbin Zheng [Wed, 9 Jan 2002 20:59:04 +0000 (20:59 +0000)]
fixed a bug when there is multiple constructors, section ckNew multiple decalration error.

19 years agoCmiMyPe => CkMyPe.
Gengbin Zheng [Wed, 9 Jan 2002 15:47:49 +0000 (15:47 +0000)]
CmiMyPe => CkMyPe.

19 years agoa lot of changes:
Gengbin Zheng [Tue, 8 Jan 2002 07:59:37 +0000 (07:59 +0000)]
a lot of changes:
1. fixed a bug in Bnv;
2. fixed a bug when a bluegene msg is buffered and re-sent, the handler need to be swaped.
3. re-implemented broadcast;

19 years agoif CkExit is called inside main(), since the exitHandler is not set, trap CkExit...
Gengbin Zheng [Tue, 8 Jan 2002 05:08:00 +0000 (05:08 +0000)]
if CkExit is called inside main(), since the exitHandler is not set, trap CkExit into scheduler will hang the program.

19 years agowith ++local, don't try to resolve the local name, just use localhost.
Gengbin Zheng [Tue, 8 Jan 2002 04:47:46 +0000 (04:47 +0000)]
with ++local, don't try to resolve the local name, just use localhost.

19 years agoremoved mpi commons.
Gengbin Zheng [Mon, 7 Jan 2002 01:02:21 +0000 (01:02 +0000)]
removed mpi commons.

19 years agoadd bluegene header.
Gengbin Zheng [Mon, 7 Jan 2002 00:33:37 +0000 (00:33 +0000)]
add bluegene header.

19 years agoln -f cannot overwrite a created file on Sun.
Gengbin Zheng [Sun, 6 Jan 2002 23:42:48 +0000 (23:42 +0000)]
ln -f cannot overwrite a created file on Sun.

19 years agoremoved mpi commons.
Gengbin Zheng [Sun, 6 Jan 2002 22:42:57 +0000 (22:42 +0000)]
removed mpi commons.

19 years agoremoved mpi commons.
Gengbin Zheng [Sun, 6 Jan 2002 22:36:42 +0000 (22:36 +0000)]
removed mpi commons.

19 years agoremove mpi commons.
Gengbin Zheng [Sun, 6 Jan 2002 22:34:32 +0000 (22:34 +0000)]
remove mpi commons.

19 years agocommon settings for mpi version.
Gengbin Zheng [Sun, 6 Jan 2002 22:34:02 +0000 (22:34 +0000)]
common settings for mpi version.

19 years agoadded conv-common.h
Gengbin Zheng [Sun, 6 Jan 2002 22:04:06 +0000 (22:04 +0000)]
added conv-common.h

19 years agogenerated an empty conv-common.h by default.
Gengbin Zheng [Sun, 6 Jan 2002 21:58:27 +0000 (21:58 +0000)]
generated an empty conv-common.h by default.

19 years agoremoved net commons.
Gengbin Zheng [Sun, 6 Jan 2002 21:55:31 +0000 (21:55 +0000)]
removed net commons.

19 years agoremoved net commons.
Gengbin Zheng [Sun, 6 Jan 2002 21:43:59 +0000 (21:43 +0000)]
removed net commons.

19 years agoremove net common.
Gengbin Zheng [Sun, 6 Jan 2002 21:37:01 +0000 (21:37 +0000)]
remove net common.

19 years agomoved net common settings.
Gengbin Zheng [Sun, 6 Jan 2002 21:26:51 +0000 (21:26 +0000)]
moved net common settings.

19 years agoconv-common.h common settings for net version.
Gengbin Zheng [Sun, 6 Jan 2002 21:26:32 +0000 (21:26 +0000)]
conv-common.h common settings for net version.

19 years agobig changes in bluegene message: use extended header defined in conv-mach.h, no speci...
Gengbin Zheng [Sun, 6 Jan 2002 06:44:05 +0000 (06:44 +0000)]
big changes in bluegene message: use extended header defined in conv-mach.h, no special bg msg needed.

19 years agoadded CMK_MSG_HEADER_BLUEGENE for bluegene.
Gengbin Zheng [Sun, 6 Jan 2002 06:37:58 +0000 (06:37 +0000)]
added CMK_MSG_HEADER_BLUEGENE for bluegene.

19 years agoadded BgNumberHandler
Gengbin Zheng [Fri, 4 Jan 2002 06:32:00 +0000 (06:32 +0000)]
added BgNumberHandler

19 years agoregister handlers can be called anywhere now.
Gengbin Zheng [Thu, 3 Jan 2002 07:46:59 +0000 (07:46 +0000)]
register handlers can be called anywhere now.

19 years agoadd rule for multicast lib.
Gengbin Zheng [Wed, 2 Jan 2002 22:02:24 +0000 (22:02 +0000)]
add rule for multicast lib.

19 years agoremove ^M.
Gengbin Zheng [Wed, 2 Jan 2002 19:17:13 +0000 (19:17 +0000)]
remove ^M.

19 years agoadd include conv-mach-opt.h
Gengbin Zheng [Wed, 2 Jan 2002 06:50:42 +0000 (06:50 +0000)]
add include conv-mach-opt.h

19 years agogcc => gcc3
Gengbin Zheng [Tue, 1 Jan 2002 22:25:08 +0000 (22:25 +0000)]
gcc => gcc3
added tcp.

19 years agoadded --basedir option
Gengbin Zheng [Tue, 1 Jan 2002 22:23:30 +0000 (22:23 +0000)]
added --basedir option
also --incdir= --libdir= --basedir= are fine;
add correctness checking for the directories.

19 years agogcc => gcc3
Gengbin Zheng [Tue, 1 Jan 2002 20:55:43 +0000 (20:55 +0000)]
gcc => gcc3

19 years agoset sockets as nonblocking.
Gengbin Zheng [Mon, 31 Dec 2001 01:30:19 +0000 (01:30 +0000)]
set sockets as nonblocking.

19 years agotcp version.
Gengbin Zheng [Mon, 31 Dec 2001 00:00:52 +0000 (00:00 +0000)]
tcp version.

19 years agoshould_retry will check errno with nonblocking event.
Gengbin Zheng [Sun, 30 Dec 2001 23:46:14 +0000 (23:46 +0000)]
should_retry will check errno with nonblocking event.

19 years agodisable netpoll
Gengbin Zheng [Sun, 30 Dec 2001 23:25:10 +0000 (23:25 +0000)]
disable netpoll

19 years agodisable netpoll.
Gengbin Zheng [Sun, 30 Dec 2001 23:24:46 +0000 (23:24 +0000)]
disable netpoll.

19 years agochange the sequence of datagram 8-byte header. seqno can be used as packet length...
Gengbin Zheng [Sun, 30 Dec 2001 07:33:50 +0000 (07:33 +0000)]
change the sequence of datagram 8-byte header. seqno can be used as packet length in TCP version.

19 years agosetsockopt with TCP_NODELAY to disable the Nagle alg.
Gengbin Zheng [Sun, 30 Dec 2001 07:30:07 +0000 (07:30 +0000)]
setsockopt with TCP_NODELAY to disable the Nagle alg.

19 years agoadded select() support, both select and poll should work.
Gengbin Zheng [Sun, 30 Dec 2001 00:56:31 +0000 (00:56 +0000)]
added select() support, both select and poll should work.

19 years agomachine-tcp
Gengbin Zheng [Sun, 30 Dec 2001 00:16:36 +0000 (00:16 +0000)]
machine-tcp

19 years agooption tcp
Gengbin Zheng [Sun, 30 Dec 2001 00:06:28 +0000 (00:06 +0000)]
option tcp

19 years agonet-tcp
Gengbin Zheng [Sun, 30 Dec 2001 00:04:53 +0000 (00:04 +0000)]
net-tcp

19 years agoAdding manger.C and manager.h to enable the "cluster manager handler" to be rgistered
Sameer Kumar [Thu, 27 Dec 2001 23:10:41 +0000 (23:10 +0000)]
Adding manger.C and manager.h to enable the "cluster manager handler" to be rgistered
whenever the loadbalancer is created. The handler receives bitvectors from the faucets scheduler.
Currently this is done only in the constructor of CommLB because only it supports shrink-expand.
The Makefile also has been modified to compile these files.

19 years agoin moduleinit.C, remove include charm++.h, so converse program can be compiled.
Gengbin Zheng [Sat, 22 Dec 2001 23:09:46 +0000 (23:09 +0000)]
in moduleinit.C, remove include charm++.h, so converse program can be compiled.

19 years agoadd mpcc.
Gengbin Zheng [Sat, 22 Dec 2001 00:29:21 +0000 (00:29 +0000)]
add mpcc.