Skip to content

Add hipSPARSE xcsr2coo f2003 test - #483

Merged
amontoison merged 1 commit into
ROCm:developfrom
Ozone-Whiskey:hipsparse-csr2coo-f2003
Aug 6, 2026
Merged

Add hipSPARSE xcsr2coo f2003 test#483
amontoison merged 1 commit into
ROCm:developfrom
Ozone-Whiskey:hipsparse-csr2coo-f2003

Conversation

@Ozone-Whiskey

Copy link
Copy Markdown
Collaborator

Summary

Adds the missing Fortran 2003 test for hipsparseXcsr2coo. The f2008 version already exists (test/f2008/hipsparse/hipsparse_xcsr2coo.f08); this fills in the f2003 tier so csr2coo matches the both-tier coverage of the other hipSPARSE conversion routines (and of rocSPARSE's csr2coo).

Follow-up to the review comment on #480 — my original hipSPARSE PR had an f2003 xcsr2coo, but it was dropped during conflict resolution when develop (#478) had independently added the f2008 one; this restores the f2003 half.

What it does

Mirrors the existing f2008 test exactly (same CSR row-pointer input [0,2,3,5], expected COO rows [0,0,1,2,2]), using the f2003 calling style: type(c_ptr) device buffers allocated by byte count, host data moved via hipMemcpy + c_loc.

Test plan

  • Both tiers build and PASS on gfx90a (MI210), ROCm 7.1.0, gfortran 13.3
  • f2003 source compiles with the Fortran 2008 pointer-interface macro OFF

@Ozone-Whiskey
Ozone-Whiskey marked this pull request as ready for review August 6, 2026 21:34
@amontoison
amontoison merged commit 67b05c7 into ROCm:develop Aug 6, 2026
2 checks passed
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.

2 participants