-
Notifications
You must be signed in to change notification settings - Fork 85
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
Tests fail with nvfortran compiler #531
Comments
Interesting. I've never used the |
Thanks, it would be really appreciated. But chances are that it is the compiler's fault. |
I would also like to use the NVHPC compiler. I am testing with version 23.3. It raises a warning during compilation:
This is coming from this code: json-fortran/src/json_value_module.F90 Lines 1935 to 1949 in 18ef4c6
The compiler seems to be correct. The argument However fixing this issue doesn't seem to fix the tests
|
Interesting. However, intent(in) for pointer arguments doesn't mean their attributes can't be changed, it only means we can't change what the pointer is pointing too. So I think this code is legal. It could be a compile bug? |
It does indeed seem to be a compile bug. It has already been reported and fixed here: As far as I can tell this particular problem has minimal impact as it is only a warning anyway. Given this has been fixed I tried a more recent compiler (23.11 second-to-most-recent). The results are:
So good news! I looked into the first segfault. The behaviour is quite strange. I am struggling to put together a reproducer but it seems that when |
Interestingly |
I'm not sure why I did |
I can open a PR for this |
Current status on this is at: #549 It doesn't seem like the proposed solution is going to work. Probably a workaround could be created but I'm not sure it can be done without changing the api in some backwards-incompatible way, which I don't really want to do for a compiler bug. Can we report this bug to the nvfortran folks? |
I have already reported the whole repo to the Nvidia guys. Here is an update for version 23.4 of Nvfortran:
|
The same tests (but no extras) are failing with version 24.5 |
I am interested in building also with nvhpc so I might take a squiz over the weekend |
Hello! We are trying to use
json-fortran
with thenvfortran
compiler. Unfortunately, the test suite reports failure of several testsPerhaps the pattern in which tests fail give a hint of where to look for the issue? The full failing CI run is available here. Any help is highly appreciated!
The text was updated successfully, but these errors were encountered: