charm.git
18 years agoJust pass first 3 nodes of 6-node triangles.
Orion Lawlor [Fri, 20 Jun 2003 19:40:33 +0000 (19:40 +0000)]
Just pass first 3 nodes of 6-node triangles.

18 years agoAdded calls to NetFEM.
Orion Lawlor [Fri, 20 Jun 2003 19:18:21 +0000 (19:18 +0000)]
Added calls to NetFEM.

18 years agoAdded "field" versions of NetFEM calls.
Orion Lawlor [Fri, 20 Jun 2003 19:17:51 +0000 (19:17 +0000)]
Added "field" versions of NetFEM calls.

18 years agoAdded netfem manual.
Orion Lawlor [Fri, 20 Jun 2003 19:02:17 +0000 (19:02 +0000)]
Added netfem manual.

18 years agoWrote the NetFEM manual.
Orion Lawlor [Fri, 20 Jun 2003 19:01:49 +0000 (19:01 +0000)]
Wrote the NetFEM manual.

18 years agoreimplemented CheckSocketsReady() - removing duplicate code, solving thread safe...
Gengbin Zheng [Thu, 19 Jun 2003 05:22:37 +0000 (05:22 +0000)]
reimplemented CheckSocketsReady() - removing duplicate code, solving thread safe problem and make both poll and select methods working with SMP. Due to the fact that the fd array for poll() is of size of numNodes and it has to be put as stack variable for threadsafe reason, so for SMP version, I made it switch to select method in conv-mach-tcp.h only in SMP version.

18 years agomodified to work for smp version too, fixed some race condition bugs.
Gengbin Zheng [Wed, 18 Jun 2003 18:20:01 +0000 (18:20 +0000)]
modified to work for smp version too, fixed some race condition bugs.

18 years agoBring proxy's index_t, local_t, proxy_t (etc.) typedefs
Orion Lawlor [Tue, 17 Jun 2003 22:36:20 +0000 (22:36 +0000)]
Bring proxy's index_t, local_t, proxy_t (etc.) typedefs
into CBase.  This lets people say, e.g.,
CkCallback cb(index_t::foo(),thisProxy);
Where "index_t" really means CkIndex_myClass.

18 years agoAdded index_t, local_t, proxy_t, and element_t typedefs.
Orion Lawlor [Tue, 17 Jun 2003 22:34:56 +0000 (22:34 +0000)]
Added index_t, local_t, proxy_t, and element_t typedefs.
These can be useful for templated classes, so you can, e.g.,

template <class T>
void foo(T &t) {
T::proxy_t tProxy=t.thisProxy;
}

The basic problem is that you can't get from T to CProxy_T
in a template, so we have these typedefs.

18 years agoBack out Chao's latest changes-- they just don't work yet.
Orion Lawlor [Tue, 17 Jun 2003 20:56:38 +0000 (20:56 +0000)]
Back out Chao's latest changes-- they just don't work yet.

18 years agoTwo fixes for the (broken) IBM AIX compiler:
Orion Lawlor [Tue, 17 Jun 2003 16:09:32 +0000 (16:09 +0000)]
Two fixes for the (broken) IBM AIX compiler:
1.) Add "typename" to all templated names, like std::vector<T>

2.) Add a separate specialization for operator| and std::string,
because it can't figure out how to specialize std::basic_string<T>.

18 years agoAdd support for multiple alltoall requests.
Chao Huang [Tue, 17 Jun 2003 08:15:39 +0000 (08:15 +0000)]
Add support for multiple alltoall requests.

18 years agoundo my previous change. NodeAllBarrier() will wait all threads including comm. threa...
Gengbin Zheng [Tue, 17 Jun 2003 04:23:39 +0000 (04:23 +0000)]
undo my previous change. NodeAllBarrier() will wait all threads including comm. thread. The confusion was that net-win32 actually was implemented as smp version, and I mistakenly modified NodeAllBarrier() thinking that it should only have one thread per node.

18 years agoin syncprint mode, make sure comm_lock is held all the time until "printdone" received.
Gengbin Zheng [Tue, 17 Jun 2003 04:19:39 +0000 (04:19 +0000)]
in syncprint mode, make sure comm_lock is held all the time until "printdone" received.

18 years agoadd one more CmiNodeAllBarrier() to make net-win32-smp working.
Gengbin Zheng [Tue, 17 Jun 2003 04:18:20 +0000 (04:18 +0000)]
add one more CmiNodeAllBarrier() to make net-win32-smp working.

18 years agofixed c++ comments in c header.
Gengbin Zheng [Tue, 17 Jun 2003 00:09:24 +0000 (00:09 +0000)]
fixed c++ comments in c header.

18 years agosmp version for net-cygwin.
Gengbin Zheng [Mon, 16 Jun 2003 23:45:29 +0000 (23:45 +0000)]
smp version for net-cygwin.

18 years agofixed a bug of using C++ variable declaration in C program.
Gengbin Zheng [Mon, 16 Jun 2003 23:36:24 +0000 (23:36 +0000)]
fixed a bug of using C++ variable declaration in C program.

18 years agofixed redefinition of "i" compiler error.
Gengbin Zheng [Mon, 16 Jun 2003 18:51:20 +0000 (18:51 +0000)]
fixed redefinition of "i" compiler error.

18 years agoalso destory mutex for node barrier.
Gengbin Zheng [Mon, 16 Jun 2003 07:47:01 +0000 (07:47 +0000)]
also destory mutex for node barrier.

18 years agoadded "+giga" option for tuned network parameter for gigabit ethernet.
Gengbin Zheng [Mon, 16 Jun 2003 07:34:57 +0000 (07:34 +0000)]
added "+giga" option for tuned network parameter for gigabit ethernet.

18 years agoadded macro for resetting ccd check counter (CsdResetPeriodic), and call it after...
Gengbin Zheng [Mon, 16 Jun 2003 05:09:39 +0000 (05:09 +0000)]
added macro for resetting ccd check counter (CsdResetPeriodic), and call it after a worker thread is awakened after idle sleep.

18 years agofixed bugs that caused unclean shutdown of program in smp version. It appears that...
Gengbin Zheng [Mon, 16 Jun 2003 05:06:05 +0000 (05:06 +0000)]
fixed bugs that caused unclean shutdown of program in smp version. It appears that some threads hang waiting for locks. Deleting locks and disable them seems to fix the bug.

18 years agoadded -Wno-deprecated.
Gengbin Zheng [Mon, 16 Jun 2003 05:02:08 +0000 (05:02 +0000)]
added -Wno-deprecated.

18 years agoupdated due to new file CentralLBMsg.h.
Gengbin Zheng [Sun, 15 Jun 2003 17:19:11 +0000 (17:19 +0000)]
updated due to new file CentralLBMsg.h.

18 years agoin ReceiveStats(), use parameter marshalling instead of varsize message. This allows...
Gengbin Zheng [Sun, 15 Jun 2003 17:18:25 +0000 (17:18 +0000)]
in ReceiveStats(), use parameter marshalling instead of varsize message. This allows me to do more complicated things in load data structure later using pup.
also removed some obsolete code for backword compatibilty in simulation mode.

18 years agoin function DO(), calling eval $*, instead of $* directly to allow args being read...
Gengbin Zheng [Sun, 15 Jun 2003 05:29:18 +0000 (05:29 +0000)]
in function DO(), calling eval $*, instead of $* directly to allow args being  read and concatenated together into a  single command with special charater being interpreted.

18 years agosame change for LD, considering merging these same paramters for a same platform...
Gengbin Zheng [Sun, 15 Jun 2003 05:25:23 +0000 (05:25 +0000)]
same change for LD, considering merging these same paramters for a same platform later.

18 years agosame change for LD.
Gengbin Zheng [Sun, 15 Jun 2003 05:24:01 +0000 (05:24 +0000)]
same change for LD.

18 years agoin LD, added -expect_unresolved '*' to suppress all tedious warnings for unresolved...
Gengbin Zheng [Sun, 15 Jun 2003 05:23:05 +0000 (05:23 +0000)]
in LD, added -expect_unresolved '*' to suppress all tedious warnings for unresolved symbols when building a so.

18 years agomake load data and comm data pup by bytes.
Gengbin Zheng [Sat, 14 Jun 2003 19:30:54 +0000 (19:30 +0000)]
make load data and comm data pup by bytes.

