charm.git
19 years agoprojector files
Arun Singla [Wed, 17 Apr 2002 21:48:50 +0000 (21:48 +0000)]
projector files

19 years agoSeparated CPM and CPATH headers.
Milind Bhandarkar [Wed, 17 Apr 2002 16:51:43 +0000 (16:51 +0000)]
Separated CPM and CPATH headers.

19 years agoSeparated converse qd prototypes.
Milind Bhandarkar [Wed, 17 Apr 2002 16:43:26 +0000 (16:43 +0000)]
Separated converse qd prototypes.

19 years agofixed a stupid typo.
Milind Bhandarkar [Wed, 17 Apr 2002 16:38:11 +0000 (16:38 +0000)]
fixed a stupid typo.

19 years agoStarted splitting converse.h into smaller files. Separated random number
Milind Bhandarkar [Wed, 17 Apr 2002 16:36:55 +0000 (16:36 +0000)]
Started splitting converse.h into smaller files. Separated random number
generation prototypes.

19 years agoSilly typo, only causes compilation error on smp-versions.
Orion Lawlor [Wed, 17 Apr 2002 15:54:44 +0000 (15:54 +0000)]
Silly typo, only causes compilation error on smp-versions.

19 years agoAdded the semaphore abstraction.
Milind Bhandarkar [Tue, 16 Apr 2002 21:26:15 +0000 (21:26 +0000)]
Added the semaphore abstraction.

19 years agoprojector files
Arun Singla [Mon, 15 Apr 2002 20:28:07 +0000 (20:28 +0000)]
projector files

19 years ago"-e" doesn't exist in the (stupid) Sun version of "test"; so you have
Orion Lawlor [Sat, 13 Apr 2002 13:58:44 +0000 (13:58 +0000)]
"-e" doesn't exist in the (stupid) Sun version of "test"; so you have
to use "-r".

19 years agoskipstuff now skip nonblanks strings as well as a quoted string. thus, nodelist file...
Gengbin Zheng [Sat, 13 Apr 2002 01:12:34 +0000 (01:12 +0000)]
skipstuff now skip nonblanks strings as well as a quoted string. thus, nodelist file now support quoted strings for example ++shell "ssh -p 2222".

19 years agofix a bug in argv. always use copy of original to avoid deletion
Gengbin Zheng [Fri, 12 Apr 2002 19:50:58 +0000 (19:50 +0000)]
fix a bug in argv. always use copy of original to avoid deletion

19 years agooops. fixed the earlier fix.
Milind Bhandarkar [Fri, 12 Apr 2002 18:55:44 +0000 (18:55 +0000)]
oops. fixed the earlier fix.

19 years agoeliminated warnings about softlinking over existing dirs.
Milind Bhandarkar [Fri, 12 Apr 2002 18:53:15 +0000 (18:53 +0000)]
eliminated warnings about softlinking over existing dirs.

19 years agoFixed warnings about incompatible pointer types.
Milind Bhandarkar [Fri, 12 Apr 2002 18:40:53 +0000 (18:40 +0000)]
Fixed warnings about incompatible pointer types.

19 years agoAdded a check for gzprintf to detect older versions of zlib that do not
Milind Bhandarkar [Fri, 12 Apr 2002 16:55:14 +0000 (16:55 +0000)]
Added a check for gzprintf to detect older versions of zlib that do not
contain a prototype for it in zlib.h.

19 years agoall non 0 pe use the copied argv while pe 0 use the *original* one to actually modify...
Gengbin Zheng [Thu, 11 Apr 2002 22:04:23 +0000 (22:04 +0000)]
all non 0 pe use the copied argv while pe 0 use the *original* one to actually modify the actual argv. Otherwise, after ConverseInit, namd2 will get unmodified argv and get wrong parameters.

19 years agoREADME file has design details for Projector.
Arun Singla [Thu, 11 Apr 2002 20:54:59 +0000 (20:54 +0000)]
README file has design details for Projector.
API categorized into modules.

19 years agoForgot one remaining #ifdef, without which this won't compile on
Orion Lawlor [Wed, 10 Apr 2002 14:15:26 +0000 (14:15 +0000)]
Forgot one remaining #ifdef, without which this won't compile on
anything but Linux.

