charm.git
9 years agoTry using nested template args for EP templates. Just a sanity check
Ramprasad Venkataraman [Fri, 30 Mar 2012 19:18:37 +0000 (14:18 -0500)]
Try using nested template args for EP templates. Just a sanity check

9 years agoTest generated code for entry method template declarations
Ramprasad Venkataraman [Fri, 30 Mar 2012 02:57:48 +0000 (21:57 -0500)]
Test generated code for entry method template declarations

9 years agocharmxi: Parse entry method template declarations in .ci and emit accordingly
Phil Miller [Fri, 30 Mar 2012 01:50:40 +0000 (20:50 -0500)]
charmxi: Parse entry method template declarations in .ci and emit accordingly

All of the generated code in .decl.h/.def.h files are templated
according to whether the corresponding entry method is templated.
Push #ifdef CK_TEMPLATES_ONLY down to each element, so it can switch
on whether it's templated or not.

No syntactic support for instantiating entry method templates yet,
though it can be done manually.

9 years agoreplacing MPI_COMM_WORLD with charmComm on mpi layer
Nikhil Jain [Thu, 5 Apr 2012 18:02:57 +0000 (13:02 -0500)]
replacing MPI_COMM_WORLD with charmComm on mpi layer

9 years agoadd fttest rule
Gengbin Zheng [Thu, 5 Apr 2012 17:55:45 +0000 (12:55 -0500)]
add fttest rule

