You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had some trouble updating test reference files that were generated on my Mac with M3 chip when working on this PR (tests ran through locally but not on github): #3224
A problem might be that the population equals method relies on raw bytes of gzipped files:
and updating it to include pairwise plan elements comparison in 564cf47
worked.
In lack of a better explanation so far I'm leaving this issue as a FYI in case someone runs into the same issue.
If the diagnosis is correct, we might even think of removing the by-byte comparison of populations (which isn't that helpful in terms of identifying what is different anyways.. the events file comparator is much more helpful in that regard)
The text was updated successfully, but these errors were encountered:
I remember @luchengqi7 ran into the same issue several times. This was related to comparing scores. The problem is that the FP works sometimes (*) a bit different on mac and intel CPUs.
(*) AFAIR this difference is not coming from simple FP arithmetic operators. It's more related to more complex calculations, e.g. calling the exp() function (which I think we do in scoring).
(*) AFAIR this difference is not coming from simple FP arithmetic operators. It's more related to more complex calculations, e.g. calling the exp() function (which I think we do in scoring).
This could depend on the specific JDK distribution and the math libs it uses. But I am not expert at all here.
I had some trouble updating test reference files that were generated on my Mac with M3 chip when working on this PR (tests ran through locally but not on github):
#3224
A problem might be that the population equals method relies on raw bytes of gzipped files:
matsim-libs/matsim/src/main/java/org/matsim/core/population/PopulationUtils.java
Lines 659 to 677 in d5db30a
Changing to the population comparison class
https://github.com/matsim-org/matsim-libs/blob/master/matsim/src/main/java/org/matsim/core/population/routes/PopulationComparison.java
and updating it to include pairwise plan elements comparison in
564cf47
worked.
In lack of a better explanation so far I'm leaving this issue as a FYI in case someone runs into the same issue.
If the diagnosis is correct, we might even think of removing the by-byte comparison of populations (which isn't that helpful in terms of identifying what is different anyways.. the events file comparator is much more helpful in that regard)
The text was updated successfully, but these errors were encountered: