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

9 years agopath tweaking
Eric Bohm [Tue, 20 Mar 2012 14:15:26 +0000 (14:15 +0000)]
path tweaking

9 years agotracing persistent
Yanhua Sun [Wed, 21 Mar 2012 17:40:56 +0000 (12:40 -0500)]
tracing persistent

9 years agofix to keep up with the change in ListSend in LRTS
Gengbin Zheng [Wed, 21 Mar 2012 16:33:23 +0000 (16:33 +0000)]
fix to keep up with the change in ListSend in LRTS

9 years agore-arrange ListSend into LRTS
Gengbin Zheng [Wed, 21 Mar 2012 16:15:28 +0000 (11:15 -0500)]
re-arrange ListSend into LRTS
add some stats collection for gemini

9 years agouse pxshm before using persistent
Gengbin Zheng [Wed, 21 Mar 2012 02:40:53 +0000 (21:40 -0500)]
use pxshm before using persistent

9 years agoadded persistent counters
Yanhua Sun [Wed, 21 Mar 2012 02:27:11 +0000 (19:27 -0700)]
added persistent counters

9 years agoRevert "added PUT_DONE_TAG statistic information"
Yanhua Sun [Wed, 21 Mar 2012 02:25:50 +0000 (19:25 -0700)]
Revert "added PUT_DONE_TAG statistic information"

This reverts commit a5f0310ed2007030943c2a504f7cf0354af25ad2.

9 years agoadded PUT_DONE_TAG statistic information
Yanhua Sun [Wed, 21 Mar 2012 02:23:19 +0000 (19:23 -0700)]
added PUT_DONE_TAG statistic information

9 years agoREADME: Last-minute update to reflect current architectures, options v6.4.0
Phil Miller [Tue, 20 Mar 2012 21:05:32 +0000 (16:05 -0500)]
README: Last-minute update to reflect current architectures, options

9 years agoChangelog: mention BGQ PAMI and elaborate some details
Phil Miller [Tue, 20 Mar 2012 21:00:46 +0000 (16:00 -0500)]
Changelog: mention BGQ PAMI and elaborate some details

9 years agobuild: Add missing dependency (commitid.c) to make target 'depends'
Ramprasad Venkataraman [Tue, 20 Mar 2012 17:20:12 +0000 (12:20 -0500)]
build: Add missing dependency (commitid.c) to make target 'depends'

9 years agofix memory registeration bug with persistent message
Gengbin Zheng [Tue, 20 Mar 2012 07:27:44 +0000 (02:27 -0500)]
fix memory registeration bug with persistent message

9 years agofixed persistent put_done_tag in sendbuf
Yanhua Sun [Tue, 20 Mar 2012 05:30:29 +0000 (00:30 -0500)]
fixed persistent put_done_tag in sendbuf

9 years agoWrap BG/Q-specific topology code in the appropriate ifdef
Phil Miller [Tue, 20 Mar 2012 02:32:40 +0000 (21:32 -0500)]
Wrap BG/Q-specific topology code in the appropriate ifdef

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Tue, 20 Mar 2012 02:26:25 +0000 (19:26 -0700)]
Merge branch 'charm' of charmgit:charm into charm

9 years agosupport REMOTE_EVENT in persistent
Gengbin Zheng [Mon, 19 Mar 2012 22:49:40 +0000 (15:49 -0700)]
support REMOTE_EVENT in persistent

9 years agoRe-remove mentions of the archaic 'exemplar' architecture
Phil Miller [Mon, 19 Mar 2012 22:28:56 +0000 (17:28 -0500)]
Re-remove mentions of the archaic 'exemplar' architecture

9 years agoMerge branch 'charm' of charmgit:charm into charm
Eric Bohm [Mon, 19 Mar 2012 22:07:20 +0000 (22:07 +0000)]
Merge branch 'charm' of charmgit:charm into charm

9 years agotopo changes for BG/Q and path/config changes for ACLF VEAC BG/Q
Eric Bohm [Mon, 19 Mar 2012 22:05:24 +0000 (22:05 +0000)]
topo changes for BG/Q and path/config changes for ACLF VEAC BG/Q

9 years agoNDMeshStreamer: instead of recording time of last send, keep track of whether
Lukasz Wesolowski [Mon, 19 Mar 2012 21:12:16 +0000 (16:12 -0500)]
NDMeshStreamer: instead of recording time of last send, keep track of whether
sends have been performed using a simple flag

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Mon, 19 Mar 2012 19:14:00 +0000 (12:14 -0700)]
Merge branch 'charm' of charmgit:charm into charm

9 years agomake ackpool general
Gengbin Zheng [Mon, 19 Mar 2012 19:13:15 +0000 (12:13 -0700)]
make ackpool general
fix a bug in registerMessage that mistakenly check memhandle in chunk header

9 years agoDelete some generated files, and make sure they're cleaned up
Phil Miller [Mon, 19 Mar 2012 19:08:13 +0000 (14:08 -0500)]
Delete some generated files, and make sure they're cleaned up

9 years agopami prototype
Eric Bohm [Mon, 19 Mar 2012 18:06:18 +0000 (18:06 +0000)]
pami prototype
Paths updated for cetus.anl.alcf.gov

9 years agoMerge branch 'charm' of charmgit:charm into charm
Gengbin Zheng [Mon, 19 Mar 2012 18:02:20 +0000 (11:02 -0700)]
Merge branch 'charm' of charmgit:charm into charm