Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
simgrid.git
12 years agoRemove parmap_private.h since parmap.c is the only file using it
Christophe Thiéry [Mon, 5 Dec 2011 16:05:10 +0000 (17:05 +0100)]
Remove parmap_private.h since parmap.c is the only file using it

12 years agoIn sequential mode, don't use thread-specific data
Christophe Thiéry [Mon, 5 Dec 2011 15:54:38 +0000 (16:54 +0100)]
In sequential mode, don't use thread-specific data

12 years agoMake the compilation succed for windows.
unknown [Mon, 5 Dec 2011 13:36:27 +0000 (14:36 +0100)]
Make the compilation succed for windows.
THIS is forbidden on win so rename it for THIS_AS

12 years agoUse the good link for latency.
unknown [Mon, 5 Dec 2011 13:35:17 +0000 (14:35 +0100)]
Use the good link for latency.

12 years agoAdd a data_center platform.
Navarrop [Fri, 2 Dec 2011 16:04:37 +0000 (17:04 +0100)]
Add a data_center platform.

12 years agoAdd a cloud platform.
Navarrop [Fri, 2 Dec 2011 15:38:09 +0000 (16:38 +0100)]
Add a cloud platform.

12 years agoKill old CVS $Id$ lines.
Arnaud Giersch [Thu, 1 Dec 2011 15:52:42 +0000 (16:52 +0100)]
Kill old CVS $Id$ lines.

12 years agoAlways define SIMGRID_VERSION_*.
Arnaud Giersch [Thu, 1 Dec 2011 13:56:51 +0000 (14:56 +0100)]
Always define SIMGRID_VERSION_*.

12 years agoUse homogeneous dictionaries whenever possible.
Arnaud Giersch [Mon, 28 Nov 2011 14:43:51 +0000 (15:43 +0100)]
Use homogeneous dictionaries whenever possible.

The only remaining users of heterogeneous dicts are sets and multidicts.

12 years agoUse homogeneous dicts for xbt_lib.
Arnaud Giersch [Mon, 28 Nov 2011 13:55:16 +0000 (14:55 +0100)]
Use homogeneous dicts for xbt_lib.

12 years agoAdd some tests for homogeneous dicts (global free functions).
Arnaud Giersch [Fri, 25 Nov 2011 22:05:59 +0000 (23:05 +0100)]
Add some tests for homogeneous dicts (global free functions).

12 years agoDefine xbt_dict_new_homogeneous().
Arnaud Giersch [Mon, 28 Nov 2011 13:39:44 +0000 (14:39 +0100)]
Define xbt_dict_new_homogeneous().

12 years agoMake dicts ready to accept homogeneous dictionaries.
Arnaud Giersch [Mon, 28 Nov 2011 13:22:11 +0000 (14:22 +0100)]
Make dicts ready to accept homogeneous dictionaries.

12 years agoDefine a struct s_xbt_het_dictelm for holding the free function of a dict element.
Arnaud Giersch [Mon, 28 Nov 2011 12:56:53 +0000 (13:56 +0100)]
Define a struct s_xbt_het_dictelm for holding the free function of a dict element.

Create a mallocator for these structs, and use them.

12 years agoDefine xbt_dictelm_set_data, to reduce code duplication.
Arnaud Giersch [Fri, 25 Nov 2011 21:06:19 +0000 (22:06 +0100)]
Define xbt_dictelm_set_data, to reduce code duplication.

12 years agoAdd a dict parameter to dictelm functions.
Arnaud Giersch [Fri, 25 Nov 2011 17:45:13 +0000 (18:45 +0100)]
Add a dict parameter to dictelm functions.

Unused for now.

12 years agoAdd two fields to struct dict, in prevision of homogeneous dicts.
Arnaud Giersch [Mon, 28 Nov 2011 12:50:46 +0000 (13:50 +0100)]
Add two fields to struct dict, in prevision of homogeneous dicts.

