charm.git
19 years agoprojector files
Arun Singla [Fri, 26 Apr 2002 21:53:53 +0000 (21:53 +0000)]
projector files

19 years agomade to run on lemieux.
Milind Bhandarkar [Fri, 26 Apr 2002 21:48:16 +0000 (21:48 +0000)]
made to run on lemieux.

19 years agoadded non-functional elan version. compiles but does not run.
Milind Bhandarkar [Fri, 26 Apr 2002 19:11:08 +0000 (19:11 +0000)]
added non-functional elan version. compiles but does not run.

19 years agofixed a bug after reorgnization it fail to detect the common options in net/ and...
Gengbin Zheng [Thu, 25 Apr 2002 22:47:16 +0000 (22:47 +0000)]
fixed a bug after reorgnization it fail to detect the common options in net/ and mpi/

19 years agoFix for ASCI Red.
Orion Lawlor [Thu, 25 Apr 2002 20:55:06 +0000 (20:55 +0000)]
Fix for ASCI Red.

19 years agoCopy mpiCC scripts to bin/. Also copy ampi.h to mpi.h in include dir.
Orion Lawlor [Thu, 25 Apr 2002 19:57:18 +0000 (19:57 +0000)]
Copy mpiCC scripts to bin/.  Also copy ampi.h to mpi.h in include dir.

19 years agoAdded trivial implementation of MPI_Error_string and MPI_Bsend.
Orion Lawlor [Thu, 25 Apr 2002 19:56:51 +0000 (19:56 +0000)]
Added trivial implementation of MPI_Error_string and MPI_Bsend.
Also map user's "main" routine to "MPI_Main".

19 years agoSimple wrappers around charmc. These make AMPI makefile-compatible
Orion Lawlor [Thu, 25 Apr 2002 19:56:15 +0000 (19:56 +0000)]
Simple wrappers around charmc.  These make AMPI makefile-compatible
with regular MPI.

19 years ago*** empty log message ***
Sameer Kumar [Thu, 25 Apr 2002 18:34:09 +0000 (18:34 +0000)]
*** empty log message ***

19 years agoMinor updates.
Orion Lawlor [Tue, 23 Apr 2002 19:39:10 +0000 (19:39 +0000)]
Minor updates.

19 years agoMinor changes to make map work with new "Layout" hashtables.
Orion Lawlor [Tue, 23 Apr 2002 19:32:11 +0000 (19:32 +0000)]
Minor changes to make map work with new "Layout" hashtables.

19 years agoGeneralized memory layout for hashtable entry. This is needed
Orion Lawlor [Tue, 23 Apr 2002 19:31:26 +0000 (19:31 +0000)]
Generalized memory layout for hashtable entry.  This is needed
because some machines have restictive requirements on alignment,
so if, e.g., key is "int" and object is "double", we need a 4-byte
gap between the key and object to keep the object field double-aligned.

Without the gap, user code crashes with a confusing SIGBUS.

Also removed ancient, silly hack that "key==-17 -> empty entry".
This saved one byte, but of course silently failed if key actually
*is* -17.  With the alignment problems above fixed, adding an
"empty bit" is pretty cheap and certainly the right thing to do.

In the long run, it may be better to just scrap the typeless
CkHashtable implementation and restrict ourselves to CkHashtableT.
This would let the compiler do *all* the memory layout.

19 years agoprojector files
Arun Singla [Tue, 23 Apr 2002 17:35:22 +0000 (17:35 +0000)]
projector files

19 years agoMoved commRec::share to top level. This prevents a bizarre
Orion Lawlor [Mon, 22 Apr 2002 22:30:28 +0000 (22:30 +0000)]
Moved commRec::share to top level.  This prevents a bizarre
compiler error on the Origin2000:

A specific definition of an inline template function must precede its first
          use.

  PUPmarshall(commRec::share);

19 years agoCorrected silly gnu-ism (variable size stack-allocated arrays).
Orion Lawlor [Mon, 22 Apr 2002 20:35:59 +0000 (20:35 +0000)]
Corrected silly gnu-ism (variable size stack-allocated arrays).
Enlarged test problem size-- makes a better test.
Got rid of Exchange_Ghost_Lists call (somebody needs to fix or remove it).

19 years agoMoved inline method declaration out to global scope.
Orion Lawlor [Mon, 22 Apr 2002 20:28:28 +0000 (20:28 +0000)]
Moved inline method declaration out to global scope.
This fixes a "static function not available" error under
the Solaris 5.0 CC.

19 years agoAdded #ifdefs for use on platforms without the node queue,
Orion Lawlor [Fri, 19 Apr 2002 16:19:44 +0000 (16:19 +0000)]
Added #ifdefs for use on platforms without the node queue,
like net-linux (non-smp).

19 years agoAdded debugging printouts.
Orion Lawlor [Thu, 18 Apr 2002 23:21:02 +0000 (23:21 +0000)]
Added debugging printouts.

19 years agoAddede MACHSTATE4, since I needed 4 parameters for a printout.
Orion Lawlor [Thu, 18 Apr 2002 23:20:25 +0000 (23:20 +0000)]
Addede MACHSTATE4, since I needed 4 parameters for a printout.

19 years agoAdded more verbose debugging printouts. As usual, they're only
Orion Lawlor [Thu, 18 Apr 2002 23:19:53 +0000 (23:19 +0000)]
Added more verbose debugging printouts.  As usual, they're only
enabled by editing machine.h.

19 years agoAdded CmiPushNode call, to improve node message performance on SMP's.
Orion Lawlor [Thu, 18 Apr 2002 23:18:49 +0000 (23:18 +0000)]
Added CmiPushNode call, to improve node message performance on SMP's.

19 years agoAdded CmiPushNode, which wakes up a sleeping processor in addition to
Orion Lawlor [Thu, 18 Apr 2002 23:18:02 +0000 (23:18 +0000)]
Added CmiPushNode, which wakes up a sleeping processor in addition to
pushing into the node queue.  This avoids the situation where, on
the SMP version, a node message would arrive, but all the processors
would be sleeping in their idle locks.

This change improves the performance of node messages under SMP mode
dramatically.

19 years agoSilly bug-- used node number where should have used processor number.
Orion Lawlor [Thu, 18 Apr 2002 23:15:27 +0000 (23:15 +0000)]
Silly bug-- used node number where should have used processor number.
Of course, this only matters on the SMP version, which is (apparently)
*very* rarely tested!

19 years agoFixed file inclusion of separated files.
Milind Bhandarkar [Thu, 18 Apr 2002 05:55:15 +0000 (05:55 +0000)]
Fixed file inclusion of separated files.

19 years agoprojector files !! preliminary tracing works
Arun Singla [Wed, 17 Apr 2002 21:49:29 +0000 (21:49 +0000)]
projector files !! preliminary tracing works

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.