hipfort icon indicating copy to clipboard operation
hipfort copied to clipboard

[Issue]: myInfo input variable to rocsolver_dgetrf_batched expects c_int, but should expect c_ptr (to be a ptr to an array of c_ints)

Open jjepson2 opened this issue 5 months ago • 6 comments

Problem Description

myInfo input variable to rocsolver_dgetrf_batched expects c_int, but should expect c_ptr (to be a ptr to an array of c_ints).

Operating System

SUSE Linux Enterprise Server 15 SP6

CPU

AMD EPYC 7763

GPU

AMD Instinct MI210

ROCm Version

ROCm 6.2.4

ROCm Component

hipfort

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

This bug applies also to the most recent develop branch of hipfort (as is seen by perusing code).

jjepson2 avatar Aug 15 '25 21:08 jjepson2

Hi @jjepson2. Internal ticket has been created to investigate this issue. Thanks!

ppanchad-amd avatar Aug 22 '25 15:08 ppanchad-amd

@ppanchad-amd Great, sounds good. You're welcome!

jjepson2 avatar Aug 22 '25 15:08 jjepson2

Hi @jjepson2, can you clarify where this is in the code?

schung-amd avatar Aug 22 '25 20:08 schung-amd

@ppanchad-amd Yes. It is in lib/hipfort/hipfort_rocsolver.F90. Specifically it is an error with the interfaces of rocsolver_*_batched routines in that file (the myInfo input variable specifically).

jjepson2 avatar Aug 22 '25 20:08 jjepson2

@jjepson2 Sorry for the delay on this, was working on a fix but my attention was pulled elsewhere. Is this blocking you? I have changes in https://github.com/schung-amd/hipfort/tree/rocsolver-interface-fix with a corresponding f2003 test but couldn't get a f2008 test to build.

schung-amd avatar Sep 12 '25 15:09 schung-amd

I did find a work around (not including any of the "include" files for the library, and defining my own interfaces as needed), so it isn't blocking me at present.

jjepson2 avatar Sep 30 '25 17:09 jjepson2