Skip to content

Declare hipDataType arguments integer(c_int) in the _typed forms - #609

Merged
amontoison merged 1 commit into
developfrom
fix/hipdatatype-c-int
Oct 17, 2026
Merged

amontoison merged 1 commit into
developfrom
fix/hipdatatype-c-int

Conversation

@amontoison

@amontoison amontoison commented Oct 17, 2026 •

Copy link
Copy Markdown
Collaborator

The _typed forms of hipSOLVER (8) and hipSPARSE (25) declared their hipDataType arguments integer(kind(HIP_R_32F)), while the bind(C) interfaces of the same generics declare them integer(c_int) since #586.
They now use integer(c_int) too.

  • Both are the C int kind (an enum, bind(c) is interoperable with int), so callers see no change: passing HIP_R_32F or an integer(c_int) variable compiles and behaves as before.
  • The 33 forms no longer need a use hipfort_enums, and the symbol tests of the two libraries drop it as well.

The _typed forms of hipSOLVER (8) and hipSPARSE (25) declared their
hipDataType arguments integer(kind(HIP_R_32F)), while the bind(C)
interfaces of the same generics declare them integer(c_int). Both are
the C int kind, so callers see no change; the 33 forms no longer need a
`use hipfort_enums`. Regenerated with rocm-fortran 602a86b, symbol tests
included.
@amontoison
amontoison requested a review from a team as a code owner October 17, 2026 04:09
@amontoison
amontoison merged commit 589524b into develop Oct 17, 2026
3 checks passed
@amontoison
amontoison deleted the fix/hipdatatype-c-int branch October 17, 2026 19:14
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

Successfully merging this pull request may close these issues.

1 participant