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

fortran: rocm does not find ISO_Fortran_binding.h header #223

Open
bd4 opened this issue Nov 12, 2022 · 2 comments
Open

fortran: rocm does not find ISO_Fortran_binding.h header #223

bd4 opened this issue Nov 12, 2022 · 2 comments
Assignees

Comments

@bd4
Copy link
Contributor

bd4 commented Nov 12, 2022

nvcc build c_test_fortran.cxx example just fine, but hipcc from ROCm 5.3.0 does not find the header, which is actually provided by gfortran. This may require hacking include paths to workaround.

@bd4 bd4 self-assigned this Nov 12, 2022
@bd4
Copy link
Contributor Author

bd4 commented Nov 12, 2022

It works fine for icpx/dpcpp too, so it's just the hip backend where it's an issue.

@bd4
Copy link
Contributor Author

bd4 commented Nov 12, 2022

It works on intel because they include their own copy of ISO_Fortran_binding.h. Presumably it works with nvcc because it forwards to gcc which is packaged in such a way that when gfortran is installed it knows to look for it's headers too. Not clear if it's part of a standard clang install (which both intel and hip cpp compilers are based on) or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant