DRB047 has different ground truth between C/C++ file and Fortran file.
Yaying-llnl-summer opened this issue · 4 comments
Yaying-llnl-summer commented
DRB047 has different ground truth between C/C++ file and Fortran file.
xintin commented
Yes @Yaying-llnl-summer. Please find the reasoning below:
In c, we can assign int
to a char
array but in Fortran we can not. It will throw an error. So, we need to use write()
in Fortran. Using write()
without handling dependencies will cause undefined behavior in Fortran. Same thing won't be present in c. Hence, they are different, but correct.
xintin commented
In c, it doesn't have a data race but in Fortran it will have.
chunhualiao commented
Gaurave, please explain this in the paper.
Leo
…On Wed, Aug 12, 2020, 11:01 AM Gaurav Verma ***@***.***> wrote:
Yes @Yaying-llnl-summer <https://github.com/Yaying-llnl-summer>. Please
find the reasoning below:
In c, we can assign int to a char array but in Fortran we can not. It
will throw an error. So, we need to use write() in Fortran. Using write()
without handling dependencies will cause undefined behavior in Fortran.
Same thing won't be present in c. Hence, they are different, but correct.
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
<#66 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMNIRTWVSWCIHOR3TLUFQ3SALKHXANCNFSM4P5BDHNQ>
.
xintin commented
Keeping this open so that I remember to put it in the paper.