19 years agoTimers need to be monotonic for a thread, so there needs to be a
Orion Lawlor [Tue, 9 Apr 2002 23:24:56 +0000 (23:24 +0000)]
Timers need to be monotonic for a thread, so there needs to be a
thread-specific timing offset.

19 years agoAdded TCharmWallTimer call, which uses a thread-specific offset to
Orion Lawlor [Tue, 9 Apr 2002 23:24:22 +0000 (23:24 +0000)]
Added TCharmWallTimer call, which uses a thread-specific offset to
make timers look monotonic even across processors.

19 years agoSilly spelling error in "deactivateHeap".
Orion Lawlor [Tue, 9 Apr 2002 22:31:13 +0000 (22:31 +0000)]
Silly spelling error in "deactivateHeap".

19 years agoAdded +gz-trace option to projections. It writes compressed trace files.
Milind Bhandarkar [Tue, 9 Apr 2002 22:22:58 +0000 (22:22 +0000)]
Added +gz-trace option to projections. It writes compressed trace files.
It is based on zlib. Availabality of zlib is checked via charmconfig.

19 years agoUse proper path to get to doc/ subdirectory.
Orion Lawlor [Tue, 9 Apr 2002 21:52:21 +0000 (21:52 +0000)]
Use proper path to get to doc/ subdirectory.

19 years agoUse more sensible relative path to get to doc/ directory.
Orion Lawlor [Tue, 9 Apr 2002 21:50:25 +0000 (21:50 +0000)]
Use more sensible relative path to get to doc/ directory.

19 years agoan empty arch directory(net-linux-smp, for example) can fool build directory as
Gengbin Zheng [Tue, 9 Apr 2002 21:44:56 +0000 (21:44 +0000)]
an empty arch directory(net-linux-smp, for example) can fool build directory as
if it is supported. fixed by checking the net-linux-smp/conv-mach.h instead of
checking net-linux-smp itself for errors.

19 years agofixed a bug in message heap expand; and use absolute time in correction.
Gengbin Zheng [Tue, 9 Apr 2002 21:06:09 +0000 (21:06 +0000)]
fixed a bug in message heap expand; and use absolute time in correction.

19 years agoEnable migratable memory before calling boundary condition callback.
Orion Lawlor [Mon, 8 Apr 2002 19:51:58 +0000 (19:51 +0000)]
Enable migratable memory before calling boundary condition callback.
Then any memory allocated in the callback will migrate with the thread.

19 years agoAdded "deactivateHeap" for use with callbacks.
Orion Lawlor [Mon, 8 Apr 2002 19:51:20 +0000 (19:51 +0000)]
Added "deactivateHeap" for use with callbacks.

19 years agotAdjust in correction msg is absolute recvTime. replaced linear search by binary...
Arun Singla [Mon, 8 Apr 2002 17:21:18 +0000 (17:21 +0000)]
tAdjust in correction msg is absolute recvTime. replaced linear search by binary search

19 years agoadded recvTime in log.
Gengbin Zheng [Mon, 8 Apr 2002 16:46:49 +0000 (16:46 +0000)]
added recvTime in log.

19 years agoadded code to change the timestamp while messages are in the worker thread queues...
Gengbin Zheng [Mon, 8 Apr 2002 04:47:31 +0000 (04:47 +0000)]
added code to change the timestamp while messages are in the worker thread queues, this save a lot of correction message sending out.

19 years agomake it better evenly assign msg to worker threads.
Gengbin Zheng [Sun, 7 Apr 2002 04:05:15 +0000 (04:05 +0000)]
make it better evenly assign msg to worker threads.

19 years agoexclude timings used for generating timelog.
Gengbin Zheng [Sun, 7 Apr 2002 00:08:35 +0000 (00:08 +0000)]
exclude timings used for generating timelog.

19 years agonow timestamp log is controlled by runtime flag:
Gengbin Zheng [Sat, 6 Apr 2002 06:48:54 +0000 (06:48 +0000)]
now timestamp log is controlled by runtime flag:
+bglog:  generate bg log with name: pgm-x-y-z.t.log where
            (x,y,z) is bg node, t is thread id.
