Discussion:
[deprecated list] 2 equal starts - 2 different results
Anton Gladky
2009-07-01 14:41:42 UTC
Permalink
I have started 1 script 2 times. With the same parameters.
But when I analyse diagrams from these tests, I get different results.

Why is it so? Is it normal?

______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Bruno Chareyre
2009-07-01 14:45:11 UTC
Permalink
"Is it normal?"
No.
"Why is it so?"
Randomness comes with uninitialised values. Try the same thing with
"valgrind ./yade".

Bruno
I have started 1 script 2 times. With the same parameters.
But when I analyse diagrams from these tests, I get different results.
Why is it so? Is it normal?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями
Anton Gladkyy
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
--
_______________
Chareyre Bruno
Maitre de conference

Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________


_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-***@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-07-01 14:51:41 UTC
Permalink
Thank you, Bruno.
It returns a lot of results, some of them are:

==15154== Use of uninitialised value of size 8
==15154== Conditional jump or move depends on uninitialised value(s)

etc.

What should I look for?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy


On Wed, Jul 1, 2009 at 4:45 PM, Bruno Chareyre
Post by Bruno Chareyre
"Is it normal?"
No.
"Why is it so?"
Randomness comes with uninitialised values. Try the same thing with
"valgrind ./yade".
Bruno
I have started 1 script 2 times. With the same parameters.
But when I analyse diagrams from these tests, I get different results.
Why is it so? Is it normal?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО
Anton Gladkyy
------------------------------------------------------------------------
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
--
_______________
Chareyre Bruno
Maitre de conference
Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-07-01 15:16:22 UTC
Permalink
It is not compiled with this option.
What is it for?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Anton Gladky
Thank you, Bruno.
Post by Anton Gladky
==15154== Use of uninitialised value of size 8
==15154== Conditional jump or move depends on uninitialised value(s)
etc.
Just one point before you continue: check that yade is compiled with -O0
option...
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Bruno Chareyre
2009-07-01 16:12:56 UTC
Permalink
You should see in valgrind output where the uninitialised values are
instanciated/used (provided you compiled with -g).
I guess -O0 avoids optimizations, so that valgrind gives accurate
results (optimisation can reorganise loops and such), I didn't know it
was a prerequisite here, but it is probably not a bad thing.

Bruno
Post by Anton Gladky
It is not compiled with this option.
What is it for?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen Grüßen
[RUS] С наилучшими пожеланиями
[UKR] З найкращими побажаннями
Anton Gladkyy
Thank you, Bruno.
==15154== Use of uninitialised value of size 8
==15154== Conditional jump or move depends on uninitialised value(s)
etc.
Just one point before you continue: check that yade is compiled
with -O0 option...
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users
<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
------------------------------------------------------------------------
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
--
_______________
Chareyre Bruno
Maitre de conference

Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________


_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-***@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-07-01 16:21:32 UTC
Permalink
So, I need to compile YADE with -g option and then start valgrind again?

I should use -g with scons?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Bruno Chareyre
You should see in valgrind output where the uninitialised values are
instanciated/used (provided you compiled with -g).
I guess -O0 avoids optimizations, so that valgrind gives accurate results
(optimisation can reorganise loops and such), I didn't know it was a
prerequisite here, but it is probably not a bad thing.
Bruno
Post by Anton Gladky
It is not compiled with this option.
What is it for?
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО
Anton Gladkyy
Thank you, Bruno.
==15154== Use of uninitialised value of size 8
==15154== Conditional jump or move depends on uninitialised value(s)
etc.
Just one point before you continue: check that yade is compiled
with -O0 option...
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
------------------------------------------------------------------------
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
--
_______________
Chareyre Bruno
Maitre de conference
Grenoble INP
Laboratoire 3SR - bureau E145
BP 53 - 38041, Grenoble cedex 9 - France
Tél : 33 4 56 52 86 21
Fax : 33 4 76 82 70 43
________________
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Vincent Richefeu
2009-07-01 15:03:44 UTC
Permalink
Post by Anton Gladky
Thank you, Bruno.
==15154== Use of uninitialised value of size 8
==15154== Conditional jump or move depends on uninitialised value(s)
etc.
Just one point before you continue: check that yade is compiled with -
O0 option...
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp

Václav Šmilauer
2009-07-01 18:19:04 UTC
Permalink
Post by Anton Gladky
I have started 1 script 2 times. With the same parameters.
But when I analyse diagrams from these tests, I get different results.
Can you post your scripts?

V.



_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users-oU9gvf+***@public.gmane.org
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp
Anton Gladky
2009-07-01 18:23:20 UTC
Permalink
It is a very simple one.
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÌßen
[RUS] С МаОлучшОЌО пПжелаМОяЌО
[UKR] З МайкращОЌО пПбажаММяЌО

Anton Gladkyy
Post by Václav Šmilauer
Post by Anton Gladky
I have started 1 script 2 times. With the same parameters.
But when I analyse diagrams from these tests, I get different results.
Can you post your scripts?
V.
_______________________________________________
Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
Loading...