Hi,
I am working on porting a large science code (MFIX) to GPUs using pgf90 (v13.1) and OpenACC. For a portion of the code, kernel code is not generated because I suspect a subroutine within it is not being inlined. The compiler also does not provide any details why it is not being inlined (assuming that is true).

Is the Minfo message when you first compile calc_force_des.f? Since des_crossprdct_3d is located in a different file, the "-Minline" wont be able to inline it.

Since you have "-Mipa=inline" enabled, does the routine get inlined during the IPA recompilation step?

I find the better method when porting code to OpenACC, is to first create an extract library (-Mextract). Then -Minline can use this library to get the definition for "des_crossprdct_3d" during the first pass of compilation.

Another option is to compile "calc_force_des.f" and "des_functions.f" on the same compilation line so that -Minline can see "des_crossprdct_3d".