+bgcorrect: implies +bglog, generate bglog, also perform correction algo.

19 years agomoved CkIsCharmMessage into trace-common.C
Gengbin Zheng [Sat, 6 Apr 2002 06:42:25 +0000 (06:42 +0000)]
moved CkIsCharmMessage into trace-common.C

19 years agoremoved CkIsCharmMessage because this cause problem in trace module because converse...
Gengbin Zheng [Sat, 6 Apr 2002 06:41:25 +0000 (06:41 +0000)]
removed CkIsCharmMessage because this cause problem in trace module because converse program doesn;t link ck.a.

19 years agoAdded more verbose error message for a strange thread problem.
Chao Huang [Fri, 5 Apr 2002 23:34:49 +0000 (23:34 +0000)]
Added more verbose error message for a strange thread problem.

(This is actually Orion, debugging in Chao's account)

19 years agotimestamp correction working except shutdown.
Arun Singla [Fri, 5 Apr 2002 21:40:00 +0000 (21:40 +0000)]
timestamp correction working except shutdown.

19 years agoWhen AMPI migrates, it leaves its (heap-allocated) arguments behind
Orion Lawlor [Fri, 5 Apr 2002 20:31:49 +0000 (20:31 +0000)]
When AMPI migrates, it leaves its (heap-allocated) arguments behind
on the old processor.  It's not immediately obvious how to ensure they're
eventually freed properly, so for now I'm just leaking the arguments.

After migration, deleting[] the arguments from the original heap is no
longer possible!

19 years agoDisable migratable memory when the user's thread finishes.
Orion Lawlor [Fri, 5 Apr 2002 20:30:25 +0000 (20:30 +0000)]
Disable migratable memory when the user's thread finishes.
Without this, all allocations after the thread dies were still
migratable!

19 years agoRather than trying to use malloc_nonmigratable everywhere,
Orion Lawlor [Fri, 5 Apr 2002 20:29:06 +0000 (20:29 +0000)]
Rather than trying to use malloc_nonmigratable everywhere,
just set the current migratable heap block list to NULL when
we get a SIGIO.

This is more reliable than the old malloc_nonmigratable version,
since now anything (including, e.g., the pcqueue) called during
CommServer will be allocated in non-migratable memory.

19 years agoCrashing bug-- extra delete[] lies outside of if, so nextseq
Orion Lawlor [Fri, 5 Apr 2002 19:35:44 +0000 (19:35 +0000)]
Crashing bug-- extra delete[] lies outside of if, so nextseq
would be deleted with *any* pupper.  Since a migration involves
at least a sizing and packing pupper, migrating an AMPI did
a double-delete and corrupted the heap.  Found with the help
of "-memory paranoid".

Could have fixed this with an extra pair of {}'s, but the more
standard and reliable place to do deallocation is in the destructor.

19 years agoadded new event MESSAGE_RECV to trace "message recv" and push to local queue.
Gengbin Zheng [Thu, 4 Apr 2002 23:14:52 +0000 (23:14 +0000)]
added new event MESSAGE_RECV to trace "message recv" and push to local queue.

19 years agofixed a prototype bug.
Gengbin Zheng [Thu, 4 Apr 2002 23:10:47 +0000 (23:10 +0000)]
fixed a prototype bug.

19 years agoadded macro for CkpvAccessOther
Gengbin Zheng [Thu, 4 Apr 2002 23:09:15 +0000 (23:09 +0000)]
added macro for CkpvAccessOther

19 years agoadded BnvAccessOther and BtvAccessOther
Gengbin Zheng [Thu, 4 Apr 2002 23:06:34 +0000 (23:06 +0000)]
added BnvAccessOther and BtvAccessOther

19 years agoadded CkIsCharmMessage.
Gengbin Zheng [Thu, 4 Apr 2002 23:01:35 +0000 (23:01 +0000)]
added CkIsCharmMessage.

19 years agoReorganized source tree.
Orion Lawlor [Thu, 4 Apr 2002 21:52:18 +0000 (21:52 +0000)]
Reorganized source tree.

19 years agoadded timestamp correction modules
Arun Singla [Thu, 4 Apr 2002 17:23:32 +0000 (17:23 +0000)]
added timestamp correction modules

19 years agoadd CpvAccessOther(v, rank) macros.
Gengbin Zheng [Thu, 4 Apr 2002 16:40:31 +0000 (16:40 +0000)]
add CpvAccessOther(v, rank) macros.

19 years agoadded traceMessageRecv for tracing message received.
Gengbin Zheng [Thu, 4 Apr 2002 07:53:13 +0000 (07:53 +0000)]
added traceMessageRecv for tracing message received.

19 years agoupdated bluegene message headers.
Gengbin Zheng [Thu, 4 Apr 2002 06:38:15 +0000 (06:38 +0000)]
updated bluegene message headers.

19 years agochanged -lmpi to -lpmpi.
Gengbin Zheng [Thu, 4 Apr 2002 06:21:38 +0000 (06:21 +0000)]
changed -lmpi to -lpmpi.

19 years agoRunnable mode (no debug statements)
Gengbin Zheng [Thu, 4 Apr 2002 05:11:39 +0000 (05:11 +0000)]
Runnable mode (no debug statements)

19 years ago+trace-root implemented in trace-summary too.
Gengbin Zheng [Tue, 2 Apr 2002 02:04:43 +0000 (02:04 +0000)]
+trace-root implemented in trace-summary too.

19 years agouse a function to decide GLIBC version for downloading.
Gengbin Zheng [Sat, 30 Mar 2002 06:10:50 +0000 (06:10 +0000)]
use a function to decide GLIBC version for downloading.
also fix a bug when using lynx method: cannot tell if a transfer succeed or not.

19 years agofix a bug that CkExit produce 2 endExecute again.
Gengbin Zheng [Sat, 30 Mar 2002 02:38:05 +0000 (02:38 +0000)]
fix a bug that CkExit produce 2 endExecute again.

19 years agoUpdated version, working I think on SGI except for end.
Gengbin Zheng [Fri, 29 Mar 2002 22:36:03 +0000 (22:36 +0000)]
Updated version, working I think on SGI except for end.

19 years agoadded CkQ::remove(pos) for convinence.
Gengbin Zheng [Thu, 28 Mar 2002 21:50:47 +0000 (21:50 +0000)]
added CkQ::remove(pos) for convinence.

19 years agofixed file dependency for bg emulator.
Gengbin Zheng [Thu, 28 Mar 2002 07:04:59 +0000 (07:04 +0000)]
fixed file dependency for bg emulator.

19 years agoin bluegene trace projections, don't set traceInitTime because BgGetTime() all start...
Gengbin Zheng [Wed, 27 Mar 2002 21:11:38 +0000 (21:11 +0000)]
in bluegene trace projections, don't set traceInitTime because BgGetTime() all start from 0.

19 years agoput traceCharmInit right before beginComputation.
Gengbin Zheng [Wed, 27 Mar 2002 21:01:32 +0000 (21:01 +0000)]
put traceCharmInit right before beginComputation.

19 years agotrace init time now is set after trace modules are actually created.
Gengbin Zheng [Wed, 27 Mar 2002 20:36:43 +0000 (20:36 +0000)]
trace init time now is set after trace modules are actually created.

19 years agoChanged values of BROADCAST constants. These constants are only passed
Orion Lawlor [Wed, 27 Mar 2002 20:05:17 +0000 (20:05 +0000)]
Changed values of BROADCAST constants.  These constants are only passed
to CmiGeneralSend.  The old values were poor choices because:
1.) -1 and -2 might have been (incorrectly) passed in by the user
as a processor number.
2.) The node and non-node versions happened to have the same value, so
they could be (improperly) used interchangeably.

19 years agoCheck for invalid processor number. Suprisingly, without this check
Orion Lawlor [Wed, 27 Mar 2002 20:02:58 +0000 (20:02 +0000)]
Check for invalid processor number.  Suprisingly, without this check
a send to an invalid processor number (like -1) doesn't crash, just
silently corrupts the heap.

19 years agoadd timing log for main::main;
Gengbin Zheng [Wed, 27 Mar 2002 18:15:21 +0000 (18:15 +0000)]
add timing log for main::main;
add tracing for message.

19 years agoseveral changes:
Gengbin Zheng [Wed, 27 Mar 2002 07:35:17 +0000 (07:35 +0000)]
several changes:
1. use sorted(minheap) for message queues sorted by recvtime;
2. worker thread suspend itself when no message instead of yield;
3. added +bglog to print out low level timing log.

19 years agoAdded user-level documentation for tcharm, the basis of AMPI, FEM, MBLOCK, ...
Orion Lawlor [Tue, 26 Mar 2002 22:54:16 +0000 (22:54 +0000)]
Added user-level documentation for tcharm, the basis of AMPI, FEM, MBLOCK, ...

19 years agoLinked into libperfex.
Gengbin Zheng [Tue, 26 Mar 2002 03:35:06 +0000 (03:35 +0000)]
Linked into libperfex.

