charm.git
12 years agouse test result for kill() to guard the code
Gengbin Zheng [Fri, 9 Oct 2009 04:12:41 +0000 (04:12 +0000)]
use test result for kill() to guard the code

12 years agoupdated
Gengbin Zheng [Fri, 9 Oct 2009 04:09:25 +0000 (04:09 +0000)]
updated

12 years agofor getpid/kill test link, instead of just partially compiled.
Gengbin Zheng [Fri, 9 Oct 2009 04:08:58 +0000 (04:08 +0000)]
for getpid/kill test link, instead of just partially compiled.

12 years agotest kill()
Gengbin Zheng [Fri, 9 Oct 2009 03:56:40 +0000 (03:56 +0000)]
test kill()

12 years agoEmulator: Cut 8 bytes from BgTimeLog by reordering
Phil Miller [Thu, 8 Oct 2009 22:18:27 +0000 (22:18 +0000)]
Emulator: Cut 8 bytes from BgTimeLog by reordering

BgTimeLog incorporated a lot of padding, because its members were not
ordered from largest to smallest. Reordering brings it down to exactly
the size of its members, from 208 bytes to 200. This 4% reduction can
slightly increase the maximum size of emulation runs.

12 years agoinitialize variable in testing 64 bit compiler to avoid a compiler warning.
Gengbin Zheng [Thu, 8 Oct 2009 21:07:31 +0000 (21:07 +0000)]
initialize variable in testing 64 bit compiler to avoid a compiler warning.

12 years agoif mpicxx calls icpc, add -m64
Gengbin Zheng [Thu, 8 Oct 2009 20:36:35 +0000 (20:36 +0000)]
if mpicxx calls icpc, add -m64

12 years agowhen 64 bit macro is set in conv-mach, but auto config does not agree with it print...
Gengbin Zheng [Thu, 8 Oct 2009 20:35:56 +0000 (20:35 +0000)]
when 64 bit macro is set in conv-mach, but auto config does not agree with it print an error message

12 years agoParFUM: Simplify and shave 10% from build time
Phil Miller [Thu, 8 Oct 2009 20:15:26 +0000 (20:15 +0000)]
ParFUM: Simplify and shave 10% from build time

Include <iosfwd> instead of <iostream> in ParFUM_internals.h, cutting
a little from the otherwise huge amount of work the compiler has to do
there.

12 years agominor change
Gengbin Zheng [Thu, 8 Oct 2009 03:00:24 +0000 (03:00 +0000)]
minor change

12 years agoinstead of using hardcoded 512M max malloc request size, use a dynamic high watermark...
Gengbin Zheng [Thu, 8 Oct 2009 02:28:50 +0000 (02:28 +0000)]
instead of using hardcoded 512M max malloc request size, use a dynamic high watermark to use in the sanity check of slot size.

12 years agominor change in info printing
Gengbin Zheng [Wed, 7 Oct 2009 23:04:54 +0000 (23:04 +0000)]
minor change in info printing

12 years agoFixed a typo of the previous check, which leads to the situation that pcqueue doesn...
Chao Mei [Wed, 7 Oct 2009 22:40:59 +0000 (22:40 +0000)]
Fixed a typo of the previous check, which leads to the situation that pcqueue doesn't use any locks at all for SMP.

12 years agoChanged CMK_USE_TLS_THREAD to CMK_NOT_USE_TLS_THREAD, made testing macros consistent...
Chao Mei [Wed, 7 Oct 2009 22:27:02 +0000 (22:27 +0000)]
Changed CMK_USE_TLS_THREAD to CMK_NOT_USE_TLS_THREAD, made testing macros consistent in pcqueue.h, and added some extra macros in net/machine.c. All is to make compiling different versions (or different optimization levels) of charm++ easily through defining different macros.

12 years agoBetter style formatting for the part where _immedaiteReady is set
Chao Mei [Wed, 7 Oct 2009 22:01:36 +0000 (22:01 +0000)]
Better style formatting for the part where _immedaiteReady is set

12 years agoFixed a bug for some case (only for NAMD so far) that immedaite messages will never...
Chao Mei [Wed, 7 Oct 2009 21:24:38 +0000 (21:24 +0000)]
Fixed a bug for some case (only for NAMD so far) that immedaite messages will never get ready.

12 years agoEmergencyExit() can not be called in bigsim because Ckpv can not be used from Convers...
Gengbin Zheng [Wed, 7 Oct 2009 17:22:18 +0000 (17:22 +0000)]
EmergencyExit() can not be called in bigsim because Ckpv can not be used from Converse layer

12 years agoin the topology information screen output, change cores to processors to avoid confus...
Gengbin Zheng [Wed, 7 Oct 2009 14:59:04 +0000 (14:59 +0000)]
in the topology information screen output, change cores to processors to avoid confusion with SMT.

12 years agodoes not work when num of pe is high, because assuming ppn of 1 as default, it requir...
Gengbin Zheng [Wed, 7 Oct 2009 04:33:03 +0000 (04:33 +0000)]
does not work when num of pe is high, because assuming ppn of 1 as default, it requires large number of nodes. Change to auto detect number of cores, and maximize the utilization of each node for running a job. Alternatively, one can use +n to choose how many nodes.

12 years agouse command to parse number of cores on each node for charmrun to submit job.
Gengbin Zheng [Wed, 7 Oct 2009 02:01:03 +0000 (02:01 +0000)]
use command to parse number of cores on each node for charmrun to submit job.

12 years agoDisabling comlib by putting ifdefs around the old comlib API calls. To fix this,...
Isaac Dooley [Tue, 6 Oct 2009 21:41:34 +0000 (21:41 +0000)]
Disabling comlib by putting ifdefs around the old comlib API calls. To fix this, the code needs to be converted to the new API which should be easy, and the necessary comlib strategies must be implemented.

12 years agock-libs Makefile: Massive de-duplication
Phil Miller [Tue, 6 Oct 2009 20:04:16 +0000 (20:04 +0000)]
ck-libs Makefile: Massive de-duplication

12 years agosome clean up
Gengbin Zheng [Tue, 6 Oct 2009 19:50:19 +0000 (19:50 +0000)]
some clean up

12 years agoupdated charm++ envelope
Gengbin Zheng [Tue, 6 Oct 2009 13:22:14 +0000 (13:22 +0000)]
updated charm++ envelope

12 years agocompress pathHistoryEnv so that it is less intrusive
Gengbin Zheng [Tue, 6 Oct 2009 05:26:45 +0000 (05:26 +0000)]
compress pathHistoryEnv so that it is less intrusive

12 years agodoxygen comments
Gengbin Zheng [Tue, 6 Oct 2009 05:12:52 +0000 (05:12 +0000)]
doxygen comments

12 years agofixed permission
Gengbin Zheng [Tue, 6 Oct 2009 05:12:33 +0000 (05:12 +0000)]
fixed permission

12 years agofixed a bug in if statement that prevent the function to read x-y format string right.
Gengbin Zheng [Tue, 6 Oct 2009 02:07:53 +0000 (02:07 +0000)]
fixed a bug in if statement that prevent the function to read x-y format string right.

12 years agodelete watcher object to force recorder to fclose file.
Gengbin Zheng [Tue, 6 Oct 2009 02:05:03 +0000 (02:05 +0000)]
delete watcher object to force recorder to fclose file.

12 years agowhen no +bgrecordprocessors option, default all processors are in record mode.
Gengbin Zheng [Tue, 6 Oct 2009 02:04:11 +0000 (02:04 +0000)]
when no +bgrecordprocessors option, default all processors are in record mode.

12 years agoBASE is set but not used in End(), removed it
Gengbin Zheng [Mon, 5 Oct 2009 17:11:11 +0000 (17:11 +0000)]
BASE is set but not used in End(), removed it

12 years agoadded prototype for CmiCpuTopologyEnabled()
Gengbin Zheng [Mon, 5 Oct 2009 16:56:25 +0000 (16:56 +0000)]
added prototype for CmiCpuTopologyEnabled()

12 years agodisable immediate msg for windows
Gengbin Zheng [Mon, 5 Oct 2009 02:34:26 +0000 (02:34 +0000)]
disable immediate msg for windows

12 years agooptimize some shell functions to speed it up under Cygwin
Gengbin Zheng [Sun, 4 Oct 2009 19:06:49 +0000 (19:06 +0000)]
optimize some shell functions to speed it up under Cygwin

12 years agotwo important changes:
Gengbin Zheng [Sun, 4 Oct 2009 19:04:32 +0000 (19:04 +0000)]
two important changes:
1. when cputopology somehow is not supported, make sure all functions still return meaningful answers as if all nodes are unique.
2. enable this feature on ms windows

12 years agocopy to legacy libmodulecommlib.a instead of linking again
Gengbin Zheng [Sun, 4 Oct 2009 18:53:30 +0000 (18:53 +0000)]
copy to legacy libmodulecommlib.a instead of linking again

12 years agoremoved un-referenced vars
Gengbin Zheng [Sun, 4 Oct 2009 14:30:12 +0000 (14:30 +0000)]
removed un-referenced vars

12 years agofixed a VC++ compiler warning
Gengbin Zheng [Sun, 4 Oct 2009 14:28:12 +0000 (14:28 +0000)]
fixed a VC++ compiler warning

12 years agofixed a bug in previous checkin that may let script go to infinite loop
Gengbin Zheng [Fri, 2 Oct 2009 15:37:16 +0000 (15:37 +0000)]
fixed a bug in previous checkin that may let script go to infinite loop

12 years agoit is important for autobuild to carry OPTS and TESTOPTS
Gengbin Zheng [Fri, 2 Oct 2009 13:33:04 +0000 (13:33 +0000)]
it is important for autobuild to carry OPTS and TESTOPTS

12 years ago- fixed problem in memory protection with mprotect
Filippo Gioachin [Fri, 2 Oct 2009 00:52:04 +0000 (00:52 +0000)]
- fixed problem in memory protection with mprotect
- updating the stack trace when freeing a block, so if we crash in it, we might be lucky and get the stack trace of where it got deallocated first (instead of the less useful allocation point)

12 years agofixed warning on CqsEnqueueGeneral, and added comment
Filippo Gioachin [Thu, 1 Oct 2009 23:28:06 +0000 (23:28 +0000)]
fixed warning on CqsEnqueueGeneral, and added comment

12 years agoBGL: move -Wno-deprecated to g++-only options
Phil Miller [Thu, 1 Oct 2009 18:09:21 +0000 (18:09 +0000)]
BGL: move -Wno-deprecated to g++-only options

12 years agoBGP: move -Wno-deprecated to g++-only options
Phil Miller [Thu, 1 Oct 2009 18:07:37 +0000 (18:07 +0000)]
BGP: move -Wno-deprecated to g++-only options

12 years agowhen occassionally failure of booting partition, keep submitting jobs
Gengbin Zheng [Thu, 1 Oct 2009 15:47:46 +0000 (15:47 +0000)]
when occassionally failure of booting partition, keep submitting jobs

12 years agoChanges for the net-smp machine layer to use mulitiple recv queues.
Chao Mei [Wed, 30 Sep 2009 23:11:24 +0000 (23:11 +0000)]
Changes for the net-smp machine layer to use mulitiple recv queues.

12 years agoAn alternative implementation of pcqueue which drops the function of auto expansion...
Chao Mei [Wed, 30 Sep 2009 23:10:19 +0000 (23:10 +0000)]
An alternative implementation of pcqueue which drops the function of auto expansion when the queue if full, thus simplifying operations and having fewer memory
accesses. The implementation is supposed to be used with CMK_SMP_MULTIQ enabled.
To use this pcqueue, compile with -DUSE_SIMPLE_PCQUEUE=1

12 years agoThe implementation for using multiple recv queues in smp layer. To enable this, compi...
Chao Mei [Wed, 30 Sep 2009 23:08:19 +0000 (23:08 +0000)]
The implementation for using multiple recv queues in smp layer. To enable this, compile with -DCMK_SMP_MULTIQ=1

12 years agoTests: fix pingpong's makefile for parallel make
Phil Miller [Wed, 30 Sep 2009 21:16:05 +0000 (21:16 +0000)]
Tests: fix pingpong's makefile for parallel make

12 years agotreate bluegene as mpi in ampiCC
Gengbin Zheng [Wed, 30 Sep 2009 16:38:15 +0000 (16:38 +0000)]
treate bluegene as mpi in ampiCC

12 years agoupdated
Gengbin Zheng [Wed, 30 Sep 2009 15:56:24 +0000 (15:56 +0000)]
updated

12 years agoadded psapi.lib to link line
Gengbin Zheng [Wed, 30 Sep 2009 15:51:19 +0000 (15:51 +0000)]
added psapi.lib to link line

12 years agoadvance version number to 6.2, leaving 6.1.* to the branch.
Gengbin Zheng [Wed, 30 Sep 2009 15:28:08 +0000 (15:28 +0000)]
advance version number to 6.2, leaving 6.1.* to the branch.

12 years agoaccounting for memory_allocated (may not be accurate)
Gengbin Zheng [Wed, 30 Sep 2009 02:21:11 +0000 (02:21 +0000)]
accounting for memory_allocated (may not be accurate)

12 years agominor changes of the previous checkin
Gengbin Zheng [Wed, 30 Sep 2009 01:56:55 +0000 (01:56 +0000)]
minor changes of the previous checkin

12 years agoadvanced charm version to 6.1.4
Gengbin Zheng [Wed, 30 Sep 2009 00:42:33 +0000 (00:42 +0000)]
advanced charm version to 6.1.4

12 years agouse GetProcessMemoryInfo in windows to get memory usage for CmiMemoryUsage()
Gengbin Zheng [Tue, 29 Sep 2009 23:41:20 +0000 (23:41 +0000)]
use GetProcessMemoryInfo in windows to get memory usage for CmiMemoryUsage()

12 years agoCharm Queue and its tests: Increase coverage, and cleanup
Phil Miller [Tue, 29 Sep 2009 23:13:42 +0000 (23:13 +0000)]
Charm Queue and its tests: Increase coverage, and cleanup

Start testing CqsEnqueueGeneral, with CQS_QUEUEING_FIFO and
CQS_QUEUEING_IFIFO.

Document that callers of CqsEnumerateQueue must CmiFree the result,
and do so in the test.

12 years agoPrioritized Queue: Major Cleanup
Phil Miller [Tue, 29 Sep 2009 22:12:57 +0000 (22:12 +0000)]
Prioritized Queue: Major Cleanup

- Remove several functions not used outside the implementation from
  the interface header.
- Move comments on function interfaces from implementation to header.
- Stop using archaic style function argument type declarations.
- Reflow comments and remove excess whitespace.

12 years agoa couple of useful include
Filippo Gioachin [Tue, 29 Sep 2009 22:10:52 +0000 (22:10 +0000)]
a couple of useful include

