Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
6 years agoFix valgrind suppression file.
Arnaud Giersch [Fri, 15 Sep 2017 11:19:46 +0000 (13:19 +0200)]
Fix valgrind suppression file.

6 years agoTypedef is superfluous here.
Arnaud Giersch [Fri, 15 Sep 2017 08:02:19 +0000 (10:02 +0200)]
Typedef is superfluous here.

6 years agosmpi_shared: define smpi_source_location as inheriting from std::string.
Arnaud Giersch [Fri, 15 Sep 2017 08:00:40 +0000 (10:00 +0200)]
smpi_shared: define smpi_source_location as inheriting from std::string.

6 years agosmpi_bench: define SampleLocation inheriting from std::string.
Arnaud Giersch [Fri, 15 Sep 2017 07:59:25 +0000 (09:59 +0200)]
smpi_bench: define SampleLocation inheriting from std::string.

6 years agosmpi_bench: store plain local data in map (no pointer).
Arnaud Giersch [Thu, 14 Sep 2017 13:04:33 +0000 (15:04 +0200)]
smpi_bench: store plain local data in map (no pointer).

6 years agoRemove redundant operations.
Arnaud Giersch [Wed, 13 Sep 2017 14:59:08 +0000 (16:59 +0200)]
Remove redundant operations.

6 years agoinstr: fix a new/free mismatch, and small cleanups
Martin Quinson [Fri, 15 Sep 2017 05:48:35 +0000 (07:48 +0200)]
instr: fix a new/free mismatch, and small cleanups

- name a destructor by its name
- inline a useless recursive function: by doing the job in the destructor

6 years agoNew: s4u::Host.execute() for remote executions
Martin Quinson [Thu, 14 Sep 2017 14:07:40 +0000 (16:07 +0200)]
New: s4u::Host.execute() for remote executions

6 years agoreally try to plug that memleak
Martin Quinson [Thu, 14 Sep 2017 12:57:47 +0000 (14:57 +0200)]
really try to plug that memleak

6 years agocleanup plugging a memleak
Martin Quinson [Thu, 14 Sep 2017 12:46:13 +0000 (14:46 +0200)]
cleanup plugging a memleak

6 years agoGet rid of spurious symlink for lua test.
Arnaud Giersch [Wed, 13 Sep 2017 14:08:39 +0000 (16:08 +0200)]
Get rid of spurious symlink for lua test.

6 years agotesh: allow multiple --cfg and --log (needed for parallel tests).
Arnaud Giersch [Wed, 13 Sep 2017 13:47:57 +0000 (15:47 +0200)]
tesh: allow multiple --cfg and --log (needed for parallel tests).

6 years agoAdd missing tests with Boost context factory.
Arnaud Giersch [Wed, 13 Sep 2017 13:47:21 +0000 (15:47 +0200)]
Add missing tests with Boost context factory.

6 years agoDelay creation of parmap for boost contexts too.
Arnaud Giersch [Wed, 13 Sep 2017 13:05:33 +0000 (15:05 +0200)]
Delay creation of parmap for boost contexts too.

6 years agotesh: update ignore_regexp_common.
Arnaud Giersch [Wed, 13 Sep 2017 10:43:21 +0000 (12:43 +0200)]
tesh: update ignore_regexp_common.

6 years agofewer explicit news are fewer possible leaks
Martin Quinson [Tue, 12 Sep 2017 22:16:56 +0000 (00:16 +0200)]
fewer explicit news are fewer possible leaks

6 years agoconvert a dict into a unordered_map
Martin Quinson [Tue, 12 Sep 2017 21:34:27 +0000 (23:34 +0200)]
convert a dict into a unordered_map

6 years agoContextBoost: add support for Boost versions above 1.61.
Arnaud Giersch [Tue, 12 Sep 2017 21:13:16 +0000 (23:13 +0200)]
ContextBoost: add support for Boost versions above 1.61.

6 years agoContextBoost: useless initialization.
Arnaud Giersch [Tue, 12 Sep 2017 20:22:53 +0000 (22:22 +0200)]
ContextBoost: useless initialization.

6 years agoContextBoost: define helper function for jump_fcontext.
Arnaud Giersch [Tue, 12 Sep 2017 20:11:32 +0000 (22:11 +0200)]
ContextBoost: define helper function for jump_fcontext.

Also make smx_ctx_boost_wrapper() a static member of BoostContext.

6 years agoContextBoost: use BOOST_VERSION instead of simgrid-specific HAVE_BOOST_CONTEXTS.
Arnaud Giersch [Tue, 12 Sep 2017 20:03:55 +0000 (22:03 +0200)]
ContextBoost: use BOOST_VERSION instead of simgrid-specific HAVE_BOOST_CONTEXTS.

6 years agoContextBoost: use C++ style casts.
Arnaud Giersch [Tue, 12 Sep 2017 20:01:16 +0000 (22:01 +0200)]
ContextBoost: use C++ style casts.

6 years agoUpdate .gitignore.
Arnaud Giersch [Tue, 12 Sep 2017 14:58:10 +0000 (16:58 +0200)]
Update .gitignore.

6 years agoThese lines have no utility (anymore?)
Arnaud Giersch [Tue, 12 Sep 2017 14:19:52 +0000 (16:19 +0200)]
These lines have no utility (anymore?)

6 years agoAvoid uppercase characters in package names.
Arnaud Giersch [Tue, 12 Sep 2017 13:08:55 +0000 (15:08 +0200)]
Avoid uppercase characters in package names.

6 years agoRename Java examples.
Arnaud Giersch [Tue, 12 Sep 2017 11:18:48 +0000 (13:18 +0200)]
Rename Java examples.

Add prefix "java-" to target names, and s/_/-/.

6 years agoFix memory leaks.
Arnaud Giersch [Sun, 10 Sep 2017 19:37:52 +0000 (21:37 +0200)]
Fix memory leaks.

6 years agoRemove duplicated line.
Arnaud Giersch [Sun, 10 Sep 2017 19:28:35 +0000 (21:28 +0200)]
Remove duplicated line.

6 years agoignore one more cruft from travis
Martin Quinson [Sun, 10 Sep 2017 20:48:45 +0000 (22:48 +0200)]
ignore one more cruft from travis

Seen live as:
Picked up _JAVA_OPTIONS: -Xmx2048m -Xms512m

6 years agocodacy
Martin Quinson [Sun, 10 Sep 2017 20:21:57 +0000 (22:21 +0200)]
codacy

6 years agos|s4u_|s4u-|
Martin Quinson [Sun, 10 Sep 2017 19:02:50 +0000 (21:02 +0200)]
s|s4u_|s4u-|

6 years agoremove a teshsuite example that is superseeded by a proper example
Martin Quinson [Sun, 10 Sep 2017 16:10:30 +0000 (18:10 +0200)]
remove a teshsuite example that is superseeded by a proper example

6 years agofix doc
Martin Quinson [Sun, 10 Sep 2017 16:08:31 +0000 (18:08 +0200)]
fix doc

6 years agoimplement simgrid::s4u::Comm::wait_all() and use it in example
Martin Quinson [Sun, 10 Sep 2017 16:07:14 +0000 (18:07 +0200)]
implement simgrid::s4u::Comm::wait_all() and use it in example

6 years agoreduce the differences between the s4u_async examples
Martin Quinson [Sun, 10 Sep 2017 15:57:36 +0000 (17:57 +0200)]
reduce the differences between the s4u_async examples

6 years agofix the s4u_async-waitany example
Martin Quinson [Sun, 10 Sep 2017 15:34:48 +0000 (17:34 +0200)]
fix the s4u_async-waitany example

6 years agomassive cleanups in the s4u-async-waitall example
Martin Quinson [Sun, 10 Sep 2017 14:55:46 +0000 (16:55 +0200)]
massive cleanups in the s4u-async-waitall example

6 years agoMerge pull request #218 from Takishipp/MSG2S4U
Martin Quinson [Sun, 10 Sep 2017 13:20:21 +0000 (15:20 +0200)]
Merge pull request #218 from Takishipp/MSG2S4U

first attempt to convert async-waitany msg version to s4u (doesn't work yet)

6 years agoplease sonar: kill dead code
Martin Quinson [Sun, 10 Sep 2017 13:19:55 +0000 (15:19 +0200)]
please sonar: kill dead code

6 years agoIndentation.
Arnaud Giersch [Sat, 9 Sep 2017 21:20:22 +0000 (23:20 +0200)]
Indentation.

6 years ago'request' cannot be null here (verified before at line 611.
Arnaud Giersch [Sat, 9 Sep 2017 20:37:09 +0000 (22:37 +0200)]
'request' cannot be null here (verified before at line 611.

6 years agoRemove useless assignments.
Arnaud Giersch [Sat, 9 Sep 2017 20:29:19 +0000 (22:29 +0200)]
Remove useless assignments.

6 years agoUse C++ strings instead of char*.
Arnaud Giersch [Sat, 9 Sep 2017 16:23:12 +0000 (18:23 +0200)]
Use C++ strings instead of char*.

6 years agoFix use-ater-free.
Arnaud Giersch [Sat, 9 Sep 2017 14:28:26 +0000 (16:28 +0200)]
Fix use-ater-free.

6 years agoFix unitialized value spotted by scan-build.
Arnaud Giersch [Sat, 9 Sep 2017 14:05:08 +0000 (16:05 +0200)]
Fix unitialized value spotted by scan-build.

34  while (simgrid::s4u::Engine::getClock() < deadline) {
        # (1) Loop condition is true.  Entering loop body
35    void* received;
        # (2) 'received' declared without an initial value
36    if (comm == nullptr)
        # (3) Taking false branch
37      comm = mailbox->get_async(&received);
38    if (comm->test()) {
        # (4) Assuming the condition is true
        # (5) Taking true branch
39      // Retrieve the data sent by the peer.
40      TrackerQuery* tq = static_cast<TrackerQuery*>(received);
        # (6) Assigned value is garbage or undefined

6 years agoFix potential buffer overflows.
Arnaud Giersch [Fri, 8 Sep 2017 22:09:45 +0000 (00:09 +0200)]
Fix potential buffer overflows.

6 years agoStupid scan-build, this is always true.
Arnaud Giersch [Fri, 8 Sep 2017 21:22:10 +0000 (23:22 +0200)]
Stupid scan-build, this is always true.

6 years agoVerify parameters passed to strcmp.
Arnaud Giersch [Fri, 8 Sep 2017 20:30:00 +0000 (22:30 +0200)]
Verify parameters passed to strcmp.

6 years agoFix use-after-free.
Arnaud Giersch [Wed, 6 Sep 2017 13:14:31 +0000 (15:14 +0200)]
Fix use-after-free.

'message' is not mine if I didn't get an answer.

6 years agoAdding integration tests of async-waitall and waitany
Takishipp [Fri, 8 Sep 2017 15:47:44 +0000 (17:47 +0200)]
Adding integration tests of async-waitall and waitany

6 years agoMake some correction to the converted examples
Takishipp [Fri, 8 Sep 2017 12:30:53 +0000 (14:30 +0200)]
Make some correction to the converted examples

6 years agofix async-waitall example
Takishipp [Thu, 7 Sep 2017 14:33:03 +0000 (16:33 +0200)]
fix async-waitall example

6 years agoadd a description to s4u for the treated examples
Takishipp [Wed, 6 Sep 2017 14:06:55 +0000 (16:06 +0200)]
add a description to s4u for the treated examples

6 years agoasyc-waitall is converted
Takishipp [Wed, 6 Sep 2017 10:59:38 +0000 (12:59 +0200)]
asyc-waitall is converted

6 years agoasync-waitall is almost converted - phase 1
Takishipp [Tue, 5 Sep 2017 16:13:38 +0000 (18:13 +0200)]
async-waitall is almost converted - phase 1

6 years agoDon't inline ~xbt_ex.
Arnaud Giersch [Mon, 4 Sep 2017 20:44:04 +0000 (22:44 +0200)]
Don't inline ~xbt_ex.

Otherwise, xbt_ex is also defined in libsimgrid-java and some tests are broken
with clang/libc++/freebsd.

Thanks Gabriel if this works!

6 years agoStart to convert async-waitall to s4u
Takishipp [Mon, 4 Sep 2017 15:27:55 +0000 (17:27 +0200)]
Start to convert async-waitall to s4u

6 years agoAlmost converted phase 2
Takishipp [Mon, 4 Sep 2017 15:09:44 +0000 (17:09 +0200)]
Almost converted phase 2

6 years agostart cleaning up the instr::containers
Martin Quinson [Sun, 3 Sep 2017 23:48:45 +0000 (01:48 +0200)]
start cleaning up the instr::containers

6 years agotry to get rid of some errors seen by scan-build
Augustin Degomme [Sun, 3 Sep 2017 22:55:03 +0000 (00:55 +0200)]
try to get rid of some errors seen by scan-build

6 years agogive a proper constructor/destructor to instr::Container
Martin Quinson [Sun, 3 Sep 2017 20:34:17 +0000 (22:34 +0200)]
give a proper constructor/destructor to instr::Container

6 years agotry to please scan-build
Augustin Degomme [Sat, 2 Sep 2017 23:53:13 +0000 (01:53 +0200)]
try to please scan-build

6 years agocheck we don't allow 0 here
Augustin Degomme [Sat, 2 Sep 2017 21:51:53 +0000 (23:51 +0200)]
check we don't allow 0 here

6 years agosee if that pleases scan-build
Augustin Degomme [Sat, 2 Sep 2017 18:38:24 +0000 (20:38 +0200)]
see if that pleases scan-build

6 years agoavoid potential division by 0... But not sure 0 is right as an answer here
Augustin Degomme [Sat, 2 Sep 2017 15:28:39 +0000 (17:28 +0200)]
avoid potential division by 0... But not sure 0 is right as an answer here

6 years agoRevert "Libsimgrid-java already depends on libsimgrid. There's no need to load it...
Arnaud Giersch [Sat, 2 Sep 2017 06:26:56 +0000 (08:26 +0200)]
Revert "Libsimgrid-java already depends on libsimgrid.  There's no need to load it in advance."

This reverts commit 4e90ee55b9c3170ef7c9ade5d979987ae395cf00.

It breaks when ligsimgrid must be extracted from simgrid.jar.

6 years agoLibsimgrid-java already depends on libsimgrid. There's no need to load it in advance.
Arnaud Giersch [Fri, 1 Sep 2017 21:45:53 +0000 (23:45 +0200)]
Libsimgrid-java already depends on libsimgrid.  There's no need to load it in advance.

6 years agoFix mismatched free() / delete.
Arnaud Giersch [Fri, 1 Sep 2017 19:39:35 +0000 (21:39 +0200)]
Fix mismatched free() / delete.

6 years agoadd --no-compress-output flag to dynamic analysis flags as cmake spits out base64...
Augustin Degomme [Fri, 1 Sep 2017 14:14:20 +0000 (16:14 +0200)]
add --no-compress-output flag to dynamic analysis flags as cmake spits out base64+gzip outputs by default now

6 years agodon't eat the errno of when dlopen fails (but still remove the copied binary)
Martin Quinson [Thu, 31 Aug 2017 21:41:46 +0000 (23:41 +0200)]
don't eat the errno of when dlopen fails (but still remove the copied binary)

6 years agoalmost converted
Takishipp [Thu, 31 Aug 2017 16:24:24 +0000 (18:24 +0200)]
almost converted

6 years agoCompare file prefix only.
Arnaud Giersch [Wed, 30 Aug 2017 21:32:39 +0000 (23:32 +0200)]
Compare file prefix only.

This corrects commit e38b14311d3182de4c7bd3b03dcdde8caa93a941.

6 years agoSecond phase to convert async-waitany msg vertion to s4u (bugs to solve)
Takishipp [Wed, 30 Aug 2017 15:54:09 +0000 (17:54 +0200)]
Second phase to convert async-waitany msg vertion to s4u (bugs to solve)

6 years agoUse std::atomic::fetch_add instead of ++ shortcut (clearer to the reader).
Arnaud Giersch [Wed, 30 Aug 2017 15:27:50 +0000 (17:27 +0200)]
Use std::atomic::fetch_add instead of ++ shortcut (clearer to the reader).

6 years agoUnused typedefs.
Arnaud Giersch [Wed, 30 Aug 2017 14:04:15 +0000 (16:04 +0200)]
Unused typedefs.

6 years agoProtected is useless here (please sonar).
Arnaud Giersch [Wed, 30 Aug 2017 13:27:41 +0000 (15:27 +0200)]
Protected is useless here (please sonar).

6 years agoReduce code duplication in parmap_bench.cpp.
Arnaud Giersch [Wed, 30 Aug 2017 13:21:35 +0000 (15:21 +0200)]
Reduce code duplication in parmap_bench.cpp.

6 years agoUse xbt/log in parmap_bench and please sonar.
Arnaud Giersch [Wed, 30 Aug 2017 13:02:41 +0000 (15:02 +0200)]
Use xbt/log in parmap_bench and please sonar.

6 years agoNo need for timestamps in logs.
Arnaud Giersch [Wed, 30 Aug 2017 12:45:39 +0000 (14:45 +0200)]
No need for timestamps in logs.

6 years agoDon't mess ev->ap (allows multiple %m in layout).
Arnaud Giersch [Wed, 30 Aug 2017 12:41:47 +0000 (14:41 +0200)]
Don't mess ev->ap (allows multiple %m in layout).

6 years agoCosmetics.
Arnaud Giersch [Wed, 30 Aug 2017 12:32:33 +0000 (14:32 +0200)]
Cosmetics.

6 years agoRemove bogus setenv.
Arnaud Giersch [Tue, 29 Aug 2017 20:04:12 +0000 (22:04 +0200)]
Remove bogus setenv.

6 years agoA std::string is ok here.
Arnaud Giersch [Tue, 29 Aug 2017 19:50:44 +0000 (21:50 +0200)]
A std::string is ok here.

6 years agoC++-style casts.
Arnaud Giersch [Tue, 29 Aug 2017 19:44:44 +0000 (21:44 +0200)]
C++-style casts.

6 years agos4u is not that bad anymore
Martin Quinson [Mon, 28 Aug 2017 20:27:04 +0000 (22:27 +0200)]
s4u is not that bad anymore

6 years agouniformize the function names
Martin Quinson [Mon, 28 Aug 2017 20:15:02 +0000 (22:15 +0200)]
uniformize the function names

6 years agoinstr: kill leftover classes
Martin Quinson [Mon, 28 Aug 2017 19:14:12 +0000 (21:14 +0200)]
instr: kill leftover classes

6 years agoinstr: kill an unused field
Martin Quinson [Mon, 28 Aug 2017 18:43:06 +0000 (20:43 +0200)]
instr: kill an unused field

6 years agorename the instr::Container class to its proper name
Martin Quinson [Mon, 28 Aug 2017 18:39:15 +0000 (20:39 +0200)]
rename the instr::Container class to its proper name

6 years agosmpi: don't override the value of network/TCP-gamma with the default value. That...
Martin Quinson [Mon, 28 Aug 2017 15:52:41 +0000 (17:52 +0200)]
smpi: don't override the value of network/TCP-gamma with the default value. That's misleading

6 years agodoc: give the real default value of option network/TCP-gamma
Martin Quinson [Mon, 28 Aug 2017 15:52:13 +0000 (17:52 +0200)]
doc: give the real default value of option network/TCP-gamma

6 years agofirst attempt to convert async-waitany msg version to s4u (doesn't work)
Takishipp [Mon, 28 Aug 2017 15:21:42 +0000 (17:21 +0200)]
first attempt to convert async-waitany msg version to s4u (doesn't work)

6 years agoinstr: please sonar
Martin Quinson [Mon, 28 Aug 2017 10:05:10 +0000 (12:05 +0200)]
instr: please sonar

- Use initialization lists
- Don't have C++ declarations within the extern "C" block

6 years agofollow the naming conventions in Instr
Martin Quinson [Mon, 28 Aug 2017 09:56:13 +0000 (11:56 +0200)]
follow the naming conventions in Instr

6 years agofix clang builds
Martin Quinson [Mon, 28 Aug 2017 09:22:18 +0000 (11:22 +0200)]
fix clang builds

Don't try to have globals linked in the C++ way.
Instead, we should kill all those globals (but not today)

6 years agomove all inst declarations into their namespace
Martin Quinson [Mon, 28 Aug 2017 00:20:57 +0000 (02:20 +0200)]
move all inst declarations into their namespace

6 years agokill a C type now that we have a class
Martin Quinson [Sun, 27 Aug 2017 23:06:17 +0000 (01:06 +0200)]
kill a C type now that we have a class

6 years agoclass names must be in CamelCase
Martin Quinson [Sun, 27 Aug 2017 22:42:55 +0000 (00:42 +0200)]
class names must be in CamelCase

6 years agoa class with no method is not a class
Martin Quinson [Sun, 27 Aug 2017 22:37:30 +0000 (00:37 +0200)]
a class with no method is not a class

6 years agoMerge branch 'master' of github.com:simgrid/simgrid
Martin Quinson [Sun, 27 Aug 2017 22:23:36 +0000 (00:23 +0200)]
Merge branch 'master' of github.com:simgrid/simgrid