18 years agoturn on some debugging info printout.
Gengbin Zheng [Sat, 14 Jun 2003 19:30:26 +0000 (19:30 +0000)]
turn on some debugging info printout.

18 years agoextended .ci, added new keyword constrcut "include", for example:
Gengbin Zheng [Sat, 14 Jun 2003 17:52:52 +0000 (17:52 +0000)]
extended .ci, added new keyword constrcut "include", for example:
include "foo.h";
This is to allow the decl file include some user header file that resolve the type definition in entry functions.

18 years agofixed a bug for "missing .idx file"
Chao Huang [Fri, 13 Jun 2003 21:54:10 +0000 (21:54 +0000)]
fixed a bug for "missing .idx file"

18 years agofixed compilation.
Gengbin Zheng [Fri, 13 Jun 2003 21:13:29 +0000 (21:13 +0000)]
fixed compilation.

18 years agoprint out glibc version.
Gengbin Zheng [Fri, 13 Jun 2003 20:03:01 +0000 (20:03 +0000)]
print out glibc version.

18 years agofixed mask() which seemed to shift out of boundry;
Gengbin Zheng [Fri, 13 Jun 2003 17:33:02 +0000 (17:33 +0000)]
fixed mask() which seemed to shift out of boundry;
also use CmiUInt4 instead of uinteger because it is not portable.

18 years ago_getGroupIdx() use a bit operation to make a negative number which is not portable...
Gengbin Zheng [Fri, 13 Jun 2003 17:30:19 +0000 (17:30 +0000)]
_getGroupIdx() use a bit operation to make a negative number which is not portable in case of 64 bits integer. Fixed by just applying a minus operator.

18 years agominor change - when in C++ mode, declare envelop as class instead of typedef struct.
Gengbin Zheng [Fri, 13 Jun 2003 05:57:02 +0000 (05:57 +0000)]
minor change - when in C++ mode, declare envelop as class instead of typedef struct.

18 years agoremove header files of charm++.h and conv-common.h since they failed the compilation...
Gengbin Zheng [Thu, 12 Jun 2003 21:21:57 +0000 (21:21 +0000)]
remove header files of charm++.h and conv-common.h since they failed the compilation of Converse program.

18 years agochange CkPupMessage so that it can skip NULL message.
Gengbin Zheng [Thu, 12 Jun 2003 20:23:23 +0000 (20:23 +0000)]
change CkPupMessage so that it can skip NULL message.

18 years agoturned off building shared lib because it is not supported .
Gengbin Zheng [Thu, 12 Jun 2003 18:12:17 +0000 (18:12 +0000)]
turned off building shared lib because it is not supported .

18 years agousing CMK_SMP.
Gengbin Zheng [Thu, 12 Jun 2003 17:57:03 +0000 (17:57 +0000)]
using CMK_SMP.

18 years agochanged to be using CMK_SMP.
Gengbin Zheng [Thu, 12 Jun 2003 17:55:20 +0000 (17:55 +0000)]
changed to be using CMK_SMP.

18 years agochanged to CMK_SMP from CMK_CPV_IS_SMP
Gengbin Zheng [Thu, 12 Jun 2003 17:54:41 +0000 (17:54 +0000)]
changed to CMK_SMP from CMK_CPV_IS_SMP

18 years agoswitch to CMK_SMP for smp version.
Gengbin Zheng [Thu, 12 Jun 2003 17:32:23 +0000 (17:32 +0000)]
switch to CMK_SMP for smp version.

18 years agodefine uniform CM_SMP for all smp supported version, instead of using CMK_CPV_IS_SMP...
Gengbin Zheng [Thu, 12 Jun 2003 17:31:46 +0000 (17:31 +0000)]
define uniform CM_SMP for all smp supported version, instead of using CMK_CPV_IS_SMP, this is because even non-smp version can use a smp-like Cpv.

18 years agoCmiNodeAllBarrier can also be called in a non-smp version e.g. net-win32
Gengbin Zheng [Wed, 11 Jun 2003 06:25:11 +0000 (06:25 +0000)]
CmiNodeAllBarrier can also be called in a non-smp version e.g. net-win32
and this (waiting for mynodesize+1) can hang the program running on windows.