19 years agoRemoved delete error
Joshua Unger [Tue, 26 Mar 2002 01:58:46 +0000 (01:58 +0000)]
Removed delete error

19 years agoWorking version, connect to SGI calls
Joshua Unger [Tue, 26 Mar 2002 01:35:21 +0000 (01:35 +0000)]
Working version, connect to SGI calls

19 years agoFixed minor bug in output
Joshua Unger [Tue, 26 Mar 2002 00:46:02 +0000 (00:46 +0000)]
Fixed minor bug in output

19 years agoTowards a working version.
Joshua Unger [Tue, 26 Mar 2002 00:39:02 +0000 (00:39 +0000)]
Towards a working version.

19 years agoreplaced CmiNumPes(), so that chare creations are scattered well when cldanywhere.
Gengbin Zheng [Mon, 25 Mar 2002 07:59:38 +0000 (07:59 +0000)]
replaced CmiNumPes(), so that chare creations are scattered well when cldanywhere.

19 years agoupdated.
Gengbin Zheng [Mon, 25 Mar 2002 07:52:13 +0000 (07:52 +0000)]
updated.

19 years agodefine macro for BG trace modules.
Gengbin Zheng [Mon, 25 Mar 2002 07:51:23 +0000 (07:51 +0000)]
define macro for BG trace modules.

19 years agodefine macro for trace projections.
Gengbin Zheng [Mon, 25 Mar 2002 07:50:39 +0000 (07:50 +0000)]
define macro for trace projections.

19 years agochange the timing scheme, don't count work thread overhead.
Gengbin Zheng [Mon, 25 Mar 2002 07:49:33 +0000 (07:49 +0000)]
change the timing scheme, don't count work thread overhead.

19 years agotrace projections modules now works with Blue Gene Charm++. Due to the
Gengbin Zheng [Mon, 25 Mar 2002 07:47:54 +0000 (07:47 +0000)]
trace projections modules now works with Blue Gene Charm++. Due to the
nature of the charm level simulation, trace modules in BG Charm++ only
trace Charm level events and ignore converse events like begin idle and
end idle.

19 years agoadd charm level trace module prototypes.
Gengbin Zheng [Mon, 25 Mar 2002 07:33:57 +0000 (07:33 +0000)]
add charm level trace module prototypes.

19 years agoclean BlueGene code in init.C. hack ConverseExit in BlueGene code for
Gengbin Zheng [Mon, 25 Mar 2002 07:33:08 +0000 (07:33 +0000)]
clean BlueGene code in init.C. hack ConverseExit in BlueGene code for
BgShutDown().
Also ad support Blue Gene trace projections.

19 years agochange traceCommonInit to static.
Gengbin Zheng [Mon, 25 Mar 2002 00:31:59 +0000 (00:31 +0000)]
change traceCommonInit to static.

19 years agoCorrected CkAssert(). This did not compile without
Orion Lawlor [Sun, 24 Mar 2002 17:22:34 +0000 (17:22 +0000)]
Corrected CkAssert().  This did not compile without
CMK_OPTIMIZE (which preprocesses away the assert).

19 years agoremoved unused myid.
Gengbin Zheng [Sun, 24 Mar 2002 04:28:16 +0000 (04:28 +0000)]
removed unused myid.

19 years agouse some const and &
Gengbin Zheng [Sun, 24 Mar 2002 03:52:52 +0000 (03:52 +0000)]
use some const and &

