Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
5 years ago32 bits insists of having some timestamps off by 1us ... Hide them.
Augustin Degomme [Thu, 18 Apr 2019 20:24:17 +0000 (22:24 +0200)]
32 bits insists of having some timestamps off by 1us ... Hide them.
And fix my windows line endings mess.

5 years agobe cleaner with memory
Augustin Degomme [Thu, 18 Apr 2019 19:47:41 +0000 (21:47 +0200)]
be cleaner with memory

5 years agofix out of source builds
Augustin Degomme [Thu, 18 Apr 2019 18:40:29 +0000 (20:40 +0200)]
fix out of source builds

5 years agoplease clang
Augustin Degomme [Thu, 18 Apr 2019 18:37:29 +0000 (20:37 +0200)]
please clang

5 years agoMerge branch 'file' into 'master'
Augustin Degomme [Thu, 18 Apr 2019 18:19:09 +0000 (20:19 +0200)]
Merge branch 'file' into 'master'

MPI IO

See merge request simgrid/simgrid!6

5 years agotry to get rid of some variability
Augustin Degomme [Thu, 18 Apr 2019 17:19:22 +0000 (19:19 +0200)]
try to get rid of some variability

5 years agoadd hostfile as well for tests
Augustin Degomme [Thu, 18 Apr 2019 16:41:56 +0000 (18:41 +0200)]
add hostfile as well for tests

5 years agoChange how we lock things up ...
Augustin Degomme [Thu, 18 Apr 2019 15:54:40 +0000 (17:54 +0200)]
Change how we lock things up ...
MPI RMA seemed a god idea, but it just did not work.

5 years agoAdd some tests for io.
Augustin Degomme [Thu, 18 Apr 2019 11:40:58 +0000 (13:40 +0200)]
Add some tests for io.

5 years agoComment out a buggy line... Can't put a finger on what goes wrong here, but values...
Augustin Degomme [Thu, 18 Apr 2019 11:40:22 +0000 (13:40 +0200)]
Comment out a buggy line... Can't put a finger on what goes wrong here, but values seem insane and break all tests
TODO : investigate

5 years agocleanups debug messages for read_all write_all
Augustin Degomme [Thu, 18 Apr 2019 11:39:20 +0000 (13:39 +0200)]
cleanups debug messages for read_all write_all

5 years agocleanups
Augustin Degomme [Thu, 18 Apr 2019 11:37:43 +0000 (13:37 +0200)]
cleanups

5 years agoRevert "Inline Context::self()."
Arnaud Giersch [Thu, 18 Apr 2019 11:30:28 +0000 (13:30 +0200)]
Revert "Inline Context::self()."

This reverts commit 92061e0bc62b9a2ef3bdc041e5e9fe716ada1120.

It's failing on appveyor (mingw64) with:
C:\mingw-w64\x86_64-7.2.0-posix-seh-rt_v5-rev1\mingw64\bin\g++.exe    -g3 -O3 -funroll-loops -fno-strict-aliasing  -finline-functions  -fdebug-prefix-map=C:/projects/simgrid=. -static-libgcc -static-libstdc++ -Wl,--add-stdcall-alias -m64  -shared -o lib\libsimgrid-java.dll -Wl,--out-implib,lib\libsimgrid-java.dll.a -Wl,--major-image-version,3,--minor-image-version,22 -Wl,--whole-archive CMakeFiles\simgrid-java.dir/objects.a -Wl,--no-whole-archive @CMakeFiles\simgrid-java.dir\linklibs.rsp
CMakeFiles\simgrid-java.dir/objects.a(jmsg.cpp.obj):././src/bindings/java/jmsg.cpp:342: undefined reference to `__imp__ZTHN7simgrid6kernel7context7Context8current_E'
CMakeFiles\simgrid-java.dir/objects.a(jmsg.cpp.obj):././src/bindings/java/jmsg.cpp:342: undefined reference to `__imp__ZTHN7simgrid6kernel7context7Context8current_E'
CMakeFiles\simgrid-java.dir/objects.a(jmsg.cpp.obj):././src/bindings/java/jmsg.cpp:342: undefined reference to `__imp__ZTHN7simgrid6kernel7context7Context8current_E'
CMakeFiles\simgrid-java.dir/objects.a(JavaContext.cpp.obj):././src/bindings/java/JavaContext.cpp:81: undefined reference to `__imp__ZTHN7simgrid6kernel7context7Context8current_E'
collect2.exe: error: ld returned 1 exit status

5 years ago[sonar] Remove the use of "sprintf".
Arnaud Giersch [Thu, 18 Apr 2019 11:28:39 +0000 (13:28 +0200)]
[sonar] Remove the use of "sprintf".

