charm.git
10 years agocharmdebug: Use CkArrayIndex instead of CkArrayIndexStruct
Ramprasad Venkataraman [Tue, 26 Apr 2011 17:26:36 +0000 (12:26 -0500)]
charmdebug: Use CkArrayIndex instead of CkArrayIndexStruct

10 years agoenvelope: For array indices store a base class (CkArrayIndex) object and not CkArrayI...
Ramprasad Venkataraman [Tue, 26 Apr 2011 17:12:48 +0000 (12:12 -0500)]
envelope: For array indices store a base class (CkArrayIndex) object and not CkArrayIndexStruct

This is a big step in the effort to get rid of CkArrayIndexStruct and all the dangerous
pointer casts that accompany it

10 years agockcallback: Use a CkArrayIndex base class object instead of CkArrayIndexStruct
Ramprasad Venkataraman [Fri, 22 Apr 2011 20:15:21 +0000 (15:15 -0500)]
ckcallback: Use a CkArrayIndex base class object instead of CkArrayIndexStruct

CkCallback has a union of data based on the different callback types. One of
these if for callbacks that go to array elements. This required storing an
array index in the union with the resulting stipulation that the stored index
object should not have any default constructors.  A CkArrayIndexStruct class
has existed in the codebase expressly for such situations. Because this class
has no relation to the hierarchy of 'normal' array index classes, dangerous
pointer casts have been the norm.

Because of such risky casts, this snippet of code in the callback has been
plagued with heisenbugs over many years, as compilers get stricter and exhibit
greater personality variations across brands and architectures. OpenAtom has
exposed the bugs a couple of times in the last couple of years.

To fix this issue for good (hopefully), the objective is to not cast across
unrelated class hierarchies, but rather make the base class amenable to
participation in a union.  This should help get rid of classes that existed
purely for such silly hacks to enable charm functionality.

10 years agockarrayindex: Remove all base class constructors
Ramprasad Venkataraman [Fri, 22 Apr 2011 20:00:01 +0000 (15:00 -0500)]
ckarrayindex: Remove all base class constructors

Putting an object in a union requires that the class not have any constructors.
Removing all base class constructors will mean that the array index base class
can now participate in a union; thus removing all purpose for the existence of
a CkArrayIndexStruct.

10 years agoreset group dep field when reset envelope for recycling.
Gengbin Zheng [Fri, 27 May 2011 17:20:23 +0000 (12:20 -0500)]
reset group dep field when reset envelope for recycling.

10 years agoCharacterize smp bug by clarifying Eric's test to create single chare array
Ramprasad Venkataraman [Fri, 27 May 2011 16:44:13 +0000 (11:44 -0500)]
Characterize smp bug by clarifying Eric's test to create single chare array

The hang bug in smp mode happens on lab machines even with a single chare array.
Hence create just one in the test

10 years agonew test to demonstrate a race condition
Eric Bohm [Fri, 27 May 2011 03:10:45 +0000 (22:10 -0500)]
new test to demonstrate a race condition

10 years agoTests megacon: Match int sizes to pointer parameters to quiet warnings
Phil Miller [Thu, 26 May 2011 23:23:55 +0000 (18:23 -0500)]
Tests megacon: Match int sizes to pointer parameters to quiet warnings

10 years agoTests: Silence a type conversion warning
Phil Miller [Thu, 26 May 2011 23:19:41 +0000 (18:19 -0500)]
Tests: Silence a type conversion warning

10 years agoPOSE stats: De-duplicate printing code
Phil Miller [Thu, 26 May 2011 23:19:13 +0000 (18:19 -0500)]
POSE stats: De-duplicate printing code

10 years agoEnable Charm++/Converse build identification from program output
Phil Miller [Wed, 25 May 2011 23:07:02 +0000 (18:07 -0500)]
Enable Charm++/Converse build identification from program output

When making anything in the base build directory, check whether any
code has been changed or commited, and generate a version string
accordingly. Embed this string in a standalone object linked into
converse. Print the string at startup.

