Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
3 years agocosmetics
SUTER Frederic [Thu, 15 Apr 2021 13:55:30 +0000 (15:55 +0200)]
cosmetics

3 years agocosmetics
SUTER Frederic [Tue, 13 Apr 2021 18:26:04 +0000 (20:26 +0200)]
cosmetics

3 years agos4u::NetZone::create_router.
Bruno Donassolo [Thu, 15 Apr 2021 13:33:43 +0000 (15:33 +0200)]
s4u::NetZone::create_router.

Export create_router to s4u so we can use in C++ platforms.

3 years agoPlease sonar, just a little
Bruno Donassolo [Thu, 15 Apr 2021 08:59:15 +0000 (10:59 +0200)]
Please sonar, just a little

3 years agoUse rule-of-three, and hope to please sonar without breaking clang13 builds.
Arnaud Giersch [Thu, 15 Apr 2021 07:43:35 +0000 (09:43 +0200)]
Use rule-of-three, and hope to please sonar without breaking clang13 builds.

3 years agoRevert "Delete the implicitely defined move constructor."
Arnaud Giersch [Wed, 14 Apr 2021 21:45:10 +0000 (23:45 +0200)]
Revert "Delete the implicitely defined move constructor."

This reverts commit c26d236dedf486357690800a0d5527871ef45620.

Clang 13 fails with "The specified type does not meet the requirements of
Cpp17MoveInsertable"

AFAICT, the std::deque makes a noexcept constructor impossible.

3 years agoFinally provide a noexcept move constructor.
Arnaud Giersch [Wed, 14 Apr 2021 21:30:54 +0000 (23:30 +0200)]
Finally provide a noexcept move constructor.

Previous commit (f7cf88e9b8 Delete the implicitely defined move constructor.)
was causing clang 13 to fail with: "The specified type does not meet the
requirements of Cpp17MoveInsertable".

3 years agoUse emplace_back to add a new property_set.
Arnaud Giersch [Wed, 14 Apr 2021 19:53:21 +0000 (21:53 +0200)]
Use emplace_back to add a new property_set.

Sonar S6003.

3 years agoMinor Sonar smells (const, etc).
Arnaud Giersch [Wed, 14 Apr 2021 19:37:50 +0000 (21:37 +0200)]
Minor Sonar smells (const, etc).

3 years agoMove a \n.
Arnaud Giersch [Wed, 14 Apr 2021 19:21:52 +0000 (21:21 +0200)]
Move a \n.

3 years agoDelete the implicitely defined move constructor.
Arnaud Giersch [Wed, 14 Apr 2021 14:13:59 +0000 (16:13 +0200)]
Delete the implicitely defined move constructor.

Fix for sonar issue S5018: Move and swap operations should be "noexcept"

3 years agoDisable copy for actor::ProcessArg.
Arnaud Giersch [Wed, 14 Apr 2021 12:21:14 +0000 (14:21 +0200)]
Disable copy for actor::ProcessArg.

Also fix sonar issue S5018: Move and swap operations should be "noexcept"

3 years agoDelete the implicitely defined move constructor.
Arnaud Giersch [Wed, 14 Apr 2021 11:22:58 +0000 (13:22 +0200)]
Delete the implicitely defined move constructor.

Fix for sonar issue S5018: Move and swap operations should be "noexcept"

Anyway, AFAICT, the implicit move constructor here does nothing more than the copy-constructor.

3 years agoSonar requires a comment for empty functions.
Arnaud Giersch [Wed, 14 Apr 2021 06:56:37 +0000 (08:56 +0200)]
Sonar requires a comment for empty functions.

3 years agoSimplify add_route methods.
Bruno Donassolo [Wed, 14 Apr 2021 15:53:28 +0000 (17:53 +0200)]
Simplify add_route methods.

Leave only one add_route method, as it was initially.
Deprecate old add_route which uses LinkImpl*, s4u is the interface we want
with user.

3 years agoVivaldi on top of StarZone
Bruno Donassolo [Mon, 12 Apr 2021 14:08:26 +0000 (16:08 +0200)]
Vivaldi on top of StarZone

