charm.git
6 years agofix bug and clean up jacobi examples 98/398/9
Yanhua Sun [Mon, 13 Oct 2014 16:43:23 +0000 (11:43 -0500)]
fix bug and clean up jacobi examples

The boundary condition constrain was wrong because it constrains the
boundary of each sub block. When using different number of subblocks,
the boundary condition changes. Fixed this by only constrains the
boundary of boundary subblock. Replace all tabs with 2 spaces.

Change-Id: Ib6d7979e6ababf070daf4c3a990cd3b3d866bcf1

6 years agoEnable node-queue when using multicore build 86/486/2
Nikhil Jain [Thu, 29 Jan 2015 07:08:25 +0000 (01:08 -0600)]
Enable node-queue when using multicore build

Change-Id: I92250e6e6ea24f67aa111b8d3d8a53b52770099d

6 years agoBug #649 Blue Gene/Q Fortran: Configure paths, flags, and libraries for GCC/XL instea... 76/476/3
Phil Miller [Fri, 23 Jan 2015 20:45:10 +0000 (14:45 -0600)]
Bug #649 Blue Gene/Q Fortran: Configure paths, flags, and libraries for GCC/XL instead of Absoft

The values of $CMK_CF90 (Fortran 90 compiler), $CMK_F90LIBS (Fortran 90 runtime
libraries to link), and $CMK_F90_MODINC (the command-line flag to prefix paths
to search for compiled Fortran module files) were all set by successively
copying and pasting values from previous conv-mach.sh and cc-gcc.sh files. They
were set for Absoft Fortran, originating with commit
64787aef49f939fc4082871d91fce365f338f90c on net-linux/conv-mach.sh in 2001.

They're wrong everywhere, but cause special pain on Blue Gene/Q. That's because
Absoft used `-p' for $CMK_F90_MODINC. On GCC and XL Fortran, that activates
gprof-style instrumentation. However, the flag isn't passed on the linker
command line, because module files are no longer needed.

Without linking in gprof support, a variable that the instrumentation code uses
for a spin lock never gets initialized. The code tries to take this lock in the
first Fortran code that the system starts to execute. Because that variable
isn't set to the `unlocked' value, the code spins forever. Thus, the program
hangs at startup in gprof instrumentation code that no one expected to see
there:

  #0  0x000000000167e07c in __mcount_internal (frompc=17248776, selfpc=16783752) at mcount.c:78
  78              while (atomic_compare_and_exchange_bool_acq (&p->mcount_hwthd, hwthd, -1));
  (gdb) bt
  #0  0x000000000167e07c in __mcount_internal (frompc=17248776, selfpc=16783752) at mcount.c:78
  #1  0x000000000165ce78 in ._mcount ()
  #2  0x0000000001001988 in mpi_main () at fort.f90:1
  #3  0x0000000001073208 in AMPI_Fallback_Main (argc=1, argv=0x19c6696ca0) at ampi.C:487
  #4  0x0000000001072cac in MPI_threadstart_t::start (this=0x19c6918e40) at ampi.C:663
  #5  0x0000000001072e8c in AMPI_threadstart (data=0x19c678c820) at ampi.C:680
  #6  0x000000000100514c in startTCharmThread (msg=0x19c678c800) at tcharm.C:162
  #7  0x000000000109885c in CthStartThread (fn=@0x1934390: 0x10050f0 <startTCharmThread(TCharmInitMsg*)>, arg=0x19c678c800) at threads.c:1694
  #8  0x0000000001098820 in ?? () at threads.c:663

Change-Id: I3b78d18294ede29546343e2308361ed5b6c61597

6 years agonetlrts & verbs: remove unused variable declaration _charmEpoch 28/428/3
Bilge Acun [Mon, 10 Nov 2014 22:21:18 +0000 (16:21 -0600)]
netlrts & verbs: remove unused variable declaration _charmEpoch

Left here during the intial lrts transformation, not needed anymore.

Change-Id: Iaffc8bd607cb321a6f60239963906ad6023cc642

6 years agoMention additional example code in TRAM documentation 80/480/2
Lukasz Wesolowski [Tue, 27 Jan 2015 04:48:45 +0000 (12:48 +0800)]
Mention additional example code in TRAM documentation

Change-Id: I64e8ca4587486a3696838399e9fe96fd2206bb2f

6 years agocharmc: Add a -touch-on-failure option to replace ugly stuff in the makefile 62/462/2
Phil Miller [Mon, 19 Jan 2015 21:25:11 +0000 (15:25 -0600)]
charmc: Add a -touch-on-failure option to replace ugly stuff in the makefile

Change-Id: I131ab38819574901f49b3ebcf89f2c4dba349665

6 years agoCleanup #538: TSAN Data races in global variable init, cmd-line arguments. 29/429/6
Eric Bohm [Mon, 5 Jan 2015 23:02:48 +0000 (17:02 -0600)]
Cleanup #538: TSAN Data races in global variable init, cmd-line arguments.

Most of these solved by limiting to CmiRank==0.  A few required CmiLock.
One required conversion from static to CpvStatic.
The locks are only during initialization, with negligible performance impact.

Initialize only once semantics required split of arg list processing from variable initialization for global statics.

Change-Id: I92ce897fd5759cb83e9fd973e947886d75743fcb

6 years agoCleaning up charm++ reduction examples 21/421/3
Bilge Acun [Tue, 4 Nov 2014 20:07:47 +0000 (14:07 -0600)]
Cleaning up charm++ reduction examples

Put the reduction examples in one place: examples/charm++/reductions/
Update the manual to point new place of the examples.
Remove unnecessary copy AllReduce/bench folder.

Change-Id: I622279389fb2cfc3308850aa24a274ea3605f39a

6 years agoBug #612: delete unused and soon to redundant commlib tests 77/477/2
Eric Bohm [Fri, 23 Jan 2015 23:12:03 +0000 (17:12 -0600)]
Bug #612: delete unused and soon to redundant commlib tests

Change-Id: Ib91702205d9fb6f41a9cd3022f0a3125cb358138

6 years agoAdd missing include <functional> 78/478/1
Phil Miller [Mon, 26 Jan 2015 00:31:34 +0000 (18:31 -0600)]
Add missing include <functional>

On Visual Studio 2013, this isn't included by any of the other headers
here, and so the build breaks.

Change-Id: I316a5a4cd0add0acc23ce78b5df0ea6ee5163c82

6 years agoAdding a test target for kNeighbor test 67/467/5
Bilge Acun [Tue, 20 Jan 2015 21:33:07 +0000 (15:33 -0600)]
Adding a test target for kNeighbor test

Change-Id: I80f054a763a90620ce94d3afd0e1ad87227de8d7

6 years agoFixing an interface issue of collision library 74/474/2
Ehsan Totoni [Wed, 21 Jan 2015 20:26:21 +0000 (14:26 -0600)]
Fixing an interface issue of collision library

Charm collision library provides an interface
for a "client" group to be defined but it has
to extend a client group it provides. Therefore,
when the library is built, its .dec.h header
needs to be copied to /include. This change addresses this.
A mpi-interop example was hacking around by
copying that declaration file, which is fixed here as well.

Change-Id: I72c80ca8048f98fafc1e3941c60c620eb7214c04

6 years agonetlrts & verbs: remove unused CmiIdleState declaration 27/427/2
Bilge Acun [Mon, 10 Nov 2014 20:13:35 +0000 (14:13 -0600)]
netlrts & verbs: remove unused CmiIdleState declaration

Left here during the intial lrts transformation, not needed anymore.

Change-Id: Ibce866034027cba2942f74c7b0e7ac26bf27cf88

6 years ago#556 multicore: Migrate from 'net' underpinnings to 'netlrts' 79/379/6
Phil Miller [Mon, 29 Sep 2014 23:29:35 +0000 (18:29 -0500)]
#556 multicore: Migrate from 'net' underpinnings to 'netlrts'

Change-Id: I65109d2c6b3f1083799d9f6fb89833a998041ef6

6 years agotests/charm++/streamingAllToAll: Add missing $(TESTOPTS) 69/469/2
Phil Miller [Tue, 20 Jan 2015 23:27:50 +0000 (17:27 -0600)]
tests/charm++/streamingAllToAll: Add missing $(TESTOPTS)

Change-Id: I3b06b1f67f33e9edd2efd0d01ef95a8f3f339dce

6 years agoBug #609: Delete unused and not very useful tests/charm++/commSpeed 61/461/2
Phil Miller [Sat, 17 Jan 2015 21:50:47 +0000 (15:50 -0600)]
Bug #609: Delete unused and not very useful tests/charm++/commSpeed

This has been superseded by more intensive and targeted test programs.

Change-Id: Ib9219f95ff682cb5e8eb6f0adbdf3ee8cee6c77e

6 years agodoc/markupSanitizer.py #328: Support Python 2 and 3 through Unicode string literal... 60/460/2
Nicholas Bock [Sat, 17 Jan 2015 21:40:04 +0000 (15:40 -0600)]
doc/markupSanitizer.py #328: Support Python 2 and 3 through Unicode string literal agnosticism

Change-Id: Ia902814d8921dfd04ab06725f7a5bb1d2a792612

6 years agoclean code for converting integer to memory address for gni 40/340/7
YanhuaSun [Mon, 4 Aug 2014 03:42:39 +0000 (22:42 -0500)]
clean code for converting integer to memory address for gni

Change-Id: Id4d7daf0e98dc645f4ce1d441fc6975c1d449497

6 years agoBug #615: startupTest not being tested in nightly build 70/470/1
Eric Bohm [Wed, 21 Jan 2015 00:47:57 +0000 (18:47 -0600)]
Bug #615: startupTest not being tested in nightly build

Updated to current CkArrayIndex API.  Fixed bug in Makefile.
Added to top level test Makefile.

Change-Id: Iec520eec87a0e0cd6dc22f61571c5ddc3867d79a

6 years agoFix rca error with Cray compiler 58/458/3
YanhuaSun [Thu, 15 Jan 2015 21:59:08 +0000 (15:59 -0600)]
Fix rca error with Cray compiler

Change-Id: I8f40cf5736dea3324c15465d82deefbcb144cecc

6 years ago323 - Improve documentation and examples regarding marshalling of user-defined types... 59/459/1
Ronak Buch [Fri, 16 Jan 2015 23:41:03 +0000 (17:41 -0600)]
323 - Improve documentation and examples regarding marshalling of user-defined types using PUP

Change-Id: Iaae55f2d62ca392d4d6014d3b0236e6565d93ef1

6 years ago#192: Remove deprecated CmiBool typedef and CmiTrue/CmiFalse macros 04/404/2
Phil Miller [Wed, 15 Oct 2014 17:27:28 +0000 (12:27 -0500)]
#192: Remove deprecated CmiBool typedef and CmiTrue/CmiFalse macros

Change-Id: I2a9c426d1905acb30b3677efad7a3081e3a4671c

6 years agockpt: Include readonly message variables in checkpoints and restore them on restart 53/453/2
Esteban Meneses-Rojas [Thu, 11 Dec 2014 22:09:21 +0000 (16:09 -0600)]
ckpt: Include readonly message variables in checkpoints and restore them on restart

Change-Id: Ibe679f748c9fc6ad5a1f8b1982e3faf71b9ee4a5

6 years agouiuc.edu to illinois.edu 55/455/1
Shanna DeSouza [Thu, 11 Dec 2014 20:19:10 +0000 (14:19 -0600)]
uiuc.edu to illinois.edu

Change-Id: I96c04f2979494c4860c9844996d378a92c890b05

6 years agoRevert "Change "cd $$d; $(MAKE)" to "cd $$d && $(MAKE)" to catch errors in cd command" 49/449/2
Lukasz Wesolowski [Tue, 9 Dec 2014 21:55:43 +0000 (15:55 -0600)]
Revert "Change "cd $$d; $(MAKE)" to "cd $$d && $(MAKE)" to catch errors in cd command"

The change was causing an immediate error when running make in doc

This reverts commit 0d277d6b045b48bea9ca94d50727118f33a8d126.

Change-Id: I54b4ba127ceb0f105779883e380d43f9ff08e924

6 years agoUpdate the version 48/448/1
Nikhil Jain [Mon, 8 Dec 2014 16:00:30 +0000 (10:00 -0600)]
Update the version

Change-Id: I8a0f6a5fa00c069e33eddd527384d680b02e0aef

6 years agoModify the test target to match our convention 47/447/2
Nikhil Jain [Sat, 6 Dec 2014 19:40:36 +0000 (13:40 -0600)]
Modify the test target to match our convention

Do not pass ++local explicitly, let it come from
TESTOPTS if needed.

Change-Id: I28793dd9497a1131207614675276717cf6e3c1b9

6 years agobug #555: Enable restart using different numNodes 46/446/2
Xiang Ni [Sat, 6 Dec 2014 16:03:37 +0000 (10:03 -0600)]
bug #555: Enable restart using different numNodes

If restart is done using different number of nodes, use
node 0's state for all nodes; similar scheme as we do
when numPEs is different

Change-Id: I9af292c10ebc773852334ab9153cd513917d296a

6 years agoTRAM user manual update and cleanup 45/445/2
Lukasz Wesolowski [Sat, 6 Dec 2014 05:08:19 +0000 (23:08 -0600)]
TRAM user manual update and cleanup

Change-Id: I73236099e158a163c03e10c3592d636cdfb35ada

6 years agoAdded MPI_STATUS(ES)_IGNORE declarations to the Fortran AMPI header 38/438/2
Sam White [Tue, 25 Nov 2014 20:04:48 +0000 (14:04 -0600)]
Added MPI_STATUS(ES)_IGNORE declarations to the Fortran AMPI header

Change-Id: I1aa8e3a704715936554ca05ee94879c1974fcf0c

6 years agoAdding test of fine-grained all-to-all using TRAM 40/440/5
Lukasz Wesolowski [Thu, 4 Dec 2014 23:10:15 +0000 (17:10 -0600)]
Adding test of fine-grained all-to-all using TRAM

Change-Id: If8cf3e9f90f97ad5841f8e8fa786951050fe3575

6 years agoAdd HPC Challenge Random Access to examples directory 39/439/4
Lukasz Wesolowski [Thu, 4 Dec 2014 00:21:20 +0000 (18:21 -0600)]
Add HPC Challenge Random Access to examples directory

Change-Id: I7851ca4592e7cd4caaba01cbccd66a4a4181f9ff

6 years ago#628 ckio: Check for EINTR when syncing data 44/444/2
Ronak Buch [Fri, 5 Dec 2014 22:17:27 +0000 (16:17 -0600)]
#628 ckio: Check for EINTR when syncing data

Change-Id: If94c237fa65cce12e20608e4f50bb13dfa04bf57

6 years agoDisable IMMEDIATE msgs in multicore builds, no comm thread 42/442/4
Nikhil Jain [Fri, 5 Dec 2014 21:22:30 +0000 (15:22 -0600)]
Disable IMMEDIATE msgs in multicore builds, no comm thread

Change-Id: I2caf3acf903b8e4119efdca4d43d7d390f68282b

6 years agoexamples/collide: Fix Makefiles to test binaries with explicit relative path 24/424/6
Phil Miller [Fri, 7 Nov 2014 17:10:51 +0000 (11:10 -0600)]
examples/collide: Fix Makefiles to test binaries with explicit relative path

