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

PGI / Flang compilers not working #81

Open
scivision opened this issue Jan 5, 2020 · 5 comments
Open

PGI / Flang compilers not working #81

scivision opened this issue Jan 5, 2020 · 5 comments
Labels
compiler: flang Specific to classic flang compiler compiler: nvfortran Specific to NVHPC compilers

Comments

@scivision
Copy link
Member

Due to bug(s) in PGI / Flang, the stdlib io and optval don't build. There are spurious errors like

PGF90-F-0000-Internal compiler error. interf:new_symbol, symbol not found     630  (src/tests/io/test_loadtxt.f90: 2)

fiddling around with the code, PGI will even give a similar error for implicit none

Basically this seems a lot like other cases where there were bugs in PGI / Flang and not something wrong with stdlib. I did some attempts at workarounds in https://github.com/scivision/stdlib/tree/qp_opt

One could file a bug report with each of PGI and Flang, as the error is effectively identical, perhaps boiling it down to a minimum working example.

@certik
Copy link
Member

certik commented Jan 5, 2020

Is the issue around quadruple precision?

@scivision
Copy link
Member Author

scivision commented Jan 5, 2020

Quadruple precision was part of the issue which I fixed with the #ifdef REAL128. However this remaining issue seems to be an actual compiler bug.

@certik
Copy link
Member

certik commented Jan 5, 2020

If it's too much of a hassle, we can wait with officially supporting Flang until they fix such issues.

@rweed
Copy link

rweed commented Jan 5, 2020

I've had similar issues with PGI and flang. I tried compiling my hashMap routines and both gave the same error (but with different equally confusing messages). I reported this to PGI about 1.5 years ago and haven't heard anything from them. Hopefully, flang/f18 will be more robust but I wouldn't rely on current PGI building anything that uses any OO features.

@scivision
Copy link
Member Author

My opinion on PGI & Flang re: stdlib is to wait for the next releases of PGI & Flang. They've each made a lot of progress in 2019 w.r.t. Fortran 2008 support.

  • expect no-charge PGI 20.4 in April-May 2020 if prior years' release schedule holds
  • F18 is anticipated to come with LLVM 11 (F18 just missed the LLVM 10 merge window in Jan 2020)

@awvwgk awvwgk added compiler: flang Specific to classic flang compiler compiler: nvfortran Specific to NVHPC compilers and removed compilers labels Sep 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler: flang Specific to classic flang compiler compiler: nvfortran Specific to NVHPC compilers
Projects
None yet
Development

No branches or pull requests

5 participants