9 years agoMerge branch 'charm' of charmgit:charm into charm
Yanhua Sun [Thu, 5 Apr 2012 17:51:09 +0000 (12:51 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agosplit RDMA queue, pooling persistent more often
Yanhua Sun [Thu, 5 Apr 2012 17:51:02 +0000 (12:51 -0500)]
split RDMA queue, pooling persistent more often

9 years agoChanging fault tolerance test cases to include message logging.
Esteban Meneses [Thu, 5 Apr 2012 17:25:28 +0000 (12:25 -0500)]
Changing fault tolerance test cases to include message logging.

9 years agoAdding flag for message logging.
Esteban Meneses [Thu, 5 Apr 2012 17:11:50 +0000 (12:11 -0500)]
Adding flag for message logging.

9 years agoBug fix. Avoiding the use of a null pointer when migration constructor is used.
Esteban Meneses [Thu, 5 Apr 2012 16:32:53 +0000 (11:32 -0500)]
Bug fix. Avoiding the use of a null pointer when migration constructor is used.

9 years agominor clean up
Gengbin Zheng [Wed, 4 Apr 2012 22:59:44 +0000 (17:59 -0500)]
minor clean up

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Wed, 4 Apr 2012 22:41:54 +0000 (17:41 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agofix an issue with MULTI_SEND
Gengbin Zheng [Wed, 4 Apr 2012 22:41:35 +0000 (17:41 -0500)]
fix an issue with MULTI_SEND

9 years agoBug fix. The _currentObj global variable was not being updated during reduction and...
Esteban Meneses [Wed, 4 Apr 2012 20:58:23 +0000 (15:58 -0500)]
Bug fix. The _currentObj global variable was not being updated during reduction and the wrong sender object was being reported in message logging protocols.

9 years agoNDMeshStreamer: bug fix to the changes just checked in
Lukasz Wesolowski [Wed, 4 Apr 2012 19:58:57 +0000 (14:58 -0500)]
NDMeshStreamer: bug fix to the changes just checked in

9 years agoNDMeshStreamer: adding 2D client
Lukasz Wesolowski [Wed, 4 Apr 2012 19:58:08 +0000 (14:58 -0500)]
NDMeshStreamer: adding 2D client

9 years agosplit SendBufferMsg to 3 versions
Gengbin Zheng [Tue, 3 Apr 2012 20:29:18 +0000 (15:29 -0500)]
split SendBufferMsg to 3 versions

9 years agoMerge branch 'charm' of charmgit:charm into charm
Yanhua Sun [Tue, 3 Apr 2012 20:04:03 +0000 (15:04 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agominor fix for tracing comm thread
Yanhua Sun [Tue, 3 Apr 2012 20:03:53 +0000 (15:03 -0500)]
minor fix for tracing comm thread

9 years agoprojections generate topology file.
Gengbin Zheng [Tue, 3 Apr 2012 18:14:32 +0000 (13:14 -0500)]
projections generate topology file.

9 years agoCommAwareRefineLB: VC++ doesn't like variable-sized arrays on the stack, so use std...
Phil Miller [Tue, 3 Apr 2012 14:50:15 +0000 (09:50 -0500)]
CommAwareRefineLB: VC++ doesn't like variable-sized arrays on the stack, so use std::vector instead

9 years agofix bugs in setting sendBufferMsg cap.
Gengbin Zheng [Tue, 3 Apr 2012 06:53:27 +0000 (01:53 -0500)]
fix bugs in setting sendBufferMsg cap.

9 years agoMerge branch 'charm' of charmgit:charm into charm
Yanhua Sun [Tue, 3 Apr 2012 05:24:21 +0000 (00:24 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoadded sendbuffer control
Yanhua Sun [Tue, 3 Apr 2012 05:24:10 +0000 (00:24 -0500)]
added sendbuffer control

9 years agoimprove function isCharmEnvelope
Gengbin Zheng [Tue, 3 Apr 2012 02:47:18 +0000 (21:47 -0500)]
improve function isCharmEnvelope

9 years agoNDMeshStreamer: adding support for specifying priority of streamed messages
Lukasz Wesolowski [Mon, 2 Apr 2012 22:51:22 +0000 (17:51 -0500)]
NDMeshStreamer: adding support for specifying priority of streamed messages

9 years agoMerge branch 'charm' of charmgit:charm into charm
Esteban Meneses [Mon, 2 Apr 2012 22:39:54 +0000 (17:39 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoAdding test cases for fault tolerant Charm++. These tests do not interfere with the...
Esteban Meneses [Mon, 2 Apr 2012 22:38:51 +0000 (17:38 -0500)]
Adding test cases for fault tolerant Charm++. These tests do not interfere with the regular 'make test'; in order to run them, use 'make fttest'.

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Mon, 2 Apr 2012 22:29:14 +0000 (17:29 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoimprove the function to find charm messages in projections' comm thread tracing
Gengbin Zheng [Mon, 2 Apr 2012 22:28:35 +0000 (17:28 -0500)]
improve the function to find charm messages in projections' comm thread tracing

9 years agoNDMeshStreamer: 1. bug fix - cast to base client class
Lukasz Wesolowski [Mon, 2 Apr 2012 20:39:29 +0000 (15:39 -0500)]
NDMeshStreamer: 1. bug fix - cast to base client class
                2. remove template parameter from iterator class by
                   slightly modifying interface

9 years agoNDMeshStreamer: disable caching of array location data by default since it is only
Lukasz Wesolowski [Mon, 2 Apr 2012 19:41:28 +0000 (14:41 -0500)]
NDMeshStreamer: disable caching of array location data by default since it is only
supported for 1D arrays

9 years agoNDMeshStreamer: added support for 3D chare arrays
Lukasz Wesolowski [Mon, 2 Apr 2012 19:39:25 +0000 (14:39 -0500)]
NDMeshStreamer: added support for 3D chare arrays

9 years agoallow arbitarily long fortran line of code
Gengbin Zheng [Mon, 2 Apr 2012 18:32:56 +0000 (14:32 -0400)]
allow arbitarily long fortran line of code

9 years agoMerge branch 'charm' of charmgit:charm into charm
Harshitha [Mon, 2 Apr 2012 17:24:41 +0000 (12:24 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoAdding Communication aware refinement based strategy called CommAwareRefineLB. Made...
Harshitha [Mon, 2 Apr 2012 17:24:12 +0000 (12:24 -0500)]
Adding Communication aware refinement based strategy called CommAwareRefineLB. Made RefineSwapLB and CommAwareRefineLB to be built by default

9 years agoAvoiding an additional reduction in CentralLB for message logging.
Esteban Meneses [Mon, 2 Apr 2012 17:03:12 +0000 (12:03 -0500)]
Avoiding an additional reduction in CentralLB for message logging.

9 years agofix compilation error
Gengbin Zheng [Mon, 2 Apr 2012 14:49:25 +0000 (09:49 -0500)]
fix compilation error

9 years agoget rid of memory handle in chunk header for persistent
Gengbin Zheng [Mon, 2 Apr 2012 05:51:26 +0000 (00:51 -0500)]
get rid of memory handle in chunk header for persistent
use ref counter.

9 years agofix bug in node level persistent
Gengbin Zheng [Mon, 2 Apr 2012 02:51:27 +0000 (21:51 -0500)]
fix bug in node level persistent

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Sun, 1 Apr 2012 21:45:39 +0000 (16:45 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoavoid double locking
Gengbin Zheng [Sun, 1 Apr 2012 21:45:29 +0000 (16:45 -0500)]
avoid double locking

9 years agoput mpi interpolate declaration under extern "C"
Gengbin Zheng [Sun, 1 Apr 2012 16:19:36 +0000 (11:19 -0500)]
put mpi interpolate declaration under extern "C"

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Sun, 1 Apr 2012 07:23:26 +0000 (02:23 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agopersistent threshold use smsg_max, dynamic_smsgs works now with persistent
Gengbin Zheng [Sun, 1 Apr 2012 07:15:19 +0000 (02:15 -0500)]
persistent threshold use smsg_max, dynamic_smsgs works now with persistent

9 years agofix persistent comm thread tracing using simple way
Yanhua Sun [Sun, 1 Apr 2012 06:51:31 +0000 (23:51 -0700)]
fix persistent comm thread tracing using simple way

9 years agoMerge branch 'charm' of charmgit:charm into charm
Yanhua Sun [Sun, 1 Apr 2012 05:09:08 +0000 (00:09 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agofix persistent comm thread tracing
Yanhua Sun [Sun, 1 Apr 2012 05:08:45 +0000 (00:08 -0500)]
fix persistent comm thread tracing

9 years agoMerge branch 'charm-mpi-interop' of charmgit:charm into charm
Nikhil Jain [Sat, 31 Mar 2012 23:05:38 +0000 (18:05 -0500)]
Merge branch 'charm-mpi-interop' of charmgit:charm into charm

9 years agowell, the main module I had added to ck-core conflicted with
Nikhil Jain [Sat, 31 Mar 2012 23:03:27 +0000 (18:03 -0500)]
well, the main module I had added to ck-core conflicted with
user defined mainmodule - my bad. Fixed that, also reverted changes
to charmc

9 years agoAvoiding barrier for message logging version on initCharm.
Esteban Meneses [Sat, 31 Mar 2012 22:12:07 +0000 (17:12 -0500)]
Avoiding barrier for message logging version on initCharm.

9 years agoMerge branch 'charm' of charmgit:charm into charm
Esteban Meneses [Sat, 31 Mar 2012 22:06:12 +0000 (17:06 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoAvoiding barriers in CmiTimerInit after a crash.
Esteban Meneses [Sat, 31 Mar 2012 21:56:26 +0000 (16:56 -0500)]
Avoiding barriers in CmiTimerInit after a crash.

9 years agoSeparating interoperation files, looks much cleaner now
Nikhil Jain [Sat, 31 Mar 2012 20:41:25 +0000 (15:41 -0500)]
Separating interoperation files, looks much cleaner now

9 years agoMerge branch 'charm' of charmgit:charm into charm-mpi-interop
Nikhil Jain [Sat, 31 Mar 2012 17:06:35 +0000 (12:06 -0500)]
Merge branch 'charm' of charmgit:charm into charm-mpi-interop

Conflicts:
src/conv-core/converse.h

9 years agocharmxi: Fix accidentally repeated } in code generated for multiple inheritance
Phil Miller [Sat, 31 Mar 2012 15:09:10 +0000 (10:09 -0500)]
charmxi: Fix accidentally repeated } in code generated for multiple inheritance

Extra '}' were introduced in the generated declarations by 59806c784.

9 years agocharmxi: Streamline indentation for large swaths of generated decl code
Ramprasad Venkataraman [Sat, 31 Mar 2012 05:29:26 +0000 (00:29 -0500)]
charmxi: Streamline indentation for large swaths of generated decl code

9 years agocharmxi: Emit overloaded constructors for CProxyElement_Foo only when index type...
Ramprasad Venkataraman [Sat, 31 Mar 2012 01:39:06 +0000 (20:39 -0500)]
charmxi: Emit overloaded constructors for CProxyElement_Foo only when index type is not already CkArrayIndex

9 years agocharmxi: Emit CProxyElement_Foo constructors that accept a base class CkArrayIndex...
Ramprasad Venkataraman [Fri, 30 Mar 2012 23:45:30 +0000 (18:45 -0500)]
charmxi: Emit CProxyElement_Foo constructors that accept a base class CkArrayIndex too.

This eases writing runtime code that needs to access an array element via a proxy.

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Fri, 30 Mar 2012 21:34:38 +0000 (16:34 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agofix a subtle bug in ckmulticast when using packing functions.
Gengbin Zheng [Fri, 30 Mar 2012 21:33:16 +0000 (16:33 -0500)]
fix a subtle bug in ckmulticast when using packing functions.
sectionInfo in sendToLocal() is set as a reference to a message.
When packed, the message can be freed, and so the variable can point to
an invalid location.

9 years agoAdding dimensions to printTopo
Nikhil Jain [Thu, 29 Mar 2012 23:53:03 +0000 (16:53 -0700)]
Adding dimensions to printTopo

9 years agoAppears to me that Esteban forgot to add this make instruction, checking
Nikhil Jain [Thu, 29 Mar 2012 23:09:26 +0000 (16:09 -0700)]
Appears to me that Esteban forgot to add this make instruction, checking
in after testing, but will confirm with Esteban

9 years agoMerge branch 'charm' of charmgit:charm into charm
Nikhil Jain [Thu, 29 Mar 2012 22:23:24 +0000 (15:23 -0700)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoFix for smp - topomanager share a global variable - we should see
Nikhil Jain [Thu, 29 Mar 2012 22:22:36 +0000 (15:22 -0700)]
Fix for smp - topomanager share a global variable - we should see
if we need to have local copies

9 years agoMerge branch 'charm' of charmgit:charm into charm
Esteban Meneses [Thu, 29 Mar 2012 22:08:56 +0000 (17:08 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoAdding support for causal message logging.
Esteban Meneses [Thu, 29 Mar 2012 22:08:32 +0000 (17:08 -0500)]
Adding support for causal message logging.

9 years agoAdding the missing prototype
Nikhil Jain [Thu, 29 Mar 2012 20:41:30 +0000 (15:41 -0500)]
Adding the missing prototype

9 years agoFixing a bug in previous checkin
Nikhil Jain [Thu, 29 Mar 2012 20:34:29 +0000 (15:34 -0500)]
Fixing a bug in previous checkin

9 years agoMore changes to topomanager for cray, also adding +printTopo to print topo
Nikhil Jain [Thu, 29 Mar 2012 20:18:54 +0000 (15:18 -0500)]
More changes to topomanager for cray, also adding +printTopo to print topo
information

9 years agosdag template test: explicitly run from current directory
Phil Miller [Thu, 29 Mar 2012 15:53:17 +0000 (10:53 -0500)]
sdag template test: explicitly run from current directory

9 years agofix various bugs and memory leak
Gengbin Zheng [Thu, 29 Mar 2012 07:06:13 +0000 (02:06 -0500)]
fix various bugs and memory leak

9 years agoget getDimension also finds maxnid
Gengbin Zheng [Thu, 29 Mar 2012 03:25:11 +0000 (22:25 -0500)]
get getDimension also finds maxnid

9 years agocharmxi sdag: Comment generated code to aid debugging a forgotten __sdag_init() in...
Phil Miller [Wed, 28 Mar 2012 23:16:56 +0000 (18:16 -0500)]
charmxi sdag: Comment generated code to aid debugging a forgotten __sdag_init() in chare constructors

9 years agocharmxi: Move generated code to foo.def.h and support SDAG in chare templates
Phil Miller [Tue, 27 Mar 2012 03:58:49 +0000 (22:58 -0500)]
charmxi: Move generated code to foo.def.h and support SDAG in chare templates

Move the code generated for SDAG-defined entry methods from the
foo_SDAG_CODE macro in fooModule.decl.h to standalone definitions in
fooModule.def.h.

This enables
- clearer compiler output, especially of warnings and errors
- debugging with meaningful lines numbers and source listings*
- the possibility of encapsulating implementation code in binary
  objects, without the SDAG-embedded source appearing in the public
  header

Along the way, I noted that the changes weren't going to handle SDAG
code in chare templates. That probably didn't work before, but there's
no good reason it shouldn't have. It does now, and even has a test.

In the process, I also modified the style of EP registration as used
for tracing to more closely resemble what 21b4138 did for plain
Charm++ code. This may enable convergent refactoring later.

*: I mistakenly omitted __sdag_init() calls in my template
   test. Debugging this mistake became really easy when I could list
   the line that SEGFAULTed and see that __cDep->getMessage(0) was
   dereferencing a NULL pointer.

9 years ago added sender side throttling control
Yanhua Sun [Wed, 28 Mar 2012 22:29:10 +0000 (17:29 -0500)]
 added sender side throttling control

9 years agofixes for crayxe in topomanager
Nikhil Jain [Wed, 28 Mar 2012 20:28:23 +0000 (15:28 -0500)]
fixes for crayxe in topomanager

9 years agoa place holder for CMK_USE_SPINLOCK
Gengbin Zheng [Wed, 28 Mar 2012 07:54:14 +0000 (02:54 -0500)]
a place holder for CMK_USE_SPINLOCK

9 years agofix for dimension
Gengbin Zheng [Wed, 28 Mar 2012 07:11:03 +0000 (02:11 -0500)]
fix for dimension

9 years agoadd a function to return Cray XE dimensions
Gengbin Zheng [Wed, 28 Mar 2012 06:56:17 +0000 (01:56 -0500)]
add a function to return Cray XE dimensions
also hardcoded for more

9 years agoRevert "a function to return Cray XE torus dimension"
Gengbin Zheng [Wed, 28 Mar 2012 06:55:16 +0000 (01:55 -0500)]
Revert "a function to return Cray XE torus dimension"

This reverts commit 0f8c4f11d902e1669a9ee5ef4717a1d0aaf282c4.

9 years agoa function to return Cray XE torus dimension
Gengbin Zheng [Wed, 28 Mar 2012 06:51:21 +0000 (01:51 -0500)]
a function to return Cray XE torus dimension
hardcoded for more machines

9 years agocharmxi: Drop use of reserved '__' where it's pointless
Phil Miller [Tue, 27 Mar 2012 21:50:37 +0000 (16:50 -0500)]
charmxi: Drop use of reserved '__' where it's pointless

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Tue, 27 Mar 2012 21:37:36 +0000 (16:37 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoadd counters for PumpDatagramConnection()
Gengbin Zheng [Tue, 27 Mar 2012 21:37:08 +0000 (16:37 -0500)]
add counters for PumpDatagramConnection()

9 years agobigsim emulator: fix warning about conversion from void* to char*
Phil Miller [Tue, 27 Mar 2012 21:28:28 +0000 (16:28 -0500)]
bigsim emulator: fix warning about conversion from void* to char*

9 years agodynamic SMSG working with SMP
Gengbin Zheng [Tue, 27 Mar 2012 21:24:04 +0000 (16:24 -0500)]
dynamic SMSG working with SMP

9 years agosuppress some compilation warnings when using spinlock
Gengbin Zheng [Tue, 27 Mar 2012 21:20:52 +0000 (16:20 -0500)]
suppress some compilation warnings when using spinlock

9 years agocharmxi: Restore original expectations on entry method argument visibility in decl.h
Ramprasad Venkataraman [Tue, 27 Mar 2012 20:42:48 +0000 (15:42 -0500)]
charmxi: Restore original expectations on entry method argument visibility in decl.h

Recent changes exposed applications that depended on charm's relaxed (lack
of) requirements on the visibility of entry method argument declarations and
definitions in the module's decl.h generated header. This fix restores this
original relaxed requirement by moving the actual ep registration code back
into the def.h file. This should unbreak the applications.

This still retains the idx_foo() methods in the decl.h so that they can be
inlined by the compiler and templated by the code generator in the future.

9 years agopose: Move the basic pose msg types into separate module for include happiness
Ramprasad Venkataraman [Tue, 27 Mar 2012 18:57:34 +0000 (13:57 -0500)]
pose: Move the basic pose msg types into separate module for include happiness

9 years agoallow using spin_lock
Gengbin Zheng [Tue, 27 Mar 2012 17:54:45 +0000 (12:54 -0500)]
allow using spin_lock

9 years agoupdated
Gengbin Zheng [Tue, 27 Mar 2012 17:49:02 +0000 (12:49 -0500)]
updated

9 years agotest pthread_spin_lock
Gengbin Zheng [Tue, 27 Mar 2012 17:47:28 +0000 (12:47 -0500)]
test pthread_spin_lock

9 years agocharmxi: Encapsulate epidx static member within static method
Ramprasad Venkataraman [Tue, 27 Mar 2012 15:49:54 +0000 (10:49 -0500)]
charmxi: Encapsulate epidx static member within static method

Originally, any charm entity (chare,group,array etc) would have
a CkIndex_Foo class that held all the entry point indices. These
were simply stored as static member variables of the CkIndex class
and accessed directly throughout the generated code. The variable
was initialized in the entity's CkIndex_Foo::__register() method.

This commit hides the variable behind a static method that has a
similarly mangled name and does not take any arguments. This method
will almost certainly be inlined by the compiler. The ep index is
initialized in place via a call to CkRegisterEp(). We still ensure
identical registration sequence on all PEs by calling all these static
methods from the CkIndex_Foo::__register() method.

This is a preliminary step enroute to support for template entry methods.

9 years agofix a compilation error
Gengbin Zheng [Tue, 27 Mar 2012 15:17:24 +0000 (08:17 -0700)]
fix a compilation error

9 years ago +gni_stats_root to specify counter subdir name
Gengbin Zheng [Tue, 27 Mar 2012 05:27:10 +0000 (00:27 -0500)]
 +gni_stats_root to specify counter subdir name

9 years agominor
Gengbin Zheng [Tue, 27 Mar 2012 04:44:32 +0000 (23:44 -0500)]
minor

9 years agohave a node level persistent setup API.
Gengbin Zheng [Tue, 27 Mar 2012 03:23:30 +0000 (20:23 -0700)]
have a node level persistent setup API.

9 years agocharmxi sdag: Factor out duplicated code in generation logic
Phil Miller [Mon, 26 Mar 2012 23:54:41 +0000 (18:54 -0500)]
charmxi sdag: Factor out duplicated code in generation logic

9 years agoNDMeshStreamer: added pup routine for array client; changed interface to
Lukasz Wesolowski [Mon, 26 Mar 2012 23:39:54 +0000 (18:39 -0500)]
NDMeshStreamer: added pup routine for array client; changed interface to
require specifying number of contributions when calling associateCallback;
changed setup to reinitialize list of local clients and clear the cache of
array id to destination pe mappings every time associateCallback is called
in order to support chare migration in between calls to associateCallback