Change-Id: I3cf05f0cd473a1b6f0d61330ad2b0473938907c0

6 years agoFix a bug in Charm++ pingpong - missing break statement 43/443/3
Lukasz Wesolowski [Fri, 5 Dec 2014 21:38:27 +0000 (15:38 -0600)]
Fix a bug in Charm++ pingpong - missing break statement

Change-Id: I526929bf537bfacaf35be7ac8a6d2ba8b48abd30

6 years agoadd test to detect macro conflict arising due to C++ MPI bindings 34/434/3
Anirudh Jayakumar [Tue, 25 Nov 2014 08:27:42 +0000 (02:27 -0600)]
add test to detect macro conflict arising due to C++ MPI bindings

Change-Id: I9eab5e121133013a3cc9863ad35e73c6e57f6e35

6 years agonet layer time: do not subtract Cmi_clock 41/441/1
Jim Phillips [Fri, 5 Dec 2014 17:31:09 +0000 (11:31 -0600)]
net layer time: do not subtract Cmi_clock

Subtracting Cmi_clock leads to incorrect output in cases
where Charm's scheduler is restarted multiple times, for
example as done in NAMD.

Change-Id: Ia52d7715b03f2899367af9950d15b06b6ee0d839

6 years agockio: remove entire array (including groups and elements) after session completes. 33/433/5
Gengbin Zheng [Tue, 18 Nov 2014 22:52:34 +0000 (16:52 -0600)]
ckio: remove entire array (including groups and elements) after session completes.

The intermediate reduction added in 03ec7085a3945d174ed260aa14c52a0cede3a241 undid
the whole-array destruction.

Change-Id: I2c31ff3ae19d812109706032dd65e874dfe7557f

6 years agoArray reductions: When deleting the whole array, stop counting contributors 37/437/1
Phil Miller [Tue, 25 Nov 2014 21:36:09 +0000 (15:36 -0600)]
Array reductions: When deleting the whole array, stop counting contributors

When a chare array is being destroyed, the infrastructure to count contributors
on each PE, and restructure the reduction tree when one becomes barren, is
just extra work.

This extra work causes a problem because it sends messages to group elements
that are being deleted. These messages represent leaked memory each time an
array is destroyed. They also prevent QD from ever triggering thereafter.

Discovered and characterized by Tom Quinn in discussion on
http://charm.cs.illinois.edu/gerrit/433/

Change-Id: I04a7c994a08fdc0485c344157ac872287e5e1f21

6 years agoTypo fix 35/435/1
Phil Miller [Tue, 25 Nov 2014 18:42:22 +0000 (12:42 -0600)]
Typo fix

Change-Id: Ib375eb8e97e7273f0116ee8097e90a04686c25a8

6 years agofix remote_event bug on CrayXC 32/432/2
Yanhua Sun [Tue, 18 Nov 2014 04:55:28 +0000 (20:55 -0800)]
fix remote_event bug on CrayXC

GNI_CQ_GET_INST_ID() allows a user to retrieve the instance ID (inst_id)
field from an event dequeued from a source completion queue (attached to a GNI endpoint).
GNI_CQ_GET_REM_INST_ID() allows a user to retrieve the instance ID field
from an event dequeued from a destination completion queue (attached to
GNI registered memory).

Change-Id: I91d5f8e000d162f87f7bc9a7f8d8f37ed89e7a95

6 years agoFeature #574 win: Copy binaries to <build>/bin inside Makefile 31/431/2
Michael Robson [Wed, 12 Nov 2014 07:08:02 +0000 (01:08 -0600)]
Feature #574 win: Copy binaries to <build>/bin inside Makefile

Change-Id: Ic6e4499959c58f3eb2a516b7c36b07519d63cea0

6 years agoPartitions: Print output redirection message on partition 0 node 0 30/430/1
Phil Miller [Tue, 11 Nov 2014 19:25:24 +0000 (13:25 -0600)]
Partitions: Print output redirection message on partition 0 node 0

Change-Id: I0cb9f29d690d206e0dcbe47601e1992a9d0a4e7e

6 years agoDisable remote_event macro for CMK_CRAYXC 25/425/6
Yanhua Sun [Fri, 7 Nov 2014 18:02:10 +0000 (10:02 -0800)]
Disable remote_event macro for CMK_CRAYXC

Change-Id: I691154bb9352ff4790df3b28451c4f8529d8a97c

6 years agofix uGNI machine.c send_smsg_message function call error 26/426/3
Yanhua Sun [Sat, 8 Nov 2014 04:16:28 +0000 (20:16 -0800)]
fix uGNI machine.c send_smsg_message function call error

Change-Id: I6162d576f18acaaee18fee67d45ecb7ddbe97546

6 years agoIssue 374, BGQ Mapping: use kernel call to find the mapping 22/422/2
Nikhil Jain [Tue, 4 Nov 2014 21:49:20 +0000 (21:49 +0000)]
Issue 374, BGQ Mapping: use kernel call to find the mapping

Change-Id: I19391f3662f82e978899a48cfb45ee4ed194e822

6 years agoAdd pxshm conv-mach in verbs 70/370/5
Nikhil Jain [Mon, 15 Sep 2014 20:29:17 +0000 (15:29 -0500)]
Add pxshm conv-mach in verbs

This should enable use of pxshm with verbs layer. Use of
lock is needed for correctness.

Change-Id: Ia89893f8dbff3ff7d68d88ee0b55f8a22df40fe6

6 years agoFeature #574 win: Copy binaries to <build>/bin not /usr/bin 23/423/7
Michael Robson [Wed, 5 Nov 2014 19:00:40 +0000 (13:00 -0600)]
Feature #574 win: Copy binaries to <build>/bin not /usr/bin

Change-Id: I0e383dbc7b5426bb4ebd1df80923845b5b320deb

6 years agoChanges to handle failures during checkpointing 15/415/4
Xiang Ni [Tue, 28 Oct 2014 04:24:02 +0000 (23:24 -0500)]
Changes to handle failures during checkpointing

This commit enables Charm++ RTS to handle failures that occur during checkpointing: this is achieved by keeping the previous checkpoint around till the new checkpoint is generated on all processors. CmiReduce is used to find the last safe checkpoint on all processors when failures happen.

Change-Id: Ib83de2c5d66b6257809d365b1c617298bb89f9c3

6 years ago#161 verbs, netlrts: Complete rename of 'noprocforcommthread' to 'sleepOnIdle' 77/377/3
Phil Miller [Mon, 29 Sep 2014 22:32:51 +0000 (17:32 -0500)]
#161 verbs, netlrts: Complete rename of 'noprocforcommthread' to 'sleepOnIdle'

Change-Id: I96aeca113f1dcbdfb81264a7e33d151b738c3bbd

6 years agonet & multicore: Print overall execution time at shutdown 76/376/3
Phil Miller [Mon, 29 Sep 2014 16:40:35 +0000 (11:40 -0500)]
net & multicore: Print overall execution time at shutdown

Change-Id: I01b187ac9a242537d518c1fa9f4e3acf0dc8b27b

6 years agoMake examples/collide workable 19/419/1
Phil Miller [Fri, 31 Oct 2014 19:14:32 +0000 (14:14 -0500)]
Make examples/collide workable

Add a top-level Makefile, and use $TESTOPTS in `make test' in the
subdirectory Makefiles.

Change-Id: I6016fa8081b3f251fdcba29a2c23a45f1c0f1d3f

6 years agoWindows unix2nt_cc: Add support for un-defining preprocessor macros 10/410/4
Phil Miller [Tue, 21 Oct 2014 19:07:31 +0000 (14:07 -0500)]
Windows unix2nt_cc: Add support for un-defining preprocessor macros

Change-Id: Id85176dd7c0c2ad9118c53fffa7b31cb44288c7b

6 years agonetlrts & verbs: eliminate usage of CmiState in the machine layer 03/403/6
Bilge Acun [Wed, 15 Oct 2014 15:26:30 +0000 (10:26 -0500)]
netlrts & verbs: eliminate usage of CmiState in the machine layer

CmiState usage is abstracted away from the machine layer by replacing
CmiGetPeGlobal with CmiMyPeGlobal and adding a new function,
CmiIdleLock_hasMessage to check if the state has messages

Change-Id: I772849f6228c95b94cd8f6d8baa5488b99cf11d7

6 years agoSet stack size for QT threads 14/414/3
Ehsan Totoni [Sun, 26 Oct 2014 16:51:19 +0000 (11:51 -0500)]
Set stack size for QT threads

QT code allocates the stack but does not
set the stack size in the base thread data structure.
This was causing a crash in net-linux builds for
thread stack check routine since it uses the stack size.

Change-Id: Ibccaf7b2629fc4150ba3076b975202bc64fe1be7

6 years agosolving issue of thread check code on win c 13/413/2
Ehsan Totoni [Fri, 24 Oct 2014 20:48:46 +0000 (15:48 -0500)]
solving issue of thread check code on win c

Win C compiler follows C90 standard that
prohibits mixing declarations and code.
The code is rearranged to follow those rules.

Change-Id: Ica7c9aa5f4c23619eea6e2138162139ec3332a4d

6 years agoBug #547 charmrun: exit(1) if mixed localhost and non-localhost detected in a nodelist 12/412/5
Michael Robson [Wed, 22 Oct 2014 02:42:06 +0000 (21:42 -0500)]
Bug #547 charmrun: exit(1) if mixed localhost and non-localhost detected in a nodelist

If localhost is used with other hostnames execution of the code will
hang unless the only other hostname used is the current host. This is
because nodes will try to connect to themselves instead of the intended node
due to using the loopback IP discovered from localhost.

Change-Id: Ia3d533eec16489741d58f5712a23c4df4e282ae3

6 years agoAdding sanity check (e.g. stack) in CthSuspend 97/397/4
Ehsan Totoni [Sun, 12 Oct 2014 20:29:32 +0000 (15:29 -0500)]
Adding sanity check (e.g. stack) in CthSuspend

CthSuspend is called after user functions so it is a good place
for checking for data corruption and stack overflow.
This code checks the magic number for corruption,
and checks the current stack pointer to see if it is still
between start and end of the thread's stack.

Change-Id: I22a39436e979085ecb692bdee9e15c1eb14b68ef

6 years agochanges for the new PE on Blue Waters. 11/411/4
Gengbin Zheng [Tue, 21 Oct 2014 19:43:36 +0000 (14:43 -0500)]
changes for the new PE on Blue Waters.

Cray-pmi package does not seem to be configured correctly by pkg-config.
However, pmi issue from the last PE (PMI env vars were not taken by CC
wrapper) is fixed. So pretty much we can discard the fix in conv-mach.sh
for the last PE.

Change-Id: I55b8fa4f20e41cc09770b136940cbaf197229fb5

6 years agonetlrts - verbs: initializing numNodes and myNodeID in LrtsInit 92/392/7
Bilge Acun [Tue, 7 Oct 2014 23:06:56 +0000 (18:06 -0500)]
netlrts - verbs: initializing numNodes and myNodeID in LrtsInit

eliminate usage of _Cmi_numnodes and _Cmi_mynode, replace with machine specific variables

Change-Id: I10ae3e7552a9d770d62f182877c2570c0200f325

6 years agoAdd Testopts to bgtest targets 09/409/2
Nikhil Jain [Tue, 21 Oct 2014 18:53:07 +0000 (13:53 -0500)]
Add Testopts to bgtest targets

Change-Id: Ic396f6f16945680aa52d17968ddafba20e4963eb

7 years agoMove TESTOPTS after binary name, so charmrun doesn't get confused with RTS flags 07/407/1
Phil Miller [Fri, 17 Oct 2014 21:54:00 +0000 (16:54 -0500)]
Move TESTOPTS after binary name, so charmrun doesn't get confused with RTS flags

Change-Id: Id20dace44164d333995160ad7972cd248551fe29

7 years agoCleanup #570 removing nothing_doing example 02/402/2
Bilge Acun [Tue, 14 Oct 2014 22:32:42 +0000 (17:32 -0500)]
Cleanup #570 removing nothing_doing example

Change-Id: I6166a4824229906b0fe50606087dfbbb5c4ec417

7 years agoCleanup #562 removing Maj_Min example - outdated frequency scaling example 01/401/2
Bilge Acun [Tue, 14 Oct 2014 22:28:38 +0000 (17:28 -0500)]
Cleanup #562 removing Maj_Min example - outdated frequency scaling example

Change-Id: If5ae2bcad24aba86b3127dd09e1eb5d5d5c46e20

7 years agoStandardize make commands to use "$(MAKE) -C" 06/406/3
Michael Robson [Wed, 15 Oct 2014 21:50:25 +0000 (16:50 -0500)]
Standardize make commands to use "$(MAKE) -C"

Previously these commands were using a variety of make and $(MAKE).
$(MAKE) is preferred for recursive calls because it will use the version
of make used to invoke the top level call. This also passes the
MAKEFLAGS variable for sub-makes. See section 5.7.1 of the GNU make
manual for more info.

Another form of variation was the use of "cd DIR ; make", which is
will not correctly catch errors, or "cd DIR && make", which will correctly
catch errors. I have used the -C flag instead per the instructions in
section 5.7 of the GNU make manual on recursive use of make. This will
generate the equivalent of "cd DIR && make" which will fail if the cd
fails instead of not cd'ing and silently continuing.

Change-Id: I139231172c7422ac556a5a81f734f541173746d0

7 years agoChange "cd $$d; $(MAKE)" to "cd $$d && $(MAKE)" to catch errors in cd command 05/405/3
Michael Robson [Wed, 15 Oct 2014 21:41:48 +0000 (16:41 -0500)]
Change "cd $$d; $(MAKE)" to "cd $$d && $(MAKE)" to catch errors in cd command

Change-Id: I91fe67890eec6863c3209c2ad6c48209bd51ec1e

7 years agotests/charm++/communication_overhead: Respect $TESTOPTS 00/400/1
Phil Miller [Tue, 14 Oct 2014 19:43:55 +0000 (14:43 -0500)]
tests/charm++/communication_overhead: Respect $TESTOPTS

Change-Id: I4b55b0ff68e65b9f8fe08e81fa72934625631048

7 years agofix bgtest error in NQueen makefile 99/399/1
YanhuaSun [Tue, 14 Oct 2014 02:00:58 +0000 (21:00 -0500)]
fix bgtest error in NQueen makefile

Change-Id: I5e7e67e4fde59941de3ca443e68ad6e49a65480b

7 years agoCleanup SDAG output by always putting a space after the comma 96/396/1
Michael Robson [Thu, 9 Oct 2014 23:22:10 +0000 (18:22 -0500)]
Cleanup SDAG output by always putting a space after the comma

Change-Id: Iaa31a64df66a2c175e75c75e6fe1eeb9e9623e4c

7 years agocharmxi sdag: Fix cases where commas would be missing in generated parameter lists 95/395/1
Phil Miller [Thu, 9 Oct 2014 21:55:59 +0000 (16:55 -0500)]
charmxi sdag: Fix cases where commas would be missing in generated parameter lists

The cases in question involved constructions of the following form:

entry void foo(void) {
  when bar[refnum_bar](int r),
       baz[refnum_baz](int z) {
  }
};

Specifically, multiple entries associated with a single `when'
construct, each with a reference number expression, in a context with
no state to be provided from any enclosing scope.

Change-Id: I4d54998a1b2a720a2af395d0200550893da24adf

7 years agocharmxi: Always emit a definition of the ChareClass_SDAG_CODE macro 94/394/1
Phil Miller [Thu, 9 Oct 2014 19:37:48 +0000 (14:37 -0500)]
charmxi: Always emit a definition of the ChareClass_SDAG_CODE macro

Rob Van Der Wijngaart of Intel noted that the definition of this macro
being conditional on the presence of SDAG code in a given chare class's
declaration was a usability impediment. Specifically, removing some
unused SDAG code from the .ci file could cause compilation failures in
the C++ source files.

Change-Id: I5d60b2dee2b2d8f9ba67c48ec1a8283c7d75ec48

7 years agoremove queens and PMEMimic from example 93/393/3
YanhuaSun [Wed, 8 Oct 2014 03:22:48 +0000 (22:22 -0500)]
remove queens and PMEMimic from example

Change-Id: Ie1abae9ea4a06757d34586344a85dc2c899b7c74

7 years agoclang: remove archaic 'register' declarations to quiet warnings from system headers 78/378/4
Phil Miller [Mon, 29 Sep 2014 22:36:13 +0000 (17:36 -0500)]
clang: remove archaic 'register' declarations to quiet warnings from system headers

Change-Id: I093c0b8dbde118f79f3af2bbf9967febe0b4fbbf

7 years agocharmxi: Support more general expressions in the length of readonly array variables 87/387/3
Phil Miller [Mon, 6 Oct 2014 21:59:23 +0000 (16:59 -0500)]
charmxi: Support more general expressions in the length of readonly array variables

Change-Id: Ib932a05b43aa87d08c97d86cfa0e456aa31b565b

7 years agoTRAM: remove the need to add -module completion when linking application binary 91/391/2
Lukasz Wesolowski [Tue, 7 Oct 2014 20:40:10 +0000 (15:40 -0500)]
TRAM: remove the need to add -module completion when linking application binary

Change-Id: I490e8b2d2bfed3fbdb50d6b406ee5a17c7efcf82

7 years agoTRAM documentation: add description of how to link in the required module and registe... 89/389/4
Lukasz Wesolowski [Tue, 7 Oct 2014 19:38:07 +0000 (14:38 -0500)]
TRAM documentation: add description of how to link in the required module and register template instances

Change-Id: Icdbe2081ff2e01eaa3339066e7dcf02166b324e5

7 years agoFix a race condition in CkLoop 63/363/5
Harshitha [Tue, 2 Sep 2014 17:22:19 +0000 (12:22 -0500)]
Fix a race condition in CkLoop

Change-Id: I04ef27b939344e39fdb3ee9ce6252f82545d455d

7 years agoBug #445 Remove edges from commData when either the sender or the receiver is not... 90/390/2
Harshitha [Tue, 7 Oct 2014 20:20:10 +0000 (15:20 -0500)]
Bug #445 Remove edges from commData when either the sender or the receiver is not present/deleted

Change-Id: I396ab052f5747eccc1231953f8073b7f90c74e4e

7 years agocharmxi: Support multi-dimensional arrays for readonly variables 80/380/4
Phil Miller [Tue, 30 Sep 2014 19:29:12 +0000 (14:29 -0500)]
charmxi: Support multi-dimensional arrays for readonly variables

Change-Id: Ia43fc6e651674ed492e5e194618479fe17f9f996

7 years agoWhen the charm build is ChaNGa, set --enable-lbuserdata 85/385/2
Harshitha [Mon, 6 Oct 2014 17:38:45 +0000 (12:38 -0500)]
When the charm build is ChaNGa, set --enable-lbuserdata

Change-Id: Ic1c11d27609efd9467e0d9a0b12f3d6db8cefa94

7 years agoBug #552. Check source is not NULL before memcpy 72/372/4
Harshitha [Fri, 19 Sep 2014 02:27:11 +0000 (21:27 -0500)]
Bug #552. Check source is not NULL before memcpy

Change-Id: I3d100e876f3e16ab814252058f0cab1628e0ef8c

7 years agoAdd documentation on how to use your own load balancer without modifying the charm... 75/375/3
Harshitha [Tue, 23 Sep 2014 13:33:10 +0000 (08:33 -0500)]
Add documentation on how to use your own load balancer without modifying the charm source.

Change-Id: I013c06fd92400aa968ef4c15462ddb970e3db677

7 years agoFix conv-mach for correctly using user-defined MPI compilers 74/374/1
Nikhil Jain [Mon, 22 Sep 2014 20:47:34 +0000 (15:47 -0500)]
Fix conv-mach for correctly using user-defined MPI compilers

Change-Id: I410a2003d783808cf94634b729c5d3a2863b2f4b

7 years agoBug #552. Initialize the data part in the lbuserdata. 71/371/2
Harshitha [Thu, 18 Sep 2014 21:27:08 +0000 (16:27 -0500)]
Bug #552. Initialize the data part in the lbuserdata.

Change-Id: I3b9828ca58eb3579f3030e7eb21d16b24715748c

7 years agodisable recent optimizations on ckreductionfor syncFT, since it is broken. 39/339/3
Gengbin Zheng [Fri, 1 Aug 2014 23:30:23 +0000 (18:30 -0500)]
disable recent optimizations on ckreductionfor syncFT, since it is broken.

Change-Id: I7dec4b5b4333e309d62508cfa2cec7a30fb26139

7 years agoAdding a test measuring task(chare) spawning performance 76/276/4
Lukasz Wesolowski [Wed, 11 Jun 2014 23:03:15 +0000 (18:03 -0500)]
Adding a test measuring task(chare) spawning performance

Change-Id: Ia625cfa2d658ccec230337b2f474018c3a63c7b5

7 years agoUpdate wave2d example to use new init function so liveViz works with other reductions 26/326/4
Zhengqi Yang [Tue, 29 Jul 2014 17:10:44 +0000 (12:10 -0500)]
Update wave2d example to use new init function so liveViz works with other reductions

Change-Id: I8548ef3c64bc0a6eaeda4aabb211c721e2c5d8d5

7 years agoBug #501: Also consider CPUs that are temporarily powered down by the OS. 92/292/3
Jim Phillips [Wed, 18 Jun 2014 19:54:16 +0000 (14:54 -0500)]
Bug #501: Also consider CPUs that are temporarily powered down by the OS.

Change-Id: I69d00eb73ecbbc2eb9fec5bdc38a88b4a7946873

7 years agoAdd test for marshalled pingpong on 1d array 69/369/3
Eric Bohm [Tue, 9 Sep 2014 17:01:14 +0000 (12:01 -0500)]
Add test for marshalled pingpong on 1d array

Change-Id: I994419c202d0ee302c0f47393a98ce59c51301a3

7 years agoAdd conv-mach.{h,sh} for threadsanitizer 58/358/3
Ronak Buch [Wed, 27 Aug 2014 22:04:03 +0000 (17:04 -0500)]
Add conv-mach.{h,sh} for threadsanitizer

Change-Id: I9a298b7abc39e02603fd9cd84fba5b254d69bcb1

7 years agoAdding a benchmark to determine communication overhead for Charm++ group and array... 94/294/2
Lukasz Wesolowski [Fri, 28 Feb 2014 20:05:37 +0000 (14:05 -0600)]
Adding a benchmark to determine communication overhead for Charm++ group and array messages

Change-Id: I9550ce09bdc3c028d54efa1157e467c78e570c6d

7 years agoUpdate version to 6.6.0 65/365/2
Eric Bohm [Mon, 8 Sep 2014 17:09:22 +0000 (12:09 -0500)]
Update version to 6.6.0

Change-Id: I4bbfa91b5cc735eee5260856268f2ea013207a84

7 years agoModernize README 68/368/1
Ronak Buch [Tue, 9 Sep 2014 16:59:39 +0000 (11:59 -0500)]
Modernize README

Change-Id: I67ca822d7d9e0c838a32a4d0d04d147288254dcc

7 years agoCkIO: make Manager *manager a Ckpv variable for SMP safety. 64/364/1
Thomas Quinn [Thu, 4 Sep 2014 15:39:25 +0000 (10:39 -0500)]
CkIO: make Manager *manager a Ckpv variable for SMP safety.

Change-Id: I9496ca4778578d6706163897b0c251ae12dbde73

7 years agoCkIO: work around contribute/ckdestroy problem. 56/356/4
Thomas Quinn [Sun, 24 Aug 2014 22:57:56 +0000 (17:57 -0500)]
CkIO: work around contribute/ckdestroy problem.

Change-Id: Ia805cbc9a2c0d15bba719697255ae78a92b7119a

7 years agoUpdate installation manual to use gerrit url 60/360/3 v6.6.0
Michael Robson [Wed, 27 Aug 2014 23:19:40 +0000 (18:19 -0500)]
Update installation manual to use gerrit url

Change-Id: I65fbf156390d87df0fb8d38ad9ccfc6c22589172

7 years agoRelease notes for 6.6.0 59/359/1
Phil Miller [Wed, 27 Aug 2014 22:32:30 +0000 (17:32 -0500)]
Release notes for 6.6.0

Change-Id: Icc2bf71eca3f81f68491631c1d5bcc749cf86d08

7 years agobugfix: copy QLOGIC from net-linux-x86_64-ibverbs to verbs-linux-x86_64 18/318/3 v6.6.0-rc4
Eric John Bohm of group sohrab [Thu, 17 Jul 2014 22:38:38 +0000 (18:38 -0400)]
bugfix: copy QLOGIC from net-linux-x86_64-ibverbs to verbs-linux-x86_64

tested on Yale Omega cluster which is QLogic based

Change-Id: I51c9f2ab5856d99be8cb314326ecae4bae8c82da

7 years agosmart-build: Default to multicore on Mac OS (darwin) systems 50/350/4
Phil Miller [Fri, 8 Aug 2014 02:05:32 +0000 (21:05 -0500)]
smart-build: Default to multicore on Mac OS (darwin) systems

Change-Id: I2e7efc142f35e298c5737a80d59a0e2bce730bf4