18 years agorefixed my previous fix.
Gengbin Zheng [Tue, 10 Jun 2003 21:14:13 +0000 (21:14 +0000)]
refixed my previous fix.

18 years agoturned off deltaLog until it works in projection java.
Gengbin Zheng [Tue, 10 Jun 2003 20:42:27 +0000 (20:42 +0000)]
turned off deltaLog until it works in projection java.

18 years agofixed CmiGetState in the case of CMK_OPTIMIZE on, it return NULL during startup.
Gengbin Zheng [Tue, 10 Jun 2003 03:30:57 +0000 (03:30 +0000)]
fixed CmiGetState in the case of CMK_OPTIMIZE on, it return NULL during startup.

18 years agoadded --no-shared to turn of -build-shared option.
Gengbin Zheng [Mon, 9 Jun 2003 16:13:06 +0000 (16:13 +0000)]
added --no-shared to turn of -build-shared option.

18 years agoremoved wrong [immediate].
Gengbin Zheng [Mon, 9 Jun 2003 06:30:17 +0000 (06:30 +0000)]
removed wrong [immediate].

18 years agoerror checking to make sure only nodegroup takes [immediate]
Gengbin Zheng [Mon, 9 Jun 2003 06:29:01 +0000 (06:29 +0000)]
error checking to make sure only nodegroup takes [immediate]

18 years agoadded CmiAssert() for the handler function pointer in CMiHandleImmediateMessage.
Gengbin Zheng [Sat, 7 Jun 2003 16:10:37 +0000 (16:10 +0000)]
added CmiAssert() for the handler function pointer in CMiHandleImmediateMessage.

18 years agocall initcall on communication thread also since CmiHandler is per processor, and...
Gengbin Zheng [Sat, 7 Jun 2003 16:09:38 +0000 (16:09 +0000)]
call initcall on communication thread also since CmiHandler is per processor, and immediate handler is using the handler table of the comm. thread itself.

18 years agodefine CmiImmIsRunning() only when CMK_IMMEDIATE_MSG is true.
Gengbin Zheng [Sat, 7 Jun 2003 03:48:16 +0000 (03:48 +0000)]
define CmiImmIsRunning() only when CMK_IMMEDIATE_MSG is true.

18 years agodefine CmiImmIsRunning in both cases when CMK_IMMEDIATEMSG is set or not.
Gengbin Zheng [Sat, 7 Jun 2003 03:47:38 +0000 (03:47 +0000)]
define CmiImmIsRunning in both cases when CMK_IMMEDIATEMSG is set or not.

18 years agoa small fix.
Gengbin Zheng [Sat, 7 Jun 2003 03:46:36 +0000 (03:46 +0000)]
a small fix.

18 years agomsgPool get/put is not thread/sigio safe.
Gengbin Zheng [Sat, 7 Jun 2003 03:41:18 +0000 (03:41 +0000)]
msgPool get/put is not thread/sigio safe.

18 years agoremove CMK_IMMEDIATE_MSG macros and define CmiImmIsRunning as macro.
Gengbin Zheng [Sat, 7 Jun 2003 03:40:44 +0000 (03:40 +0000)]
remove CMK_IMMEDIATE_MSG macros and define CmiImmIsRunning as macro.

18 years agochanged // in C.
Gengbin Zheng [Fri, 6 Jun 2003 18:51:32 +0000 (18:51 +0000)]
changed // in C.

18 years agofixed // comment in C.
Gengbin Zheng [Fri, 6 Jun 2003 18:43:30 +0000 (18:43 +0000)]
fixed // comment in C.

18 years agoset CMK_STACK_GROWUNKNOWN to 1 since I cannot test if context works on t3e or not.
Gengbin Zheng [Fri, 6 Jun 2003 18:41:04 +0000 (18:41 +0000)]
set CMK_STACK_GROWUNKNOWN to 1 since I cannot test if context works on t3e or not.
This is for Lee at Cray to test.

18 years agoalso symbolic link lib_so
Gengbin Zheng [Fri, 6 Jun 2003 15:39:45 +0000 (15:39 +0000)]
also symbolic link lib_so

18 years agoupdated to ibe able to compile genx.
Gengbin Zheng [Fri, 6 Jun 2003 07:31:13 +0000 (07:31 +0000)]
updated to ibe able to compile genx.

18 years agocalling skt_set_abort(net_default_skt_abort), using net_default_skt_abort which basic...
Gengbin Zheng [Fri, 6 Jun 2003 04:14:21 +0000 (04:14 +0000)]
calling skt_set_abort(net_default_skt_abort), using net_default_skt_abort which basically tells atexit_check that it is initiated by Charm and prevent CmiAbort again. This appears to fix some runaway processes bug.

18 years agodefine function CmiIsImmRunning()
Gengbin Zheng [Fri, 6 Jun 2003 04:12:02 +0000 (04:12 +0000)]
define function CmiIsImmRunning()

18 years agodeclare CmiIsImmRunning()
Gengbin Zheng [Fri, 6 Jun 2003 04:10:44 +0000 (04:10 +0000)]
declare CmiIsImmRunning()

18 years agoskip CsdEnqueueGeneral if immediate handler is running because it is not thread or...
Gengbin Zheng [Fri, 6 Jun 2003 04:10:09 +0000 (04:10 +0000)]
skip CsdEnqueueGeneral if immediate handler is running because it is not thread or sigio safe.

18 years agofixed a possible race condition for the node msg queue in _processForNodeBocMsg.
Gengbin Zheng [Fri, 6 Jun 2003 03:37:18 +0000 (03:37 +0000)]
fixed a possible race condition for the node msg queue in _processForNodeBocMsg.

18 years agofor immediate message, the rank 0 reads comm thread's qd and it should update its...
Gengbin Zheng [Fri, 6 Jun 2003 03:33:13 +0000 (03:33 +0000)]
for immediate message, the rank 0 reads comm thread's qd and it should update its own counters.

18 years agomake CHARMLIBSO an absolute path to be used in rpath.
Gengbin Zheng [Fri, 6 Jun 2003 00:42:06 +0000 (00:42 +0000)]
make CHARMLIBSO an absolute path to be used in rpath.

18 years agodefine CMK_NET_VERSION for net version.
Gengbin Zheng [Thu, 5 Jun 2003 23:09:28 +0000 (23:09 +0000)]
define CMK_NET_VERSION for net version.

18 years agoput() around lock in CmiLock() to prevent some weird things happen.
Gengbin Zheng [Thu, 5 Jun 2003 17:33:21 +0000 (17:33 +0000)]
put() around lock in CmiLock() to prevent some weird things happen.

18 years agomake gcc more general.
Gengbin Zheng [Thu, 5 Jun 2003 07:27:24 +0000 (07:27 +0000)]
make gcc more general.

18 years agofixed a bug that caused --basedir== didn't work.
Gengbin Zheng [Thu, 5 Jun 2003 07:26:54 +0000 (07:26 +0000)]
fixed a bug that caused --basedir== didn't work.

18 years agoremove tracebluegene from traces when trace closed.
Gengbin Zheng [Tue, 3 Jun 2003 23:34:28 +0000 (23:34 +0000)]
remove tracebluegene from traces when trace closed.

18 years agocomment out traceCharmClose() to prevent it from reentrant.
Gengbin Zheng [Tue, 3 Jun 2003 23:31:02 +0000 (23:31 +0000)]
comment out traceCharmClose() to prevent it from reentrant.

18 years agoupdated.
Gengbin Zheng [Tue, 3 Jun 2003 04:18:55 +0000 (04:18 +0000)]
updated.

18 years agodefine CMK_LD_LIBRARY_PATH to point to lib_so, also by default it need to use pthread...
Gengbin Zheng [Tue, 3 Jun 2003 03:59:19 +0000 (03:59 +0000)]
define CMK_LD_LIBRARY_PATH to point to lib_so, also by default it need to use pthreads implementation of user threads, since getcontext is not implemented in this old Linux and QT doesnot work with dynamic charm.

18 years agomodified.
Gengbin Zheng [Mon, 2 Jun 2003 17:26:56 +0000 (17:26 +0000)]
modified.

18 years agoadded target bgampi to compile both bluegene and AMPI.
Gengbin Zheng [Mon, 2 Jun 2003 07:21:36 +0000 (07:21 +0000)]
added target bgampi to compile both bluegene and AMPI.