10 years agoMerge remote branch 'origin/machine-common-codes' into charm
Phil Miller [Thu, 26 May 2011 20:16:38 +0000 (15:16 -0500)]
Merge remote branch 'origin/machine-common-codes' into charm

10 years ago1. make the dynamic cap parameter configurable by reading from command line
Chao Mei [Wed, 25 May 2011 22:18:59 +0000 (17:18 -0500)]
1. make the dynamic cap parameter configurable by reading from command line

2. simplified the send op for both non-SMP and SMP that they share the same
   code of calling MPI_Isend function

10 years agosmall change to typed reductions
Pritish Jetley [Wed, 25 May 2011 20:23:30 +0000 (15:23 -0500)]
small change to typed reductions

10 years agoremoved commented section in 3.16; it seemed to be causing a blank code box to be...
Pritish Jetley [Wed, 25 May 2011 19:09:09 +0000 (14:09 -0500)]
removed commented section in 3.16; it seemed to be causing a blank code box to be rendered.

10 years agochanges to sections 3.14,3.15 and 3.16 of Charm++ manual
Pritish Jetley [Wed, 25 May 2011 19:03:33 +0000 (14:03 -0500)]
changes to sections 3.14,3.15 and 3.16 of Charm++ manual

10 years agodisable MPI_POST_RECV in default
Chao Mei [Mon, 23 May 2011 21:40:45 +0000 (16:40 -0500)]
disable MPI_POST_RECV in default

10 years agoadded printing out the description of the error number when creating the sts file
Chao Mei [Mon, 23 May 2011 21:31:37 +0000 (16:31 -0500)]
added printing out the description of the error number when creating the sts file

10 years agomake the parsing of #pes and #ppns more accurate as numbers should follow +p or
Chao Mei [Mon, 23 May 2011 19:35:28 +0000 (14:35 -0500)]
make the parsing of #pes and #ppns more accurate as numbers should follow +p or
ppn

10 years agomake the parameters regarding post_recv configurable through command line options
Chao Mei [Mon, 23 May 2011 19:33:25 +0000 (14:33 -0500)]
make the parameters regarding post_recv configurable through command line options

10 years agoTLS and other changes to AMPI manual
Ehsan Totoni [Thu, 19 May 2011 17:10:15 +0000 (12:10 -0500)]
TLS and other changes to AMPI manual

10 years agofixed a subtle bug in handling immediate msg in SMP mode when there's only one worker...
Chao Mei [Thu, 19 May 2011 07:01:54 +0000 (02:01 -0500)]
fixed a subtle bug in handling immediate msg in SMP mode when there's only one worker thread

10 years agochange root to int if error checking is enabled
Chao Mei [Thu, 19 May 2011 04:45:59 +0000 (23:45 -0500)]
change root to int if error checking is enabled

10 years agoFixed the optimized multicast for non-SMP, but the DCMF_multicast interface is
Chao Mei [Sun, 15 May 2011 23:21:38 +0000 (18:21 -0500)]
Fixed the optimized multicast for non-SMP, but the DCMF_multicast interface is
not suitable for SMP mode.

10 years agofixed typos in re-defining macros
Chao Mei [Sun, 15 May 2011 01:44:50 +0000 (20:44 -0500)]
fixed typos in re-defining macros

10 years agoAdded the empty implementation for MachinePostNonLocal
Chao Mei [Sat, 14 May 2011 21:48:55 +0000 (21:48 +0000)]
Added the empty implementation for MachinePostNonLocal

10 years agoadded empty implementation for CmiBarrier and CmiBarrierZero as in the old one
Chao Mei [Sat, 14 May 2011 21:30:07 +0000 (16:30 -0500)]
added empty implementation for CmiBarrier and CmiBarrierZero as in the old one

10 years agoa very rought draft of a template for machine-specific implementation
Chao Mei [Fri, 13 May 2011 23:19:38 +0000 (18:19 -0500)]
a very rought draft of a template for machine-specific implementation