Implement Vivaldi on top of StarZone.
This allows the easy usage of Vivaldi on C++ platforms (no need to
access specific methods from Vivaldi NetZone.

Platform creation from XML is unchanged.

3 years agoAdjust add_route to accept route between netzones
Bruno Donassolo [Tue, 13 Apr 2021 18:36:23 +0000 (20:36 +0200)]
Adjust add_route to accept route between netzones

3 years agoStarZone: implement get_graph method
Bruno Donassolo [Tue, 13 Apr 2021 15:24:11 +0000 (17:24 +0200)]
StarZone: implement get_graph method

Add get_graph for StarZone. A top node named with the zone's name is
created to be the center of the star.

3 years agoNew netzone: Star Zone
Bruno Donassolo [Fri, 9 Apr 2021 17:46:42 +0000 (19:46 +0200)]
New netzone: Star Zone

Implements a netzone following a star topology.
Components inside the Star topology are connected by default (through no
links), users can add routes using the NetZone::add_route method:
- netpoint -> nullptr(*): links used in all outgoing communications
- nullptr(*) -> netpoint: links used in all incoming communication
- netpoint -> netpoint: loopback

Duplicated links in a route inside the Star Zone are removed.

Added UTs for StarZone, some tests are disabled since they check the
xbt_assert and would stop the test execution.

3 years ago[ci-skip] Update lua tesh files with deprecation warning.
Arnaud Giersch [Tue, 13 Apr 2021 15:56:08 +0000 (17:56 +0200)]
[ci-skip] Update lua tesh files with deprecation warning.

3 years agoconstify
SUTER Frederic [Tue, 13 Apr 2021 15:31:00 +0000 (17:31 +0200)]
constify

3 years agothis is no useless
SUTER Frederic [Tue, 13 Apr 2021 15:24:42 +0000 (17:24 +0200)]
this is no useless

3 years agodo not call sg_platf_new_link when creating Cluster-ed Zones
SUTER Frederic [Tue, 13 Apr 2021 13:13:41 +0000 (15:13 +0200)]
do not call sg_platf_new_link when creating Cluster-ed Zones

3 years agoimprove router creation
SUTER Frederic [Tue, 13 Apr 2021 09:39:20 +0000 (11:39 +0200)]
improve router creation

3 years agoDeprecate Lua platform files.
Arnaud Giersch [Tue, 13 Apr 2021 07:13:30 +0000 (09:13 +0200)]
Deprecate Lua platform files.

3 years agoNo need to duplicate variables.
Arnaud Giersch [Tue, 13 Apr 2021 06:58:53 +0000 (08:58 +0200)]
No need to duplicate variables.

3 years agoConst...
Arnaud Giersch [Tue, 13 Apr 2021 06:52:28 +0000 (08:52 +0200)]
Const...

3 years agochange way disks are managed in the XML parsing
SUTER Frederic [Mon, 12 Apr 2021 21:20:00 +0000 (23:20 +0200)]
change way disks are managed in the XML parsing

3 years agoDefine CommImpl::wait_for().
Arnaud Giersch [Mon, 12 Apr 2021 21:08:40 +0000 (23:08 +0200)]
Define CommImpl::wait_for().

3 years agoPrint state_ in symbolic form.
Arnaud Giersch [Mon, 12 Apr 2021 20:45:19 +0000 (22:45 +0200)]
Print state_ in symbolic form.

3 years agoMore cosmetics around namespaces.
Arnaud Giersch [Mon, 12 Apr 2021 20:38:58 +0000 (22:38 +0200)]
More cosmetics around namespaces.

3 years agoFix segfault with lua.
Arnaud Giersch [Mon, 12 Apr 2021 19:41:51 +0000 (21:41 +0200)]
Fix segfault with lua.

3 years agoInline function.
Arnaud Giersch [Mon, 12 Apr 2021 14:22:56 +0000 (16:22 +0200)]
Inline function.

3 years agoDefine CommImp::wait_any_for().
Arnaud Giersch [Mon, 12 Apr 2021 14:20:57 +0000 (16:20 +0200)]
Define CommImp::wait_any_for().

3 years agoCosmetics.
Arnaud Giersch [Mon, 12 Apr 2021 12:59:03 +0000 (14:59 +0200)]
Cosmetics.

3 years agoplease clang (?) and make properties optional to create an ActorImpl
SUTER Frederic [Mon, 12 Apr 2021 16:23:55 +0000 (18:23 +0200)]
please clang (?) and make properties optional to create an ActorImpl

3 years agodo not allocate/free properties
SUTER Frederic [Mon, 12 Apr 2021 15:32:48 +0000 (17:32 +0200)]
do not allocate/free properties

3 years agodo not allocate/free radicals
SUTER Frederic [Mon, 12 Apr 2021 13:54:53 +0000 (15:54 +0200)]
do not allocate/free radicals

3 years agocosmetics
SUTER Frederic [Mon, 12 Apr 2021 13:36:23 +0000 (15:36 +0200)]
cosmetics

3 years agomodernize cabinet creation
SUTER Frederic [Mon, 12 Apr 2021 13:10:49 +0000 (15:10 +0200)]
modernize cabinet creation

3 years agochange way vivaldi coordinates are managed internally
SUTER Frederic [Mon, 12 Apr 2021 12:24:45 +0000 (14:24 +0200)]
change way vivaldi coordinates are managed internally

3 years agoUpgrade embedded catch2 (-> v2.13.5).
Arnaud Giersch [Mon, 12 Apr 2021 10:34:22 +0000 (12:34 +0200)]
Upgrade embedded catch2 (-> v2.13.5).

3 years agoMinor Sonar smells.
Arnaud Giersch [Mon, 12 Apr 2021 10:06:14 +0000 (12:06 +0200)]
Minor Sonar smells.

3 years agoConst ref for std::string parameter.
Arnaud Giersch [Mon, 12 Apr 2021 09:57:42 +0000 (11:57 +0200)]
Const ref for std::string parameter.

3 years agoReturn const reference to vector.
Arnaud Giersch [Mon, 12 Apr 2021 09:49:33 +0000 (11:49 +0200)]
Return const reference to vector.

3 years agoUse a reference for ExecImpl::wait_any_for()'s vector.
Arnaud Giersch [Mon, 12 Apr 2021 09:42:30 +0000 (11:42 +0200)]
Use a reference for ExecImpl::wait_any_for()'s vector.

3 years agoDefine CommImpl::test_any().
Arnaud Giersch [Mon, 12 Apr 2021 09:20:40 +0000 (11:20 +0200)]
Define CommImpl::test_any().

3 years agoSimcall COMM_TESTANY is not blocking either. Simplify.
Arnaud Giersch [Mon, 12 Apr 2021 09:01:11 +0000 (11:01 +0200)]
Simcall COMM_TESTANY is not blocking either. Simplify.

3 years agoDefine CommImpl::test().
Arnaud Giersch [Mon, 12 Apr 2021 08:36:00 +0000 (10:36 +0200)]
Define CommImpl::test().

3 years agoSimcall COMM_TEST is not blocking.
Arnaud Giersch [Mon, 12 Apr 2021 08:32:34 +0000 (10:32 +0200)]
Simcall COMM_TEST is not blocking.

3 years agoLittle simplification.
Arnaud Giersch [Sun, 11 Apr 2021 19:44:35 +0000 (21:44 +0200)]
Little simplification.

3 years agoFinalize current CommImpl only once.
Arnaud Giersch [Mon, 12 Apr 2021 08:25:12 +0000 (10:25 +0200)]
Finalize current CommImpl only once.

3 years agoHomogenize debug messages across ActivityImpl's finish() methods.
Arnaud Giersch [Mon, 12 Apr 2021 08:18:15 +0000 (10:18 +0200)]
Homogenize debug messages across ActivityImpl's finish() methods.

3 years agoEnsure there is only one simcall waiting.
Arnaud Giersch [Mon, 12 Apr 2021 07:56:48 +0000 (09:56 +0200)]
Ensure there is only one simcall waiting.

3 years ago[ci-skip] we want to order by the largest first ..
Augustin Degomme [Fri, 9 Apr 2021 17:24:33 +0000 (19:24 +0200)]
[ci-skip] we want to order by the largest first ..

3 years agotry to be preemptive about 32 bits complaints
Augustin Degomme [Fri, 9 Apr 2021 09:26:22 +0000 (11:26 +0200)]
try to be preemptive about 32 bits complaints

3 years agothis value was actually wrong, and caught by the new buffer overflow check.
Augustin Degomme [Fri, 9 Apr 2021 01:38:21 +0000 (03:38 +0200)]
this value was actually wrong, and caught by the new buffer overflow check.
this is due to the fact that actual mpich test uses 10 times higher values, so just removing last digit was breaking the BIGDFT=4*NUM_X-1 condition

3 years agoadapt test for leak check
Augustin Degomme [Fri, 9 Apr 2021 01:35:35 +0000 (03:35 +0200)]
adapt test for leak check

3 years agoAdd initialization/finalization check at each call.
Augustin Degomme [Fri, 9 Apr 2021 01:35:07 +0000 (03:35 +0200)]
Add initialization/finalization check at each call.
Side effect was to break calls from external threads (gh-139).. So mark them as initialized properly at creation.

3 years agouse previous buffer check feature in MPI checks, to crash when a buffer overflow...
Augustin Degomme [Fri, 9 Apr 2021 01:29:52 +0000 (03:29 +0200)]
use previous buffer check feature in MPI checks, to crash when a buffer overflow is detected and provide good information.

3 years agoCount all intercepted allocations/deallocations in order to build a small leak-checker.
Augustin Degomme [Fri, 9 Apr 2021 01:28:02 +0000 (03:28 +0200)]
Count all intercepted allocations/deallocations in order to build a small leak-checker.
This allows to check for leaks, but also to provide debug information on the involved buffers (file, line, size) when a crash happens
todo: evaluate memory cost and slowdown for real apps (disabled by default, needs --cfg=smpi/display-allocs or -analyze flag to be activated)

3 years agoUse directly std::string instead of c_str.
Bruno Donassolo [Fri, 9 Apr 2021 08:36:52 +0000 (10:36 +0200)]
Use directly std::string instead of c_str.

3 years agos4u::Host::create_disk, human-friendly string version
Bruno Donassolo [Thu, 8 Apr 2021 16:47:41 +0000 (18:47 +0200)]
s4u::Host::create_disk, human-friendly string version

3 years agos4u::Host: moving create_disk impl to HostImpl
Bruno Donassolo [Thu, 8 Apr 2021 16:33:03 +0000 (18:33 +0200)]
s4u::Host: moving create_disk impl to HostImpl

3 years agos4u::Disk allow chaining set_property
Bruno Donassolo [Thu, 8 Apr 2021 16:22:18 +0000 (18:22 +0200)]
s4u::Disk allow chaining set_property

3 years agos4u: allows full single-line initialization
Bruno Donassolo [Thu, 8 Apr 2021 14:32:02 +0000 (16:32 +0200)]
s4u: allows full single-line initialization

seal() returns a pointer to the s4u object.
Allows users to use the object after its seal, without having to do it
in another line

3 years agoMake fields private, and static functions class-member.
Arnaud Giersch [Thu, 8 Apr 2021 09:03:26 +0000 (11:03 +0200)]
Make fields private, and static functions class-member.

3 years agoUseless forward declaration.
Arnaud Giersch [Thu, 8 Apr 2021 08:22:10 +0000 (10:22 +0200)]
Useless forward declaration.

3 years agoRedundant code (ctor is already inherited).
Arnaud Giersch [Thu, 8 Apr 2021 08:15:07 +0000 (10:15 +0200)]
Redundant code (ctor is already inherited).

3 years agoPrefer nullptr.
Arnaud Giersch [Wed, 7 Apr 2021 13:16:39 +0000 (15:16 +0200)]
Prefer nullptr.

3 years agoKill erroneous constant.
Arnaud Giersch [Wed, 7 Apr 2021 13:08:26 +0000 (15:08 +0200)]
Kill erroneous constant.

3 years agoConst/override for member functions.
Arnaud Giersch [Wed, 7 Apr 2021 12:54:52 +0000 (14:54 +0200)]
Const/override for member functions.

3 years agoInherited constructor.
Arnaud Giersch [Wed, 7 Apr 2021 12:49:19 +0000 (14:49 +0200)]
Inherited constructor.

3 years agoPointer-to-const parameter.
Arnaud Giersch [Wed, 7 Apr 2021 12:48:21 +0000 (14:48 +0200)]
Pointer-to-const parameter.

3 years agocontinue to mess with platform creation
SUTER Frederic [Wed, 7 Apr 2021 08:15:41 +0000 (10:15 +0200)]
continue to mess with platform creation

3 years agoKill empty statement.
Arnaud Giersch [Wed, 7 Apr 2021 11:34:43 +0000 (13:34 +0200)]
Kill empty statement.

3 years agoMake BacktraceImpl::resolve a bit faster.
Arnaud Giersch [Wed, 7 Apr 2021 09:07:16 +0000 (11:07 +0200)]
Make BacktraceImpl::resolve a bit faster.

Print the full frame information all at once.

3 years agoReplace void* used for RemoteProcess pointers.
Arnaud Giersch [Tue, 6 Apr 2021 10:19:14 +0000 (12:19 +0200)]
Replace void* used for RemoteProcess pointers.

3 years agoUse a RemotePtr<> for RemoteProcess::heap_address.
Arnaud Giersch [Tue, 6 Apr 2021 21:38:54 +0000 (23:38 +0200)]
Use a RemotePtr<> for RemoteProcess::heap_address.

3 years agoStop using void* for xbt_mheap_t.
Arnaud Giersch [Tue, 6 Apr 2021 18:57:36 +0000 (20:57 +0200)]
Stop using void* for xbt_mheap_t.

3 years agoFix cloud.xml: symmetrical routes are implicit.
Arnaud Giersch [Tue, 6 Apr 2021 16:12:06 +0000 (18:12 +0200)]
Fix cloud.xml: symmetrical routes are implicit.

Add file to basic_parsing_test so that it doesn't remain untested..

3 years agoMake NetworkConstantAction "final": virtual set_state() called from constructor.
Arnaud Giersch [Wed, 7 Apr 2021 07:43:23 +0000 (09:43 +0200)]
Make NetworkConstantAction "final": virtual set_state() called from constructor.

3 years agoMake virtual functions called from constructor "final".
Arnaud Giersch [Sat, 3 Apr 2021 21:59:15 +0000 (23:59 +0200)]
Make virtual functions called from constructor "final".

Sonar S1699: Constructors and destructors should only use defined methods and fields

3 years agoplease sonar
Augustin Degomme [Wed, 7 Apr 2021 09:04:52 +0000 (11:04 +0200)]
please sonar

3 years agoDisplay leak origin in message, if -trace-call-location is used.
Augustin Degomme [Wed, 7 Apr 2021 08:29:07 +0000 (10:29 +0200)]
Display leak origin in message, if -trace-call-location is used.
+ downgrade messages to INFO.

3 years agohide references to current_handle inside *.cpp file, to avoid breaking if SMPI is...
Augustin Degomme [Wed, 7 Apr 2021 08:27:44 +0000 (10:27 +0200)]
hide references to current_handle inside *.cpp file, to avoid breaking if SMPI is not compiled

3 years agoappease 32 bits
Augustin Degomme [Tue, 6 Apr 2021 20:53:45 +0000 (22:53 +0200)]
appease 32 bits

3 years agoUse a Remote<> for remote smpi::Request.
Arnaud Giersch [Tue, 6 Apr 2021 20:42:00 +0000 (22:42 +0200)]
Use a Remote<> for remote smpi::Request.

3 years agoappease clang
Augustin Degomme [Tue, 6 Apr 2021 18:34:27 +0000 (20:34 +0200)]
appease clang

3 years agochange the way we display leak types, skipping demangling
Augustin Degomme [Tue, 6 Apr 2021 18:06:47 +0000 (20:06 +0200)]
change the way we display leak types, skipping demangling

3 years agotry to improve handling of comm_self a bit.
Augustin Degomme [Tue, 6 Apr 2021 18:05:22 +0000 (20:05 +0200)]
try to improve handling of comm_self a bit.

3 years agofix for potentially empty names
Augustin Degomme [Tue, 6 Apr 2021 16:42:02 +0000 (18:42 +0200)]
fix for potentially empty names

3 years agoAdd the option to print origin of a failing handle.
Augustin Degomme [Tue, 6 Apr 2021 15:43:28 +0000 (17:43 +0200)]
Add the option to print origin of a failing handle.
This uses trace-call-location flag for smpicc, store the value at handle creation, and tries to return the most relevant one on a crash (that's actually a pain and will have to be checked)

3 years agoadd a name() to all F2C objects.
Augustin Degomme [Tue, 6 Apr 2021 15:39:50 +0000 (17:39 +0200)]
add a name() to all F2C objects.
This avoids demangling need for leak check (and should fix tests, as freebsd has a broken demangler on our ci system).

3 years agooops
Augustin Degomme [Tue, 6 Apr 2021 15:22:36 +0000 (17:22 +0200)]
oops

3 years agosame for win, get_info needs a copy.
Augustin Degomme [Tue, 6 Apr 2021 15:13:51 +0000 (17:13 +0200)]
same for win, get_info needs a copy.

3 years agoremove unwanted s4u include in all smpi files
Augustin Degomme [Tue, 6 Apr 2021 15:08:47 +0000 (17:08 +0200)]
remove unwanted s4u include in all smpi files

3 years agoget_info calls actually must return a copy.
Augustin Degomme [Tue, 6 Apr 2021 15:06:50 +0000 (17:06 +0200)]
get_info calls actually must return a copy.

3 years agogeneralize mark_as_deleted call
Augustin Degomme [Tue, 6 Apr 2021 15:06:17 +0000 (17:06 +0200)]
generalize mark_as_deleted call

3 years agoDon't add handles to the lookup for the sake of just removing them immediately...
Augustin Degomme [Mon, 5 Apr 2021 21:57:12 +0000 (23:57 +0200)]
Don't add handles to the lookup for the sake of just removing them immediately...
if they're not there .. well they are not.