charm.git
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 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

9 years agocharmxi sdag: Fix inconsistent indentation in generated code
Phil Miller [Mon, 26 Mar 2012 23:43:05 +0000 (18:43 -0500)]
charmxi sdag: Fix inconsistent indentation in generated code

9 years agoCharj: SDAG: collect and save 'when' triggers and output entry method for them.
Jonathan Lifflander [Fri, 23 Mar 2012 20:38:43 +0000 (15:38 -0500)]
Charj: SDAG: collect and save 'when' triggers and output entry method for them.

9 years agoCharj: Array: method semantic checking (partially implemented).
Jonathan Lifflander [Fri, 23 Mar 2012 20:37:31 +0000 (15:37 -0500)]
Charj: Array: method semantic checking (partially implemented).

9 years agoCharj: remove duplicate domain-like syntax being declared.
Jonathan Lifflander [Fri, 23 Mar 2012 20:33:57 +0000 (15:33 -0500)]
Charj: remove duplicate domain-like syntax being declared.

9 years agoCharj: 'typeText' was being swallowed in the wrong place.
Jonathan Lifflander [Fri, 23 Mar 2012 20:33:05 +0000 (15:33 -0500)]
Charj: 'typeText' was being swallowed in the wrong place.

9 years agoCharj: if the parent object looks like 'thisIndex', let it pass
Jonathan Lifflander [Fri, 23 Mar 2012 20:32:01 +0000 (15:32 -0500)]
Charj: if the parent object looks like 'thisIndex', let it pass

9 years agoCharj: Array library: add raw data access pointer for internal/interface use.
Jonathan Lifflander [Fri, 23 Mar 2012 20:29:21 +0000 (15:29 -0500)]
Charj: Array library: add raw data access pointer for internal/interface use.

9 years agoCharmxi: Fix reversed arugments passed to generateSignature.
Jonathan Lifflander [Mon, 26 Mar 2012 22:41:18 +0000 (17:41 -0500)]
Charmxi: Fix reversed arugments passed to generateSignature.

Fortunately, this was causing a warning on GNU compilers on Cray.

9 years agoCharmxi: Fix broken 'overlap' code generation.
Jonathan Lifflander [Mon, 26 Mar 2012 22:34:57 +0000 (17:34 -0500)]
Charmxi: Fix broken 'overlap' code generation.

  void _overlap_0_end() {
  ...
); /* remove this incorrect line */
  }

9 years agocharmxi sdag: generate connect using the same code as everything else
Phil Miller [Mon, 26 Mar 2012 22:08:33 +0000 (17:08 -0500)]
charmxi sdag: generate connect using the same code as everything else

9 years agocharmxi sdag: match up parens/braces in connect generation code
Phil Miller [Mon, 26 Mar 2012 22:00:57 +0000 (17:00 -0500)]
charmxi sdag: match up parens/braces in connect generation code

9 years agocharmxi sdag: factor out method generation code
Phil Miller [Mon, 26 Mar 2012 21:56:51 +0000 (16:56 -0500)]
charmxi sdag: factor out method generation code

9 years agocharmxi sdag: simplify prototype generation method
Phil Miller [Mon, 26 Mar 2012 20:21:45 +0000 (15:21 -0500)]
charmxi sdag: simplify prototype generation method

9 years agocharmxi sdag: Delete an unused function
Phil Miller [Mon, 26 Mar 2012 20:16:03 +0000 (15:16 -0500)]
charmxi sdag: Delete an unused function

9 years agoCharmxi: fix inconsistent spacing in generated SDAG code.
Jonathan Lifflander [Thu, 22 Mar 2012 23:43:44 +0000 (18:43 -0500)]
Charmxi: fix inconsistent spacing in generated SDAG code.

9 years agoCharmxi: simply generation of SDAG while
Jonathan Lifflander [Thu, 22 Mar 2012 23:02:32 +0000 (18:02 -0500)]
Charmxi: simply generation of SDAG while

9 years agoCharmxi: Refactor SDAG internal function call generation code.
Jonathan Lifflander [Thu, 22 Mar 2012 22:55:50 +0000 (17:55 -0500)]
Charmxi: Refactor SDAG internal function call generation code.

9 years agoAbstracting out mempool related access to mempool.h as macros
Nikhil Jain [Mon, 26 Mar 2012 18:42:25 +0000 (11:42 -0700)]
Abstracting out mempool related access to mempool.h as macros

9 years agoLBPredictor: Fix old re-initialization code that would lead to crashes
Phil Miller [Mon, 26 Mar 2012 17:01:25 +0000 (12:01 -0500)]
LBPredictor: Fix old re-initialization code that would lead to crashes

The code to change from one load predictor to another was overwriting the
validity array pointer with 'false', effectively NULL-ing it out. This would
cause a crash on the next use, but was apparently never tested. That code
was supposed to make each entry in the array false, so do that instead.

Detected thanks to g++-4.7 -Werror.

9 years agocharm may skip calling LrtsSend when sending to same PE.
Gengbin Zheng [Sat, 24 Mar 2012 23:31:45 +0000 (18:31 -0500)]
charm may skip calling LrtsSend when sending to same PE.
In batch mode of persistent, the counter may gets out of sync. Insert a call to persistent module when charm sends a local message

9 years agoremove a print
Gengbin Zheng [Sat, 24 Mar 2012 20:28:22 +0000 (15:28 -0500)]
remove a print

9 years agomake send persistent table link list (instead of fixed size table)
Gengbin Zheng [Sat, 24 Mar 2012 18:26:41 +0000 (13:26 -0500)]
make send persistent table link list (instead of fixed size table)
dynamically determine SHIFT
fixed a race condition in PumpRemote for persistent

9 years agofix a bug in PumpRemote: over-decreased send counter.
Gengbin Zheng [Sat, 24 Mar 2012 16:29:54 +0000 (09:29 -0700)]
fix a bug in PumpRemote: over-decreased send counter.

9 years agopersistent buffer allocation use mempool.
Gengbin Zheng [Sat, 24 Mar 2012 04:54:07 +0000 (23:54 -0500)]
persistent buffer allocation use mempool.

9 years agoMerge branch 'charm' of charmgit:charm into charm
Yanhua Sun [Fri, 23 Mar 2012 05:52:07 +0000 (00:52 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agofix persistent comm thread tracing
Yanhua Sun [Fri, 23 Mar 2012 05:51:37 +0000 (00:51 -0500)]
fix persistent comm thread tracing

9 years agominor change in printing stats format
Gengbin Zheng [Fri, 23 Mar 2012 05:29:35 +0000 (22:29 -0700)]
minor change in printing stats format

9 years agoadd an env variable CHARM_UGNI_RDMA_MAX for rdma cap.
Gengbin Zheng [Thu, 22 Mar 2012 20:41:50 +0000 (13:41 -0700)]
add an env variable CHARM_UGNI_RDMA_MAX  for rdma cap.

9 years agodisable largepage
Yanhua Sun [Thu, 22 Mar 2012 19:57:22 +0000 (14:57 -0500)]
disable largepage

9 years agominor fix
Yanhua Sun [Thu, 22 Mar 2012 19:47:37 +0000 (14:47 -0500)]
minor fix

9 years agoadded average statistic and reduce some minor overhead in remote event
Yanhua Sun [Thu, 22 Mar 2012 19:42:12 +0000 (14:42 -0500)]
added average statistic and reduce some minor overhead in remote event

9 years agoadd RECV_CAp
Gengbin Zheng [Thu, 22 Mar 2012 19:30:17 +0000 (12:30 -0700)]
add RECV_CAp
move SendRdmaMsg up
change remtoe_event to be default.

9 years agoMerge branch 'charm' of charmgit:charm into charm
Aaron Becker [Thu, 22 Mar 2012 17:15:09 +0000 (12:15 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoAdd 'sizeof' keyword to support Barnes app
Aaron Becker [Thu, 22 Mar 2012 17:14:52 +0000 (12:14 -0500)]
Add 'sizeof' keyword to support Barnes app

9 years agocount time for SendRdmaMsg call.
Gengbin Zheng [Thu, 22 Mar 2012 04:30:20 +0000 (21:30 -0700)]
count time for SendRdmaMsg call.

9 years agouse two indexpool, one dedicated for persistent message to reduce locking in SMP.
Gengbin Zheng [Thu, 22 Mar 2012 04:02:56 +0000 (21:02 -0700)]
use two indexpool, one dedicated for persistent message to reduce locking in SMP.

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Thu, 22 Mar 2012 01:18:54 +0000 (18:18 -0700)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoseparate get and put counters
Gengbin Zheng [Thu, 22 Mar 2012 01:18:11 +0000 (20:18 -0500)]
separate get and put counters

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Wed, 21 Mar 2012 22:12:12 +0000 (15:12 -0700)]
Merge branch 'charm' of charmgit:charm into charm

9 years agominor change
Gengbin Zheng [Wed, 21 Mar 2012 22:11:52 +0000 (15:11 -0700)]
minor change

9 years agoMerge branch 'charm' of charmgit:charm into charm
Aaron Becker [Wed, 21 Mar 2012 22:00:33 +0000 (17:00 -0500)]
Merge branch 'charm' of charmgit:charm into charm

9 years agoDereference ref type arguments to entry methods
Aaron Becker [Wed, 21 Mar 2012 21:54:40 +0000 (16:54 -0500)]
Dereference ref type arguments to entry methods

9 years agopersistent work with SMP
Gengbin Zheng [Wed, 21 Mar 2012 21:47:16 +0000 (14:47 -0700)]
persistent work with SMP

9 years agoFix up UDT arguments to entry methods
Aaron Becker [Wed, 21 Mar 2012 21:37:58 +0000 (16:37 -0500)]
Fix up UDT arguments to entry methods

Passing user-defined types to entry methods require that they be value
types. Create references to those value type parameters for the rest of
the function to deal with so that function bodies are all just reference
types.

9 years agoxlc path tinkering
Eric Bohm [Wed, 21 Mar 2012 18:05:18 +0000 (18:05 +0000)]
xlc path tinkering