10 years agoFirst check-in for the work on extractin common codes from MPI, LAPI and DCMF layer...
Chao Mei [Fri, 13 May 2011 23:10:21 +0000 (18:10 -0500)]
First check-in for the work on extractin common codes from MPI, LAPI and DCMF layer. MPI and LAPI work both in SMP and non-SMP mode. DCMF got compiled in both modes, but has not been tested yet.

10 years agoMerge branch 'charm' of charmgit:charm into charm
Ehsan Totoni [Thu, 12 May 2011 21:03:52 +0000 (16:03 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agoampi manual changes and additions
Ehsan Totoni [Thu, 12 May 2011 21:03:32 +0000 (16:03 -0500)]
ampi manual changes and additions

10 years agoinitialize messages at construction time where possible to avoid
Eric Bohm [Thu, 12 May 2011 19:48:59 +0000 (14:48 -0500)]
initialize messages at construction time where possible to avoid
tripping over valgrind uninitialized complaints

10 years agofixed a bug when code in trapped CkWaitFuture(), the future can changed when the...
Gengbin Zheng [Thu, 12 May 2011 18:13:27 +0000 (13:13 -0500)]
fixed a bug when code in trapped CkWaitFuture(), the future can changed when the future array is expanded. Therefore, CkWaitFuture may trap forever since it is checking an invalid place.

10 years agoFix bug which caused -only -footest runs to hang.
Eric Bohm [Wed, 11 May 2011 20:14:15 +0000 (15:14 -0500)]
Fix bug which caused -only -footest runs to hang.

10 years agoadded +WSPriority to workstealing seedlb, which steal higher priority tasks.
Gengbin Zheng [Wed, 11 May 2011 19:00:00 +0000 (14:00 -0500)]
added +WSPriority to workstealing seedlb, which steal higher priority tasks.

10 years agoadded rule to build ws version.
Gengbin Zheng [Wed, 11 May 2011 18:57:21 +0000 (13:57 -0500)]
added rule to build ws version.

10 years agofixed a missing return bug
Gengbin Zheng [Wed, 11 May 2011 17:07:35 +0000 (12:07 -0500)]
fixed a missing return bug

10 years agoMerge branch 'charm' of charmgit:charm into charm
YanhuaSun [Wed, 11 May 2011 06:35:35 +0000 (01:35 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agoFixed TSP example
YanhuaSun [Wed, 11 May 2011 06:35:09 +0000 (01:35 -0500)]
Fixed TSP example

10 years agoFixed errors due to ckfuture interface changes
Chao Mei [Wed, 11 May 2011 01:19:50 +0000 (20:19 -0500)]
Fixed errors due to ckfuture interface changes

10 years agoper Sanjay's request, added an opaque strcture CkFuture, and exposed function API.
Gengbin Zheng [Tue, 10 May 2011 18:04:52 +0000 (13:04 -0500)]
per Sanjay's request, added an opaque strcture CkFuture, and exposed function API.

10 years agominor change to balanced tree example
YanhuaSun [Tue, 10 May 2011 16:51:14 +0000 (11:51 -0500)]
minor change to balanced tree example

10 years agoDelete obsolete machine layers
Phil Miller [Mon, 9 May 2011 19:31:32 +0000 (14:31 -0500)]
Delete obsolete machine layers

The following machine types (interconnect, OS, or architecture) are
believe to no longer have even possible users:

t3e
crayx1
hp
axp
exemplar
sp3
ncube2
origin
irix
sun

10 years agominor change to TSP example
YanhuaSun [Mon, 9 May 2011 05:08:37 +0000 (00:08 -0500)]
minor change to TSP example

10 years agoRevert "minor change to TSP example"
YanhuaSun [Mon, 9 May 2011 05:05:37 +0000 (00:05 -0500)]
Revert "minor change to TSP example"

This reverts commit c4d68132bb62c56c835872ae331077b9132ec5c2.

10 years agoMerge branch 'charm' of charmgit:charm into charm
YanhuaSun [Mon, 9 May 2011 04:51:53 +0000 (23:51 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agominor change to TSP example
YanhuaSun [Mon, 9 May 2011 04:51:21 +0000 (23:51 -0500)]
minor change to TSP example

10 years agoampi manual overview update
Ehsan Totoni [Mon, 9 May 2011 00:19:48 +0000 (19:19 -0500)]
ampi manual overview update

10 years agouse pdflatex instead of latex to make manuals (solve error on figs)
Ehsan Totoni [Mon, 9 May 2011 00:05:48 +0000 (19:05 -0500)]
use pdflatex instead of latex to make manuals (solve error on figs)

10 years agofix compilation error
Abhinav S Bhatele [Sat, 7 May 2011 13:15:45 +0000 (08:15 -0500)]
fix compilation error

10 years agoQuiet string literal constness warnings
Phil Miller [Fri, 6 May 2011 22:18:40 +0000 (17:18 -0500)]
Quiet string literal constness warnings

Since we're about to exec, it's safe to waste a bit of memory making
mutable copies of some literal strings.

10 years agoCast size_t to int before negating it, to silence warnings
Phil Miller [Fri, 6 May 2011 18:50:35 +0000 (13:50 -0500)]
Cast size_t to int before negating it, to silence warnings

We can be pretty confident that the size of the two structs will be in
int's range, so the cast will preserve its value.

10 years agoMerge branch 'charm' of charmgit:charm into charm
YanhuaSun [Fri, 6 May 2011 06:09:45 +0000 (01:09 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agochanges to TSP
YanhuaSun [Fri, 6 May 2011 06:09:33 +0000 (01:09 -0500)]
changes to TSP

10 years agoPrint small sizes as ints, to avoid size_t's printf portability morass
Phil Miller [Thu, 5 May 2011 22:20:52 +0000 (17:20 -0500)]
Print small sizes as ints, to avoid size_t's printf portability morass

Calling printf("%d", sizeof(Foo)) generates warnings, because size_t
is often not an int. We want to squelch all the warnings we're seeing,
but unfortunately, the standard %zd size modifier isn't available on
windows. Since Foo in this case is the small struct _Slot, we don't
need to worry about overflow, and can just shorten its size to int.

10 years agoMatch printf int length specifiers to arguments
Phil Miller [Thu, 5 May 2011 21:55:51 +0000 (16:55 -0500)]
Match printf int length specifiers to arguments

10 years agoMerge branch 'charm' of charmgit:/charm into charm
Ehsan Totoni [Thu, 5 May 2011 22:17:21 +0000 (17:17 -0500)]
Merge branch 'charm' of charmgit:/charm into charm

10 years agoAMPI manual intro
Ehsan Totoni [Thu, 5 May 2011 22:16:49 +0000 (17:16 -0500)]
AMPI manual intro

10 years agoDon't print pointers as ints, to quiet a warning
Phil Miller [Thu, 5 May 2011 21:45:18 +0000 (16:45 -0500)]
Don't print pointers as ints, to quiet a warning

10 years agopplmanual errors fixed, now manuals (like ampi) can be built
Ehsan Totoni [Thu, 5 May 2011 19:14:34 +0000 (14:14 -0500)]
pplmanual errors fixed, now manuals (like ampi) can be built

10 years agoMerge branch 'charm' of charmgit:charm into charm
Chao Mei [Thu, 5 May 2011 17:29:51 +0000 (12:29 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agoRe-organized the code segments. In particular, the timer & barrier functions are...
Chao Mei [Thu, 5 May 2011 17:27:40 +0000 (12:27 -0500)]
Re-organized the code segments. In particular, the timer & barrier functions are moved to the end of the file after CmiMyRank has been defined.

10 years agobuild token queue using priorities, sorted in ascend order.
Gengbin Zheng [Thu, 5 May 2011 07:34:04 +0000 (02:34 -0500)]
build token queue using priorities, sorted in ascend order.

10 years agoa handy function CqsPrioGT_ to compare two priorities without having to build the...
Gengbin Zheng [Thu, 5 May 2011 07:33:14 +0000 (02:33 -0500)]
a handy function CqsPrioGT_ to compare two priorities without having to build the _prio struct

10 years agoMerge branch 'charm' of charmgit:charm into charm
YanhuaSun [Thu, 5 May 2011 04:03:32 +0000 (23:03 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agoadd data for Tsp problem
YanhuaSun [Thu, 5 May 2011 04:03:21 +0000 (23:03 -0500)]
add data for Tsp problem

10 years agoPass a character array, and not its address, to fscanf()
Phil Miller [Thu, 5 May 2011 00:14:21 +0000 (19:14 -0500)]
Pass a character array, and not its address, to fscanf()

Address a warning about passing a pointer to a character array, rather
than the array itself, to a function expecting char*.

10 years agoDrop an extra unused argument to fscanf
Phil Miller [Thu, 5 May 2011 00:13:44 +0000 (19:13 -0500)]
Drop an extra unused argument to fscanf

10 years agoQuiet warning about assigning NULL to an int
Phil Miller [Wed, 4 May 2011 23:58:53 +0000 (18:58 -0500)]
Quiet warning about assigning NULL to an int

CmiNodeLock is a pointer in some settings, and int in others. Instead
of initializing it with NULL, assign 0 instead, which works as a
pointer or an integer.

10 years agoPrint pointers as pointers
Phil Miller [Wed, 4 May 2011 23:51:03 +0000 (18:51 -0500)]
Print pointers as pointers

10 years agoQuiet a warning about casting an int to a pointer of different size
Phil Miller [Wed, 4 May 2011 23:35:30 +0000 (18:35 -0500)]
Quiet a warning about casting an int to a pointer of different size

Widen the integer argument to pointer-width first, and then cast it to
a pointer.

10 years agoRemove some CVS headers
Phil Miller [Wed, 4 May 2011 23:32:55 +0000 (18:32 -0500)]
Remove some CVS headers

10 years agoQuiet warnings from undeclared functions by including proper header
Phil Miller [Wed, 4 May 2011 23:30:36 +0000 (18:30 -0500)]
Quiet warnings from undeclared functions by including proper header

localtime() and asctime() are defined in time.h, but that's not always
included when they're used. Ensure that it is.

10 years agoUpdated the machine layer so that it is working both in non-SMP and SMP mode
Chao Mei [Wed, 4 May 2011 23:15:47 +0000 (18:15 -0500)]
Updated the machine layer so that it is working both in non-SMP and SMP mode

10 years agoModified and tested the post recv scheme for both non-SMP and SMP cases
Chao Mei [Tue, 3 May 2011 23:15:35 +0000 (18:15 -0500)]
Modified and tested the post recv scheme for both non-SMP and SMP cases

10 years agoMerge branch 'charm' of charmgit:charm into charm
Chao Mei [Tue, 3 May 2011 19:31:06 +0000 (14:31 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agoenable dynamic cap in the non-SMP mode.
Chao Mei [Tue, 3 May 2011 19:29:58 +0000 (14:29 -0500)]
enable dynamic cap in the non-SMP mode.

10 years agockout: Don't pass literal strings to CkPrintf as format strings
Artem Shvorin [Tue, 3 May 2011 15:07:00 +0000 (10:07 -0500)]
ckout: Don't pass literal strings to CkPrintf as format strings

10 years agoAdd support to read papi counters values in smp mode
Chao Mei [Tue, 3 May 2011 02:41:30 +0000 (21:41 -0500)]
Add support to read papi counters values in smp mode

10 years agoMerge branch 'charm' of charmgit:charm into charm
Chao Mei [Tue, 3 May 2011 02:06:18 +0000 (21:06 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agoReduced the overhead of recording papi counter values in the projection log.
Chao Mei [Tue, 3 May 2011 01:58:46 +0000 (20:58 -0500)]
Reduced the overhead of recording papi counter values in the projection log.

10 years agomodified the test for papi library
Chao Mei [Tue, 3 May 2011 01:56:50 +0000 (20:56 -0500)]
modified the test for papi library

10 years agoAdded lines where users could modify to set correct papi installation directory
Chao Mei [Tue, 3 May 2011 01:55:17 +0000 (20:55 -0500)]
Added lines where users could modify to set correct papi installation directory

10 years agoDon't pass arbitrary string values as format strings
Phil Miller [Tue, 3 May 2011 01:35:55 +0000 (20:35 -0500)]
Don't pass arbitrary string values as format strings

10 years agocharmxi: Fix most warnings and simplify code
Phil Miller [Tue, 3 May 2011 01:25:31 +0000 (20:25 -0500)]
charmxi: Fix most warnings and simplify code

Silence nearly all warnings generated by g++ -Wall -Wextra.

10 years agoModified GPU Manager so that quiescence will not be detected in situations
Lukasz Wesolowski [Thu, 28 Apr 2011 21:49:54 +0000 (16:49 -0500)]
Modified GPU Manager so that quiescence will not be detected in situations
when CPUs have no work but GPUs are still executing.

10 years agocharmxi: Explicitly initialize variables that affect control flow
Phil Miller [Wed, 27 Apr 2011 21:33:42 +0000 (16:33 -0500)]
charmxi: Explicitly initialize variables that affect control flow

10 years agoremoved -Wno-long-double which is no longer supported.
Gengbin Zheng [Wed, 27 Apr 2011 20:41:20 +0000 (15:41 -0500)]
removed -Wno-long-double which is no longer supported.

10 years agoadd CmiOutofMemory to blue_standalone
Ehsan Totoni [Tue, 19 Apr 2011 18:27:45 +0000 (13:27 -0500)]
add CmiOutofMemory to blue_standalone

10 years agofixed a typo
Gengbin Zheng [Mon, 18 Apr 2011 21:52:00 +0000 (16:52 -0500)]
fixed a typo

10 years agomake +LBPrintSummary work again.
Gengbin Zheng [Fri, 15 Apr 2011 02:44:53 +0000 (21:44 -0500)]
make +LBPrintSummary work again.

10 years agofixed a bug when allow user to hybrid group size, the multicast group needs to be...
Gengbin Zheng [Fri, 15 Apr 2011 01:10:44 +0000 (20:10 -0500)]
fixed a bug when allow user to hybrid group size, the multicast group needs to be rebuilt.

10 years agodisable OPTIMIZED_MULTICAST for non-smp case.
GENGBIN ZHENG [Thu, 14 Apr 2011 17:58:14 +0000 (17:58 +0000)]
disable OPTIMIZED_MULTICAST for non-smp case.

10 years agoMerge branch 'charm' of charmgit:charm into charm
Aaron Becker [Tue, 12 Apr 2011 23:11:11 +0000 (18:11 -0500)]
Merge branch 'charm' of charmgit:charm into charm

10 years agoadded test for asctime(), and a CmiPrintDate().
Gengbin Zheng [Tue, 12 Apr 2011 21:34:02 +0000 (16:34 -0500)]
added test for asctime(), and a CmiPrintDate().

10 years agoindentation change
Gengbin Zheng [Tue, 12 Apr 2011 04:40:16 +0000 (23:40 -0500)]
indentation change

10 years agoprint if it is using absolute timer.
Gengbin Zheng [Tue, 12 Apr 2011 04:23:56 +0000 (23:23 -0500)]
print if it is using absolute timer.

10 years agofixed an unitialized variable to please Valgrind.
Gengbin Zheng [Tue, 12 Apr 2011 04:21:54 +0000 (23:21 -0500)]
fixed an unitialized variable to please Valgrind.

10 years agoCharj: improve unit tests
Aaron Becker [Mon, 11 Apr 2011 20:38:37 +0000 (15:38 -0500)]
Charj: improve unit tests

10 years agoCharj: convert assert to use explicitly named tokens
Aaron Becker [Mon, 11 Apr 2011 20:35:13 +0000 (15:35 -0500)]
Charj: convert assert to use explicitly named tokens