5 years agoDefine PropertyHolder::set_properties.
Arnaud Giersch [Thu, 18 Apr 2019 09:45:34 +0000 (11:45 +0200)]
Define PropertyHolder::set_properties.

It allows to have a single simcall when setting many properties.

5 years agoConstify get_properties() and and remove simcalls.
Arnaud Giersch [Wed, 17 Apr 2019 21:21:48 +0000 (23:21 +0200)]
Constify get_properties() and and remove simcalls.

5 years agochange verbosity of some messages, to ease testing
Augustin Degomme [Wed, 17 Apr 2019 21:35:19 +0000 (23:35 +0200)]
change verbosity of some messages, to ease testing

5 years agocomments about implem
Augustin Degomme [Wed, 17 Apr 2019 21:34:16 +0000 (23:34 +0200)]
comments about implem

5 years ago[sonar] Remove custom destructors for surf/PropertyHolder.
Arnaud Giersch [Wed, 17 Apr 2019 21:05:36 +0000 (23:05 +0200)]
[sonar] Remove custom destructors for surf/PropertyHolder.

5 years agomove everything to the implemented zone.
Augustin Degomme [Wed, 17 Apr 2019 20:54:22 +0000 (22:54 +0200)]
move everything to the implemented zone.

5 years ago[sonar] Remove custom destructors for CpuTiProfile.
Arnaud Giersch [Wed, 17 Apr 2019 20:45:12 +0000 (22:45 +0200)]
[sonar] Remove custom destructors for CpuTiProfile.

5 years agoMPI_File_read_shared, MPI_File_write_shared, MPI_File_read_ordered, MPI_File_write_or...
Augustin Degomme [Wed, 17 Apr 2019 20:38:04 +0000 (22:38 +0200)]
MPI_File_read_shared, MPI_File_write_shared, MPI_File_read_ordered, MPI_File_write_ordered, MPI_File_seek_shared, MPI_File_get_position_shared

5 years agoUse std algorithm for binary search.
Arnaud Giersch [Wed, 17 Apr 2019 20:37:11 +0000 (22:37 +0200)]
Use std algorithm for binary search.

5 years agoMPI_File_set_info, MPI_File_get_info, MPI_File_get_position
Augustin Degomme [Wed, 17 Apr 2019 20:37:04 +0000 (22:37 +0200)]
MPI_File_set_info, MPI_File_get_info, MPI_File_get_position

5 years agoUseless smart pointer.
Arnaud Giersch [Wed, 17 Apr 2019 19:43:04 +0000 (21:43 +0200)]
Useless smart pointer.

5 years agoCosmetics.
Arnaud Giersch [Wed, 17 Apr 2019 19:31:37 +0000 (21:31 +0200)]
Cosmetics.

5 years agoTypo.
Arnaud Giersch [Wed, 17 Apr 2019 19:16:06 +0000 (21:16 +0200)]
Typo.

5 years agoUse the good interface.
Arnaud Giersch [Wed, 17 Apr 2019 19:13:32 +0000 (21:13 +0200)]
Use the good interface.

5 years agoSmart pointer is not necessary for Actor::self.
Arnaud Giersch [Wed, 17 Apr 2019 19:13:16 +0000 (21:13 +0200)]
Smart pointer is not necessary for Actor::self.

5 years agoInline Context::self().
Arnaud Giersch [Wed, 17 Apr 2019 19:03:36 +0000 (21:03 +0200)]
Inline Context::self().

5 years agoUniformize get_impl(): const attribute, and return raw pointer.
Arnaud Giersch [Wed, 17 Apr 2019 18:46:11 +0000 (20:46 +0200)]
Uniformize get_impl(): const attribute, and return raw pointer.

5 years agoMethods of simix::Global have direct access to their members.
Arnaud Giersch [Wed, 17 Apr 2019 10:55:08 +0000 (12:55 +0200)]
Methods of simix::Global have direct access to their members.

5 years ago[sonar] clean_action() called from destructor should not be overridable.
Arnaud Giersch [Wed, 10 Apr 2019 08:54:51 +0000 (10:54 +0200)]
[sonar] clean_action() called from destructor should not be overridable.

5 years agoRead_all, Write_all, Read_at_all, Write_at_all
Augustin Degomme [Wed, 17 Apr 2019 11:49:06 +0000 (13:49 +0200)]
Read_all, Write_all, Read_at_all, Write_at_all
Imperfect algorithm, needs to be tested

5 years agoRead_at, Write, Write_at
Augustin Degomme [Wed, 17 Apr 2019 11:46:28 +0000 (13:46 +0200)]
Read_at, Write, Write_at

5 years agoTest using macros for arguments checking, saves some duplicated lines.
Augustin Degomme [Wed, 17 Apr 2019 11:44:47 +0000 (13:44 +0200)]
Test using macros for arguments checking, saves some duplicated lines.

5 years agoDon't make exception on timeout.
Arnaud Giersch [Tue, 16 Apr 2019 12:08:42 +0000 (14:08 +0200)]
Don't make exception on timeout.

It breaks for example xbt_cond_timedwait which is expected to report timeout by
a regular return.

5 years agoDelete unused private function.
Arnaud Giersch [Mon, 15 Apr 2019 12:52:26 +0000 (14:52 +0200)]
Delete unused private function.

5 years ago[sonar] Remove custom destructors for routing/DragonflyZone.
Arnaud Giersch [Mon, 15 Apr 2019 12:32:52 +0000 (14:32 +0200)]
[sonar] Remove custom destructors for routing/DragonflyZone.

5 years ago[sonar] Remove custom destructors for surf/network_ib.
Arnaud Giersch [Mon, 15 Apr 2019 12:09:37 +0000 (14:09 +0200)]
[sonar] Remove custom destructors for surf/network_ib.

5 years ago[sonar] Remove custom destructors for xbt_replay.
Arnaud Giersch [Mon, 15 Apr 2019 10:01:10 +0000 (12:01 +0200)]
[sonar] Remove custom destructors for xbt_replay.

5 years ago[sonar] Remove custom destructors for examples/s4u/.
Arnaud Giersch [Mon, 15 Apr 2019 09:01:36 +0000 (11:01 +0200)]
[sonar] Remove custom destructors for examples/s4u/.

5 years agoread, seek + init
degomme [Mon, 15 Apr 2019 14:02:38 +0000 (16:02 +0200)]
read, seek + init
TODO: properly init plugin, only when needed.

5 years agoDon't explode here, as flatifier may try exactly to do this.
degomme [Mon, 15 Apr 2019 10:44:47 +0000 (12:44 +0200)]
Don't explode here, as flatifier may try exactly to do this.

5 years agofrench comment --
degomme [Mon, 15 Apr 2019 09:51:06 +0000 (11:51 +0200)]
french comment --

5 years agoAllow units in smpi factors.
degomme [Mon, 15 Apr 2019 09:12:48 +0000 (11:12 +0200)]
Allow units in smpi factors.
To make it optional (as parse_factor is used for actual factors and not only seconds on some occasions), remove the warning in surf if a unit-less value is used.

5 years agoAvoid returning uninitialized bytes in fortran processor names.
degomme [Wed, 10 Apr 2019 09:25:33 +0000 (11:25 +0200)]
Avoid returning uninitialized bytes in fortran processor names.

5 years agoSkeleton for MPI_IO
Augustin Degomme [Sun, 14 Apr 2019 23:53:02 +0000 (01:53 +0200)]
Skeleton for MPI_IO

5 years agoFix 32 bits build
Augustin Degomme [Sun, 14 Apr 2019 18:09:32 +0000 (20:09 +0200)]
Fix 32 bits build

5 years agoRevert "Reactivate an umpire test, once disabled in 56fefe1bf81ca."
Augustin Degomme [Sun, 14 Apr 2019 17:49:20 +0000 (19:49 +0200)]
Revert "Reactivate an umpire test, once disabled in 56fefe1bf81ca."

This reverts commit 1797da7d294b83c915fe49dad633855985eccb64.

5 years agodon't compile non working and non compiling test
Augustin Degomme [Sun, 14 Apr 2019 17:10:06 +0000 (19:10 +0200)]
don't compile non working and non compiling test

5 years agoPretend we support MPI 3.1.
Augustin Degomme [Sun, 14 Apr 2019 16:15:26 +0000 (18:15 +0200)]
Pretend we support MPI 3.1.
We don't support all of it, obviously, but what we have may be enough for some codes.

5 years agocomment tests we don't support in MPI3, and fix a few we support
Augustin Degomme [Sun, 14 Apr 2019 16:12:56 +0000 (18:12 +0200)]
comment tests we don't support in MPI3, and fix a few we support

5 years agoMPI_Count can be used in ops too.
Augustin Degomme [Sun, 14 Apr 2019 16:11:22 +0000 (18:11 +0200)]
MPI_Count can be used in ops too.

5 years agoMPI_INFO_ENV ... Still does nothing for now
Augustin Degomme [Sun, 14 Apr 2019 14:46:37 +0000 (16:46 +0200)]
MPI_INFO_ENV ... Still does nothing for now

5 years agoReactivate an umpire test, once disabled in 56fefe1bf81ca.
Augustin Degomme [Sun, 14 Apr 2019 14:09:43 +0000 (16:09 +0200)]
Reactivate an umpire test, once disabled in 56fefe1bf81ca.

5 years agoMPI_Comm_get_info, MPI_Comm_set_info
Augustin Degomme [Sun, 14 Apr 2019 14:08:37 +0000 (16:08 +0200)]
MPI_Comm_get_info, MPI_Comm_set_info

5 years agoSupport MPI3 datatype MPI_Count
Augustin Degomme [Sun, 14 Apr 2019 14:07:55 +0000 (16:07 +0200)]
Support MPI3 datatype MPI_Count

5 years agoplease sonar: replace void* by unsigned char* for raw buffer
Frederic Suter [Sat, 13 Apr 2019 15:50:40 +0000 (17:50 +0200)]
please sonar: replace void* by unsigned char* for raw buffer

5 years agoplease sonar
Frederic Suter [Sat, 13 Apr 2019 15:20:39 +0000 (17:20 +0200)]
please sonar

5 years agoyet another attempt to handle MPI special values in fortran
Augustin Degomme [Sat, 13 Apr 2019 10:57:10 +0000 (12:57 +0200)]
yet another attempt to handle MPI special values in fortran
Without dereferencing potentially unassigned variables.
Old way with a struct and common block does not work with dlopen provatization somehow.

5 years agomove CPU models to kernel::resource too
Frederic Suter [Fri, 12 Apr 2019 12:34:36 +0000 (14:34 +0200)]
move CPU models to kernel::resource too

5 years agocosmetic cleanups in network models
Frederic Suter [Fri, 12 Apr 2019 11:26:51 +0000 (13:26 +0200)]
cosmetic cleanups in network models

5 years agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Fri, 12 Apr 2019 11:01:51 +0000 (13:01 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

5 years agochanging namespace for cpu_interface
Frederic Suter [Fri, 12 Apr 2019 11:01:15 +0000 (13:01 +0200)]
changing namespace for cpu_interface

5 years agocosmetics
Frederic Suter [Fri, 12 Apr 2019 09:29:43 +0000 (11:29 +0200)]
cosmetics

5 years agoFix hash update.
Arnaud Giersch [Fri, 12 Apr 2019 09:13:51 +0000 (11:13 +0200)]
Fix hash update.

5 years agostringify
Frederic Suter [Fri, 12 Apr 2019 09:08:31 +0000 (11:08 +0200)]
stringify

5 years agoWith a std::map, entries are already sorted by their keys.
Arnaud Giersch [Thu, 11 Apr 2019 20:08:26 +0000 (22:08 +0200)]
With a std::map, entries are already sorted by their keys.

5 years agoRemove unnecessary "else"s.
Arnaud Giersch [Tue, 9 Apr 2019 08:27:12 +0000 (10:27 +0200)]
Remove unnecessary "else"s.

Also reduce Sonar's cognitive complexity.

5 years agoCosmetics.
Arnaud Giersch [Fri, 5 Apr 2019 14:19:51 +0000 (16:19 +0200)]
Cosmetics.

5 years agoRestore environment variable used by StarPU.
Arnaud Giersch [Thu, 11 Apr 2019 15:31:21 +0000 (17:31 +0200)]
Restore environment variable used by StarPU.

5 years agoMemory leaks.
Arnaud Giersch [Thu, 11 Apr 2019 08:58:28 +0000 (10:58 +0200)]
Memory leaks.

5 years agoplease sonar (protected fields) and coding standards (uppercase enum)
Frederic Suter [Thu, 11 Apr 2019 12:14:12 +0000 (14:14 +0200)]
please sonar (protected fields) and coding standards (uppercase enum)

5 years agosimplify this live migration stuff
Frederic Suter [Thu, 11 Apr 2019 11:17:39 +0000 (13:17 +0200)]
simplify this live migration stuff

5 years agoExclude overlapping portions of regions.
Arnaud Giersch [Wed, 10 Apr 2019 19:06:35 +0000 (21:06 +0200)]
Exclude overlapping portions of regions.

Sometimes, offending regions don't match perfectly. Don't ask me why...

Should solve problems seen on Jenkins with UBSan or Coverage builds, and tests
*-mpich3-coll-*-mmap-*.

5 years agoSimplify deprecated function.
Arnaud Giersch [Mon, 8 Apr 2019 13:02:21 +0000 (15:02 +0200)]
Simplify deprecated function.

5 years agoA simcall seems superfluous here (+ constify).
Arnaud Giersch [Tue, 9 Apr 2019 15:29:25 +0000 (17:29 +0200)]
A simcall seems superfluous here (+ constify).

5 years agoUse already set variable.
Arnaud Giersch [Tue, 9 Apr 2019 15:29:03 +0000 (17:29 +0200)]
Use already set variable.

5 years ago[codacy] Reduce scope for variables.
Arnaud Giersch [Mon, 8 Apr 2019 20:16:31 +0000 (22:16 +0200)]
[codacy] Reduce scope for variables.

5 years agoLess casts.
Arnaud Giersch [Fri, 5 Apr 2019 14:25:06 +0000 (16:25 +0200)]
Less casts.

5 years agoRegenerated.
Arnaud Giersch [Fri, 5 Apr 2019 14:19:01 +0000 (16:19 +0200)]
Regenerated.

5 years agougly typo ...
Frederic Suter [Mon, 8 Apr 2019 13:45:42 +0000 (15:45 +0200)]
ugly typo ...

5 years agofurther simplify throw_exception
Frederic Suter [Mon, 8 Apr 2019 11:49:51 +0000 (13:49 +0200)]
further simplify throw_exception

5 years agosimplify throw_exception
Frederic Suter [Mon, 8 Apr 2019 11:09:46 +0000 (13:09 +0200)]
simplify throw_exception

5 years agofortran : avoid removing groups and communicators from the lookup table if they are...
degomme [Mon, 8 Apr 2019 09:54:19 +0000 (11:54 +0200)]
fortran : avoid removing groups and communicators from the lookup table if they are not really freed and possibly shared with other processes (comm_world).

5 years agoFix fortran f2c.
degomme [Mon, 8 Apr 2019 09:42:08 +0000 (11:42 +0200)]
Fix fortran f2c.
It was using hexa to store int strings, which led to issues as 1F was interpreted as 1 in the other direction.

5 years agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Mon, 8 Apr 2019 07:03:16 +0000 (09:03 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

5 years agoplease herr sonar
Augustin Degomme [Sat, 6 Apr 2019 12:54:02 +0000 (14:54 +0200)]
please herr sonar

5 years agoprotect against bad buffer
Augustin Degomme [Sat, 6 Apr 2019 12:53:51 +0000 (14:53 +0200)]
protect against bad buffer

5 years agoplease sonar in various trivial ways
Martin Quinson [Sat, 6 Apr 2019 11:48:37 +0000 (13:48 +0200)]
please sonar in various trivial ways

5 years agoactivate a sleeping test
Augustin Degomme [Sat, 6 Apr 2019 10:40:24 +0000 (12:40 +0200)]
activate a sleeping test

5 years agomost linuxes seem to prefer resetting this value at 0 to initiate some cleanups
Augustin Degomme [Sat, 6 Apr 2019 10:40:12 +0000 (12:40 +0200)]
most linuxes seem to prefer resetting this value at 0 to initiate some cleanups
from the manpage :
(Resetting  to 0 forces the invocation of an internal initialization routine that rechecks POSIXLY_CORRECT and
       checks for GNU extensions in optstring.)

5 years agoMerge branch 'master' of https://framagit.org/simgrid/simgrid
Frederic Suter [Fri, 5 Apr 2019 15:57:54 +0000 (17:57 +0200)]
Merge branch 'master' of https://framagit.org/simgrid/simgrid

5 years agosimplify
Frederic Suter [Fri, 5 Apr 2019 15:57:14 +0000 (17:57 +0200)]
simplify

5 years agosimplify terminaison of activities in Actor::exit()
Frederic Suter [Fri, 5 Apr 2019 15:56:44 +0000 (17:56 +0200)]
simplify terminaison of activities in Actor::exit()

5 years agoFix getopt for BSD systems
degomme [Fri, 5 Apr 2019 15:29:29 +0000 (17:29 +0200)]
Fix getopt for BSD systems
optind should be set to 1, not 0. GNU was just more resilient.

5 years agogetopt seems to behave differently on BSD platforms, deactivate the test for them...
degomme [Fri, 5 Apr 2019 14:40:26 +0000 (16:40 +0200)]
getopt seems to behave differently on BSD platforms, deactivate the test for them, pending investigation.

5 years agofactor simcall/activity binding
Frederic Suter [Fri, 5 Apr 2019 14:19:59 +0000 (16:19 +0200)]
factor simcall/activity binding

5 years agoforgot to change fake option here as well
degomme [Fri, 5 Apr 2019 13:37:41 +0000 (15:37 +0200)]
forgot to change fake option here as well