12 years agoRewrite integer dicts using regular dicts.
Arnaud Giersch [Fri, 25 Nov 2011 17:30:36 +0000 (18:30 +0100)]
Rewrite integer dicts using regular dicts.

The goal here is to reduce the code complexity for further changes.

It's certainly not optimized anymore, but who cares?
Nobody seems to use them anymore.  Integer dicts could be marked as deprecated.

The main difference is that memory is malloc'ed to store a copy of
the key.

12 years agoA mallocator for dict structs is a bit overkill.
Arnaud Giersch [Thu, 1 Dec 2011 10:25:50 +0000 (11:25 +0100)]
A mallocator for dict structs is a bit overkill.

12 years agotwo more clobbered variables that prevent me to compile. Don't ask
Frederic Suter [Thu, 1 Dec 2011 08:13:01 +0000 (09:13 +0100)]
two more clobbered variables that prevent me to compile. Don't ask
Midjy this time.

12 years agotesh: fix the stable sort.
Arnaud Giersch [Wed, 30 Nov 2011 22:29:03 +0000 (23:29 +0100)]
tesh: fix the stable sort.

Use a double indirection to be sure that the addresses of the
string pointers do not move.

12 years agotesh: fix memory leaks.
Arnaud Giersch [Wed, 30 Nov 2011 22:28:52 +0000 (23:28 +0100)]
tesh: fix memory leaks.

12 years agoCorrection of a bug. Always return 0.
Navarrop [Wed, 30 Nov 2011 16:29:06 +0000 (17:29 +0100)]
Correction of a bug. Always return 0.

12 years agoRemove memleaks
Navarrop [Wed, 30 Nov 2011 15:58:46 +0000 (16:58 +0100)]
Remove memleaks

12 years agoAdd a masterslave example with arguments
Navarrop [Wed, 30 Nov 2011 15:52:09 +0000 (16:52 +0100)]
Add a masterslave example with arguments
number_of_jobs
number_of_slaves

12 years agoAdd a platform with one cluster and a host
Navarrop [Wed, 30 Nov 2011 15:30:51 +0000 (16:30 +0100)]
Add a platform with one cluster and a host

12 years agoadd a test trying to access the properties of a remote host -- it works
Martin Quinson [Wed, 30 Nov 2011 00:21:33 +0000 (01:21 +0100)]
add a test trying to access the properties of a remote host -- it works

12 years agoFree mutex in xbt_dynar_to_array.
Arnaud Giersch [Tue, 29 Nov 2011 13:38:54 +0000 (14:38 +0100)]
Free mutex in xbt_dynar_to_array.

12 years agoAvoid the temporary malloc in xbt_dynar_to_array.
Arnaud Giersch [Tue, 29 Nov 2011 13:38:23 +0000 (14:38 +0100)]
Avoid the temporary malloc in xbt_dynar_to_array.

12 years agoRevert "The latency is constant with the constant network model."
Christophe Thiéry [Tue, 29 Nov 2011 13:39:17 +0000 (14:39 +0100)]
Revert "The latency is constant with the constant network model."

Because actually, it's not.

This reverts commit 123eb94b4e6a8db258c498d38ac1b21656f0f840.

12 years agoThe latency is constant with the constant network model.
Christophe Thiéry [Tue, 29 Nov 2011 12:57:42 +0000 (13:57 +0100)]
The latency is constant with the constant network model.

12 years agoFix uninitialized variable.
Arnaud Giersch [Mon, 28 Nov 2011 22:27:20 +0000 (23:27 +0100)]
Fix uninitialized variable.

12 years agoInclude surf_resource.h, for surf_resource_name().
Arnaud Giersch [Mon, 28 Nov 2011 17:08:05 +0000 (18:08 +0100)]
Include surf_resource.h, for surf_resource_name().

12 years agos/add/free/ in doc.
Arnaud Giersch [Mon, 28 Nov 2011 17:16:14 +0000 (18:16 +0100)]
s/add/free/ in doc.

12 years agoDon't lie about xbt_xfg_t.
Arnaud Giersch [Mon, 28 Nov 2011 14:38:21 +0000 (15:38 +0100)]
Don't lie about xbt_xfg_t.

12 years agoCorreclty handle the case p1 < p2 in cmpstringp.
Arnaud Giersch [Tue, 29 Nov 2011 10:36:47 +0000 (11:36 +0100)]
Correclty handle the case p1 < p2 in cmpstringp.

12 years agoFunction does not exist.
Arnaud Giersch [Fri, 25 Nov 2011 13:58:37 +0000 (14:58 +0100)]
Function does not exist.

12 years agoRename dict structs to follow README.coding.
Arnaud Giersch [Fri, 25 Nov 2011 17:17:15 +0000 (18:17 +0100)]
Rename dict structs to follow README.coding.

12 years agoRemove useless internal functions.
Arnaud Giersch [Mon, 28 Nov 2011 12:21:41 +0000 (13:21 +0100)]
Remove useless internal functions.

12 years agoAllow NULL for the reset function of mallocators.
Arnaud Giersch [Mon, 28 Nov 2011 12:19:18 +0000 (13:19 +0100)]
Allow NULL for the reset function of mallocators.

12 years agoRemove unused empty function.
Arnaud Giersch [Mon, 28 Nov 2011 12:07:46 +0000 (13:07 +0100)]
Remove unused empty function.

12 years agoReorganize structs to save a few bytes.
Arnaud Giersch [Thu, 24 Nov 2011 10:57:22 +0000 (11:57 +0100)]
Reorganize structs to save a few bytes.

The general idea is to move the fields, in order to group pointers
apart from integers.  Thus, the padding between fields is reduced,
and the size of the struct is reduced too.

It can save up to 32 bytes per node (host and/or process) on 64bits
architectures.

12 years agoRemove an useless (but optimized!) memcpy.
Arnaud Giersch [Wed, 23 Nov 2011 15:25:13 +0000 (16:25 +0100)]
Remove an useless (but optimized!) memcpy.

12 years agoAvoid to clear mem for the last element.
Arnaud Giersch [Wed, 23 Nov 2011 14:54:14 +0000 (15:54 +0100)]
Avoid to clear mem for the last element.

And save a few calls to memset.

12 years ago_xbt_clear_mem is used only once. Use memset directly.
Arnaud Giersch [Wed, 23 Nov 2011 12:55:19 +0000 (13:55 +0100)]
_xbt_clear_mem is used only once.  Use memset directly.

12 years agoFactorize code for xbt_dynar_shrink/_xbt_dynar_expand.
Arnaud Giersch [Wed, 23 Nov 2011 12:53:16 +0000 (13:53 +0100)]
Factorize code for xbt_dynar_shrink/_xbt_dynar_expand.

12 years agoThere's no point in clearing mem in _xbt_dynar_expand.
Arnaud Giersch [Wed, 23 Nov 2011 12:51:27 +0000 (13:51 +0100)]
There's no point in clearing mem in _xbt_dynar_expand.

It's already done in _xbt_dynar_set_at_ptr.

12 years agoKill dead (commented) code.
Arnaud Giersch [Wed, 23 Nov 2011 12:39:43 +0000 (13:39 +0100)]
Kill dead (commented) code.

12 years agoFactorize code for xbt_dynar_set/xbt_dynar_set_at_ptr.
Arnaud Giersch [Wed, 23 Nov 2011 12:37:32 +0000 (13:37 +0100)]
Factorize code for xbt_dynar_set/xbt_dynar_set_at_ptr.

12 years agoUnlock dynar at proper place.
Arnaud Giersch [Wed, 23 Nov 2011 12:31:36 +0000 (13:31 +0100)]
Unlock dynar at proper place.

12 years agoDon't call _xbt_dynar_expand when it's not needed.
Arnaud Giersch [Wed, 23 Nov 2011 12:22:46 +0000 (13:22 +0100)]
Don't call _xbt_dynar_expand when it's not needed.

12 years agoDon't clear mem before free.
Arnaud Giersch [Tue, 22 Nov 2011 12:39:39 +0000 (13:39 +0100)]
Don't clear mem before free.

Use a tool like valgrind to check for memory errors.

12 years agoPush last_route in global_routing.
Arnaud Giersch [Tue, 22 Nov 2011 14:48:47 +0000 (15:48 +0100)]
Push last_route in global_routing.

Now we are able to free it at exit.

12 years agoNeed to have my own link list.
Arnaud Giersch [Mon, 21 Nov 2011 11:23:26 +0000 (12:23 +0100)]
Need to have my own link list.

Else, it is freed while I'm still using it.

12 years agoFree cost table on finalize.
Arnaud Giersch [Mon, 21 Nov 2011 11:20:06 +0000 (12:20 +0100)]
Free cost table on finalize.

12 years agoStrings are already dup'ed by caller.
Arnaud Giersch [Mon, 21 Nov 2011 11:18:59 +0000 (12:18 +0100)]
Strings are already dup'ed by caller.

12 years agomemcheck_tests.cmake: regenerate
Arnaud Giersch [Mon, 21 Nov 2011 11:17:02 +0000 (12:17 +0100)]
memcheck_tests.cmake: regenerate

12 years agoSet path for binary in token ring tesh file.
Arnaud Giersch [Mon, 21 Nov 2011 11:15:05 +0000 (12:15 +0100)]
Set path for binary in token ring tesh file.

12 years agoxbt_dict_new_ext() doesn't exist anymore.
Arnaud Giersch [Wed, 23 Nov 2011 08:10:08 +0000 (09:10 +0100)]
xbt_dict_new_ext() doesn't exist anymore.

12 years agoFix warning about clobbered variable.
Arnaud Giersch [Wed, 23 Nov 2011 13:13:30 +0000 (14:13 +0100)]
Fix warning about clobbered variable.

12 years agoFixup for commit 08ac8cf2900.
Arnaud Giersch [Wed, 23 Nov 2011 15:40:10 +0000 (16:40 +0100)]
Fixup for commit 08ac8cf2900.

Looks like I forgot this changed line.

12 years agomake the string large enough to avoid buffer overflows
Martin Quinson [Fri, 18 Nov 2011 16:03:57 +0000 (17:03 +0100)]
make the string large enough to avoid buffer overflows

12 years agoget workstation model to pick the right network model, the one given as default one...
Martin Quinson [Fri, 18 Nov 2011 16:02:39 +0000 (17:02 +0100)]
get workstation model to pick the right network model, the one given as default one (done the crude way, and LV08 actually breaks some stuff)

12 years agothere is no route in vivaldi
Martin Quinson [Fri, 18 Nov 2011 15:35:15 +0000 (16:35 +0100)]
there is no route in vivaldi

12 years agoAdd a test for model RuleBased.
Navarrop [Thu, 17 Nov 2011 11:14:28 +0000 (12:14 +0100)]
Add a test for model RuleBased.
Cause now in cluster it is model "cluster".

12 years agoLua: change the return values of simgrid.task.send.
Christophe Thiéry [Wed, 16 Nov 2011 14:48:06 +0000 (15:48 +0100)]
Lua: change the return values of simgrid.task.send.

Also fix a bug in checking the comm type.

12 years agoMSG_comm_test and MSG_comm_testany did not update isused
Christophe Thiéry [Wed, 16 Nov 2011 14:47:07 +0000 (15:47 +0100)]
MSG_comm_test and MSG_comm_testany did not update isused

12 years agoLua: debug chord again
Christophe Thiéry [Wed, 16 Nov 2011 14:41:57 +0000 (15:41 +0100)]
Lua: debug chord again

12 years agoRegenerated memcheck tests.
Arnaud Giersch [Wed, 16 Nov 2011 06:35:16 +0000 (07:35 +0100)]
Regenerated memcheck tests.

12 years agoLua: fixing the chord example
Christophe Thiéry [Tue, 15 Nov 2011 22:54:29 +0000 (23:54 +0100)]
Lua: fixing the chord example

12 years agoLua: simplify the return values of simgrid.comm.test()
Christophe Thiéry [Tue, 15 Nov 2011 22:53:40 +0000 (23:53 +0100)]
Lua: simplify the return values of simgrid.comm.test()

12 years agoLua: implement isend, dsend and irecv
Christophe Thiéry [Tue, 15 Nov 2011 22:01:03 +0000 (23:01 +0100)]
Lua: implement isend, dsend and irecv

12 years agoLua: fix Chord example
Christophe Thiéry [Tue, 15 Nov 2011 22:00:44 +0000 (23:00 +0100)]
Lua: fix Chord example

12 years agoNobody uses MSG_get_errno and wants useless calls to SIMIX_process_self
Christophe Thiéry [Tue, 15 Nov 2011 17:57:13 +0000 (18:57 +0100)]
Nobody uses MSG_get_errno and wants useless calls to SIMIX_process_self

12 years agoSIMIX: add a redundant parameter to avoid repeated SIMIX_process_self()
Christophe Thiéry [Tue, 15 Nov 2011 17:22:05 +0000 (18:22 +0100)]
SIMIX: add a redundant parameter to avoid repeated SIMIX_process_self()

12 years agoRemove a useless function. The default one does the same thing.
Christophe Thiéry [Tue, 15 Nov 2011 15:54:33 +0000 (16:54 +0100)]
Remove a useless function. The default one does the same thing.

12 years agoplug some more memleaks. We have no leak on the GOAL example anymore, yuhu
Martin Quinson [Tue, 15 Nov 2011 16:15:03 +0000 (17:15 +0100)]
plug some more memleaks. We have no leak on the GOAL example anymore, yuhu

12 years agoAdd a platform with a bypass route. Add the test to cmake.
Navarrop [Tue, 15 Nov 2011 15:18:37 +0000 (16:18 +0100)]
Add a platform with a bypass route. Add the test to cmake.
Update flatifier and basic_parsing_test to not put "\t" but spaces.

12 years agoforgot to recreate the option when reviving supernovae
Martin QUINSON [Tue, 15 Nov 2011 14:54:08 +0000 (15:54 +0100)]
forgot to recreate the option when reviving supernovae

12 years agorevert [a30523e] (remove supernovae) because I need some timings on G5K, and fix...
Martin Quinson [Tue, 15 Nov 2011 14:43:55 +0000 (15:43 +0100)]
revert [a30523e] (remove supernovae) because I need some timings on G5K, and fix what broke in supernovae mode since then

12 years agoplug some more memleaks. aint bad anymore
Martin Quinson [Tue, 15 Nov 2011 13:34:45 +0000 (14:34 +0100)]
plug some more memleaks. aint bad anymore

12 years agoLua: removing the MSG_process_sleep hack changes the order of output
Christophe Thiéry [Tue, 15 Nov 2011 13:28:29 +0000 (14:28 +0100)]
Lua: removing the MSG_process_sleep hack changes the order of output

12 years agoLua: copy tasks so that the sender doesn't have to sleep
Christophe Thiéry [Tue, 15 Nov 2011 13:23:43 +0000 (14:23 +0100)]
Lua: copy tasks so that the sender doesn't have to sleep

This will allow to implement asynchronous comms (isend/irecv)

12 years agoCosmetics
Christophe Thiéry [Tue, 15 Nov 2011 13:18:28 +0000 (14:18 +0100)]
Cosmetics

12 years agoplug a bunch of memleaks
Martin Quinson [Tue, 15 Nov 2011 12:14:28 +0000 (13:14 +0100)]
plug a bunch of memleaks

12 years agodamn it, there is no example testing the bypass mecanism!!
Martin Quinson [Tue, 15 Nov 2011 11:04:08 +0000 (12:04 +0100)]
damn it, there is no example testing the bypass mecanism!!

12 years agoreplace a new/free cycle by a locally stacked object
Martin Quinson [Tue, 15 Nov 2011 10:48:41 +0000 (11:48 +0100)]
replace a new/free cycle by a locally stacked object

12 years agowork to enforce that link arg is readily usable in r_g_r_a_l
Martin Quinson [Tue, 15 Nov 2011 10:41:26 +0000 (11:41 +0100)]
work to enforce that link arg is readily usable in r_g_r_a_l

12 years agoreduce the dynar creation madness in g_r_a_l in recursive case
Martin Quinson [Tue, 15 Nov 2011 10:28:19 +0000 (11:28 +0100)]
reduce the dynar creation madness in g_r_a_l in recursive case

12 years agorewrite an error message
Martin Quinson [Tue, 15 Nov 2011 09:43:04 +0000 (10:43 +0100)]
rewrite an error message

12 years agomerge get_route and get_latency in routings too
Martin Quinson [Tue, 15 Nov 2011 09:36:22 +0000 (10:36 +0100)]
merge get_route and get_latency in routings too

12 years agorename a global to avoid namespace pollution (and other cosmetics)
Martin Quinson [Tue, 15 Nov 2011 08:52:40 +0000 (09:52 +0100)]
rename a global to avoid namespace pollution (and other cosmetics)

12 years agokill useless asserts: this is not the way routing logics will take to notice about...
Martin Quinson [Tue, 15 Nov 2011 08:43:42 +0000 (09:43 +0100)]
kill useless asserts: this is not the way routing logics will take to notice about non-existant routes

12 years agofurther streamline r_get_route_a_l: now that latency is nicely additive, no need...
Martin Quinson [Tue, 15 Nov 2011 08:40:58 +0000 (09:40 +0100)]
further streamline r_get_route_a_l: now that latency is nicely additive, no need for extra precaution

12 years agosimplify _routing_get_route_and_latency wrt latency
Martin Quinson [Tue, 15 Nov 2011 08:36:10 +0000 (09:36 +0100)]
simplify _routing_get_route_and_latency wrt latency

- remove duplicated asserts about non negative latency
  routing_get_route_and_latency (w/o _) checks it
- give the responsability to initialize it to the caller
- streamline the code

12 years agoChange again the calling convention of routing_get_route_and_latency
Martin Quinson [Tue, 15 Nov 2011 08:15:09 +0000 (09:15 +0100)]
Change again the calling convention of routing_get_route_and_latency

now, you cannot call it without passing a valid route receiver. It
will be created if pointing to NULL, or simply filled. Actually that
was the de facto calling convention in the code.

This allows to simplify routing_get_route_and_latency by not checking
if the caller is interested in the route at every line.

(plus some useless cosmetics)

12 years agocheck that AS->get_route don't return NULL on non-existant route, but throw an exception
Martin Quinson [Tue, 15 Nov 2011 07:45:05 +0000 (08:45 +0100)]
check that AS->get_route don't return NULL on non-existant route, but throw an exception

12 years agokill the now useless 'cleanup' parameter of routing_get_route_and_latency
Martin Quinson [Tue, 15 Nov 2011 01:35:50 +0000 (02:35 +0100)]
kill the now useless 'cleanup' parameter of routing_get_route_and_latency

Instead, if route == NULL we won't bother collecting the route, so
freeing is useless.
If *route == NULL, we create a short-lived dynar (equivalent to the
result of having cleanup=1 previously
else, we fill that route without messing with it

12 years agokill global_routing->get_route_no_cleanup()
Martin Quinson [Tue, 15 Nov 2011 01:06:53 +0000 (02:06 +0100)]
kill global_routing->get_route_no_cleanup()

use routing_get_route_and_latency(....., 0) instead

12 years agokill routing_get_route(), use routing_get_route_and_latency() instead
Martin Quinson [Tue, 15 Nov 2011 01:01:25 +0000 (02:01 +0100)]
kill routing_get_route(), use routing_get_route_and_latency() instead