-
Notifications
You must be signed in to change notification settings - Fork 39
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
test_map fails for the complex32 case with gfortran-10 with -O3 #19
Comments
Hi @tamoghna-4119, Thanks for reporting this. I can't reproduce it with gfortran-9.3.0 or ifort-2021.1--all tests pass. What compiler and version do you use? Also, can you run |
Thank you for your answer and I am really sorry for replying only now. Regards, |
I dig a little deeper into this. I put a few diagnostic prints in test_map.f90:
This test fails with gfortran-10 (not with 9, 8, or 7), and only with
Although all 3 elements evaluate as equal, evaluating
My guess is that at high optimization level the compiler tries to do something too aggressive with either side of the Right now I don't have a solution but I will keep this open. |
Hello all, I can reproduce this test failure for v0.6.2 for gfortran 11.3.0 using the default build flags. Best, |
Not sure if this adds to the confusion, the following evaluates to false:
whereas the following evaluates to true:
for the given definition of Interestingly, the following passes the test:
This precision loss issue seems to be due to the application of the Best, |
I have done further digging. It turns out that the compiler flag I quote from the page above the description of
It is unclear to me how this flag interacts with the application of the Perhaps it is better to ship with the |
Thanks for digging further! Are you sure |
Hi Milan, Good point. I too see the test failing with |
I see, thanks. In that case, I assume that it's some undocumented optimization going from |
Hello,
Thank you for this excellent library.
Here, I would report an issue. As I invoked
ctest
after installation, following error message was shown:Would you please see to this?
Best regards,
Tamoghna
The text was updated successfully, but these errors were encountered: