wdmapp / gtensor

GTensor is a multi-dimensional array C++14 header-only library for hybrid GPU development.
BSD 3-Clause "New" or "Revised" License
34 stars 9 forks source link

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

Open bd4 opened 1 year ago

bd4 commented 1 year ago

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 commented 1 year ago

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

bd4 commented 1 year ago

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.