Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sphrayderv 的 debug mode 跟 release mode dtds.out 結果不同 #22

Open
dyhe83 opened this issue Mar 12, 2019 · 2 comments
Open

sphrayderv 的 debug mode 跟 release mode dtds.out 結果不同 #22

dyhe83 opened this issue Mar 12, 2019 · 2 comments
Labels
help wanted Extra attention is needed invalid This doesn't seem right sphrayderv

Comments

@dyhe83
Copy link
Collaborator

dyhe83 commented Mar 12, 2019

sphrayderv 使用 debug, release 兩個模式的計算結果不同:

  • dtds.out
[dongying@rhein Downloads]$ diff debug/dtds.out release/dtds.out
Binary files debug/build/dtds.out and release/build/dtds.out differ
  • sphrayderv.log
[dongying@rhein Downloads]$ diff debug/sphrayderv.log release/sphrayderv.log
870c870
<                    RMS :      0.4109
---
>                    RMS :      0.4108
880,881c880,881
<  Number of Wavespeed Variables: 3800
<  Degrees of freedom: 3301
---
>  Number of Wavespeed Variables: 3803
>  Degrees of freedom: 3298
@dyhe83 dyhe83 added help wanted Extra attention is needed invalid This doesn't seem right sphrayderv labels Mar 12, 2019
@dyhe83
Copy link
Collaborator Author

dyhe83 commented Mar 12, 2019

gcc 編譯時加上 -ffloat-store,可以讓log相同,但是 dtds.out 還是不同。
ref: https://stackoverflow.com/questions/7517588/different-floating-point-result-with-optimization-enabled-compiler-bug

@dyhe83
Copy link
Collaborator Author

dyhe83 commented Mar 14, 2019

造成Debug Release 結果不同的相關連結
https://codeday.me/bug/20170904/67562.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed invalid This doesn't seem right sphrayderv
Projects
None yet
Development

No branches or pull requests

1 participant