18 years agoupdated blue gene manual
Gengbin Zheng [Mon, 2 Jun 2003 07:14:21 +0000 (07:14 +0000)]
updated blue gene manual

18 years agocleaned some leftovers.
Gengbin Zheng [Mon, 2 Jun 2003 00:14:58 +0000 (00:14 +0000)]
cleaned some leftovers.

18 years agochanged initcall
Gengbin Zheng [Sun, 1 Jun 2003 23:44:19 +0000 (23:44 +0000)]
changed initcall

18 years agoremoved "-makelibcharm", stop creating bizarre libfoo.dir's.
Gengbin Zheng [Sun, 1 Jun 2003 23:35:15 +0000 (23:35 +0000)]
removed "-makelibcharm", stop creating bizarre libfoo.dir's.

18 years agoset CMK_LD_SHARED_THREAD = context, since qt doesnot work with dynamic charm.
Gengbin Zheng [Sun, 1 Jun 2003 23:22:18 +0000 (23:22 +0000)]
set CMK_LD_SHARED_THREAD = context, since qt doesnot work with dynamic charm.

18 years agoignoring errors when building libthreads-pthread.
Gengbin Zheng [Sun, 1 Jun 2003 23:10:49 +0000 (23:10 +0000)]
ignoring errors when building libthreads-pthread.

18 years agoupdated for initnode and initproc.
Gengbin Zheng [Sun, 1 Jun 2003 22:41:15 +0000 (22:41 +0000)]
updated for initnode and initproc.

18 years agodefine CMK_LD_SHARED_THREAD to "context", QT doesnot work when charm is dynamically...
Gengbin Zheng [Sun, 1 Jun 2003 22:22:07 +0000 (22:22 +0000)]
define CMK_LD_SHARED_THREAD to "context", QT doesnot work when charm is dynamically linked.

18 years agodefine macros to allow Makefile to compile it into different .o based on different...
Gengbin Zheng [Sun, 1 Jun 2003 22:19:52 +0000 (22:19 +0000)]
define macros to allow Makefile to compile it into different .o based on different implementation. Fixed pthread compilation errors too.

18 years agocompiled threads.c into different .o (similar to memory.c), which including qt, conte...
Gengbin Zheng [Sun, 1 Jun 2003 22:17:18 +0000 (22:17 +0000)]
compiled threads.c into different .o (similar to memory.c), which including qt, context, pthreads and fibers. added "-thread" option to charmc to allow choosing thread mode at compile time.

18 years agodefine CMK_LD_SHARED_THREAD to context to use context implementation of converse...
Gengbin Zheng [Sun, 1 Jun 2003 22:12:12 +0000 (22:12 +0000)]
define CMK_LD_SHARED_THREAD to context to use context implementation of converse threads.

18 years agoinitcall => initnode.
Gengbin Zheng [Sat, 31 May 2003 23:42:31 +0000 (23:42 +0000)]
initcall => initnode.

18 years agoadded -lhC to CMK_LIBS
Gengbin Zheng [Sat, 31 May 2003 23:37:15 +0000 (23:37 +0000)]
added -lhC to CMK_LIBS

18 years agoadded CmiNodeAllBarrier() before calling initcalls. This is needed because otherwise...
Gengbin Zheng [Sat, 31 May 2003 23:07:02 +0000 (23:07 +0000)]
added CmiNodeAllBarrier() before calling initcalls. This is needed because otherwise other thread may try to enumerate initcalls before it is registered in rank 0 processor.
All these changes(today) for initnode & initproc fixed the bug of not being able to run AMPI program on SMP version.

18 years ago if no build share is set, exit normally
Gengbin Zheng [Sat, 31 May 2003 20:58:40 +0000 (20:58 +0000)]
 if no build share is set, exit normally

18 years agoupdate initcall; changed name libmoduleampi-compat.a to libampi-compat.a
Gengbin Zheng [Sat, 31 May 2003 20:56:24 +0000 (20:56 +0000)]
update initcall; changed name libmoduleampi-compat.a to libampi-compat.a

18 years agoupdate initcall; make libmodulefem-compat.a shorter to libfem-compat.a
Gengbin Zheng [Sat, 31 May 2003 20:54:58 +0000 (20:54 +0000)]
update initcall; make libmodulefem-compat.a shorter to libfem-compat.a