19 years agorunningObj in LBDB now is an integer, this saves another copy of LDObjHandle.
Gengbin Zheng [Sun, 24 Mar 2002 01:23:36 +0000 (01:23 +0000)]
runningObj in LBDB now is an integer, this saves another copy of LDObjHandle.

19 years agoa fix of const for compiler.
Gengbin Zheng [Sun, 24 Mar 2002 00:50:24 +0000 (00:50 +0000)]
a fix of const for compiler.

19 years agoreduced runtime stat collection overhead dramatically.
Gengbin Zheng [Sat, 23 Mar 2002 18:58:21 +0000 (18:58 +0000)]
reduced runtime stat collection overhead dramatically.

19 years agouse inline.
Gengbin Zheng [Sat, 23 Mar 2002 01:05:54 +0000 (01:05 +0000)]
use inline.

19 years agoMore updated. Almost working.
Joshua Unger [Fri, 22 Mar 2002 21:58:39 +0000 (21:58 +0000)]
More updated.  Almost working.

19 years agoEliminated CkGetGroupID API routine.
Orion Lawlor [Fri, 22 Mar 2002 20:44:31 +0000 (20:44 +0000)]
Eliminated CkGetGroupID API routine.

19 years agoRemoved _currentChare and _currentChareType global variables.
Orion Lawlor [Fri, 22 Mar 2002 20:43:55 +0000 (20:43 +0000)]
Removed _currentChare and _currentChareType global variables.
This means the old API routines CkGetChareID and CkGetGroupID
are no longer supported.  _currentGroup still does exist,
but it is only used by the group constructor.

The correct way to get your own ID is to use "thishandle"
or the CkGetChareID *member* function.

19 years agoFix memory leak-- when allocating a (nonmigratable) stack on the
Orion Lawlor [Fri, 22 Mar 2002 20:41:40 +0000 (20:41 +0000)]
Fix memory leak-- when allocating a (nonmigratable) stack on the
heap at an aligned boundary, it gets stored in CthThread->stack
instead of CthThread->base.stack.  Thus the stack isn't automatically
freed by the base class when the thread is deleted, so we have to
free it ourselves.

19 years agoChanges for (cursed) Solaris CC compiler:
Orion Lawlor [Fri, 22 Mar 2002 18:02:24 +0000 (18:02 +0000)]
Changes for (cursed) Solaris CC compiler:
-Moved templated operator|'s inside CkPupVec classes.
Having the operator|'s defined outside the classes made
Solaris CC 5.0 think they were ambiguous; it's happy with
the same operators inside the classes (!).

-Changed "len" to "l".  "len" is the name of a (private)
member of the superclass, and Solaris CC gets annoyed when
the children re-use the name ("Warning: len hides CkVec::len").

19 years agoHave to *copy* listenerData fields, because constructors
Orion Lawlor [Fri, 22 Mar 2002 17:10:25 +0000 (17:10 +0000)]
Have to *copy* listenerData fields, because constructors
that take no message delete their message right away.

19 years agoAdded new forms for callback to use inline message delivery.
Orion Lawlor [Thu, 21 Mar 2002 21:43:10 +0000 (21:43 +0000)]
Added new forms for callback to use inline message delivery.

19 years agoAdded support for "Inline" message sends, where we skip
Orion Lawlor [Thu, 21 Mar 2002 21:42:35 +0000 (21:42 +0000)]
Added support for "Inline" message sends, where we skip
the queue and just call the method directly.

This involves some minor refactoring (split out _deliver
from _process routines); but shouldn't change existing
message semantics.

19 years agoAdded implementation for inlined array message send, which amounts
Orion Lawlor [Thu, 21 Mar 2002 21:40:50 +0000 (21:40 +0000)]
Added implementation for inlined array message send, which amounts
to using "deliver" instead of "deliverViaQueue".

19 years agoAdded prototypes for "Inline" forms of CkSendMsg.
Orion Lawlor [Thu, 21 Mar 2002 21:40:00 +0000 (21:40 +0000)]
Added prototypes for "Inline" forms of CkSendMsg.

19 years agoAdded support for performance counter tracking.
Joshua Unger [Thu, 21 Mar 2002 18:11:56 +0000 (18:11 +0000)]
Added support for performance counter tracking.