12 years agoallows to use gathertree to gather new directories (such as new examples or tests...
Filippo Gioachin [Tue, 29 Sep 2009 22:06:50 +0000 (22:06 +0000)]
allows to use gathertree to gather new directories (such as new examples or tests) automatically. It will use the variable "SYSTEMLN" if declared.

12 years agoadded psapi.lib for GetProcessMemoryInfo() to get memory stats for windows.
Gengbin Zheng [Tue, 29 Sep 2009 21:34:09 +0000 (21:34 +0000)]
added psapi.lib for GetProcessMemoryInfo() to get memory stats for windows.

12 years agore-enabled immediate msg and remove pcqueue lock
Gengbin Zheng [Tue, 29 Sep 2009 21:11:08 +0000 (21:11 +0000)]
re-enabled immediate msg and remove pcqueue lock

12 years agosome tweaks, enable immeidate msg again, comment out pcqueue lock.
Gengbin Zheng [Tue, 29 Sep 2009 20:50:23 +0000 (20:50 +0000)]
some tweaks, enable immeidate msg again, comment out pcqueue lock.

12 years agothe new turing linux (fc11) somehow require charm to specify -m32 to gcc.
Gengbin Zheng [Tue, 29 Sep 2009 20:00:57 +0000 (20:00 +0000)]
the new turing linux (fc11) somehow require charm to specify -m32 to gcc.

12 years agoinclude proper windows header file to test gethostname
Gengbin Zheng [Tue, 29 Sep 2009 19:34:17 +0000 (19:34 +0000)]
include proper windows header file to test gethostname

12 years agoCharm Queue: Document enumerate more fully
Phil Miller [Tue, 29 Sep 2009 16:05:20 +0000 (16:05 +0000)]
Charm Queue: Document enumerate more fully

12 years agoTest: Queue's enumerate functionality
Phil Miller [Tue, 29 Sep 2009 15:59:46 +0000 (15:59 +0000)]
Test: Queue's enumerate functionality

12 years agoTest: Queue covers LIFO and FIFO/LIFO mixed insertion
Phil Miller [Tue, 29 Sep 2009 15:45:40 +0000 (15:45 +0000)]
Test: Queue covers LIFO and FIFO/LIFO mixed insertion

12 years agoTest: run queue test with charmrun
Phil Miller [Tue, 29 Sep 2009 15:45:09 +0000 (15:45 +0000)]
Test: run queue test with charmrun

12 years agoTest: Add test target to queue, and add it to charm++'s tests
Phil Miller [Tue, 29 Sep 2009 15:21:54 +0000 (15:21 +0000)]
Test: Add test target to queue, and add it to charm++'s tests

12 years agoTest: Revise makefile to use new file name
Phil Miller [Tue, 29 Sep 2009 15:15:40 +0000 (15:15 +0000)]
Test: Revise makefile to use new file name

12 years agoTest: Move to a name that won't cause problems
Phil Miller [Tue, 29 Sep 2009 15:13:36 +0000 (15:13 +0000)]
Test: Move to a name that won't cause problems

12 years agoTest: Queue CqsMaxLength and CqsEnqueueFifo
Phil Miller [Tue, 29 Sep 2009 15:12:11 +0000 (15:12 +0000)]
Test: Queue CqsMaxLength and CqsEnqueueFifo

12 years agochange CMK_SHARED_VARS_NT_THREADS to CMK_SHARED_VARS_UNAVAILABLE to avoid a separate...
Gengbin Zheng [Tue, 29 Sep 2009 05:53:05 +0000 (05:53 +0000)]
change CMK_SHARED_VARS_NT_THREADS to CMK_SHARED_VARS_UNAVAILABLE to avoid a separate comm thread for non-smp.

12 years agochange from CMK_SHARED_VARS_NT_THREADS variables CMK_SHARED_VARS_UNAVAILABLE.
Gengbin Zheng [Tue, 29 Sep 2009 05:47:59 +0000 (05:47 +0000)]
change from CMK_SHARED_VARS_NT_THREADS variables CMK_SHARED_VARS_UNAVAILABLE.
Using CMK_SHARED_VARS_NT_THREADS actually creates comm thread, which is unnecessary.

12 years agoavoid using "max" as variable name since it may be defined by compiler as macro and...
Gengbin Zheng [Tue, 29 Sep 2009 04:13:17 +0000 (04:13 +0000)]
avoid using "max" as variable name since it may be defined by compiler as macro and cause compilation errors (on VC++)

12 years agoavoid use "max" as a variable name because it may be defined by compiler already.
Gengbin Zheng [Tue, 29 Sep 2009 04:08:56 +0000 (04:08 +0000)]
avoid use "max" as a variable name because it may be defined by compiler already.

12 years agodisable immediate msg since it is not working right now, will fix later.
Gengbin Zheng [Tue, 29 Sep 2009 02:39:11 +0000 (02:39 +0000)]
disable immediate msg since it is not working right now, will fix later.

12 years agosupport calling mpiexec when mpirun is not found (which is the case for MS MPI)
Gengbin Zheng [Tue, 29 Sep 2009 01:14:43 +0000 (01:14 +0000)]
support calling mpiexec when mpirun is not found (which is the case for MS MPI)

12 years agodealing with SUA (windows services for UNIX) where '.exe' needs to be appended like...
Gengbin Zheng [Mon, 28 Sep 2009 03:20:30 +0000 (03:20 +0000)]
dealing with SUA (windows services for UNIX) where '.exe' needs to be appended like cygwin

12 years agomake "make" happy by replacing $^ by $(LIBTRACE_CONTROLPOINTS)
Gengbin Zheng [Mon, 28 Sep 2009 03:13:42 +0000 (03:13 +0000)]
make "make" happy by replacing $^ by $(LIBTRACE_CONTROLPOINTS)

12 years agoreduce warning level
Gengbin Zheng [Sun, 27 Sep 2009 19:51:11 +0000 (19:51 +0000)]
reduce warning level

12 years agoa few changes so that it behaves more like a normal compiler, and can be used in...
Gengbin Zheng [Sun, 27 Sep 2009 19:33:07 +0000 (19:33 +0000)]
a few changes so that it behaves more like a normal compiler, and can be used in fftw's configure.

12 years agoallow unix2nt_ar <*.a> with only one argument (null operation)
Gengbin Zheng [Sun, 27 Sep 2009 15:39:27 +0000 (15:39 +0000)]
allow unix2nt_ar <*.a> with only one argument (null operation)

12 years agoMS MPI with VC++ 64 bit
Gengbin Zheng [Sun, 27 Sep 2009 03:17:55 +0000 (03:17 +0000)]
MS MPI with VC++ 64 bit

12 years agoInitialize isMemCritical to be CmiFalse if the entry method is not specified to be...
Chao Mei [Sat, 26 Sep 2009 04:28:02 +0000 (04:28 +0000)]
Initialize isMemCritical to be CmiFalse if the entry method is not specified to be memcritical because isMemCritical will not be set to CmiFalse by default if not initialized.

12 years agofixed for VC++
Gengbin Zheng [Sat, 26 Sep 2009 02:15:29 +0000 (02:15 +0000)]
fixed for VC++

12 years agoto build MS MPI with VC++
Gengbin Zheng [Sat, 26 Sep 2009 02:14:10 +0000 (02:14 +0000)]
to build MS MPI with VC++

12 years agofixes to compile MPI with VC++
Gengbin Zheng [Sat, 26 Sep 2009 02:13:13 +0000 (02:13 +0000)]
fixes to compile MPI with VC++

12 years agogetpid is compiled as c, not c++
Filippo Gioachin [Sat, 26 Sep 2009 00:15:06 +0000 (00:15 +0000)]
getpid is compiled as c, not c++

12 years agohow has this worked ever?
Filippo Gioachin [Sat, 26 Sep 2009 00:03:12 +0000 (00:03 +0000)]
how has this worked ever?

12 years agoprocess main chare message is now changed to ignore the objPtr in message evenlope...
Gengbin Zheng [Fri, 25 Sep 2009 23:49:15 +0000 (23:49 +0000)]
process main chare message is now changed to ignore the objPtr in message evenlope. It always looks up chare table, and mainchare table to get the update-to-date obj.

12 years agoreplace isomalloc_push and pop by new function CmiDisableIsomalloc()
Gengbin Zheng [Fri, 25 Sep 2009 13:03:30 +0000 (13:03 +0000)]
replace isomalloc_push and pop by new function CmiDisableIsomalloc()

12 years agofortran interface for cmienableisomalloc and cmidisableisomalloc
Gengbin Zheng [Fri, 25 Sep 2009 06:02:59 +0000 (06:02 +0000)]
fortran interface for cmienableisomalloc and cmidisableisomalloc

12 years agomake two function CmiEnableIsomalloc and CmiDisableIsomalloc available to users.Note...
Gengbin Zheng [Fri, 25 Sep 2009 05:56:41 +0000 (05:56 +0000)]
make two function CmiEnableIsomalloc and CmiDisableIsomalloc available to users.Note that these two functions must be used in immeidate pair (no nesting, break point) with disable first, and enable.

12 years agoisomalloc: delete some unused variables
Phil Miller [Thu, 24 Sep 2009 20:12:50 +0000 (20:12 +0000)]
isomalloc: delete some unused variables

12 years agochanged intptr_t to self defined CmiIntPtr in converse.h.
Gengbin Zheng [Thu, 24 Sep 2009 19:23:49 +0000 (19:23 +0000)]
changed intptr_t to self defined CmiIntPtr in converse.h.
changed the way "reserved" and "bytes" in isomallocAlign() call are specified.

12 years agoa new type CmiIntPtr that is of equal length to a pointer.
Gengbin Zheng [Thu, 24 Sep 2009 19:22:26 +0000 (19:22 +0000)]
a new type CmiIntPtr that is of equal length to a pointer.

12 years agoisomalloc: cleanup aligned allocation function
Phil Miller [Thu, 24 Sep 2009 17:21:16 +0000 (17:21 +0000)]
isomalloc: cleanup aligned allocation function

- Use an intptr_t in place of char*, eliminating the need for casts to
  do arithmetic. Compile tested intptr_t on gcc, xlc 9, pgcc 9, icc
  10, and Solaris cc.
- Eliminate the unused void* mem.
- Mark potential issue with handling of non-zero `reserved' argument.