Skip to content

feat: write and read the bindings in bindings/fortran - #14

Merged
amontoison merged 1 commit into
mainfrom
users/amontoison/bindings-layout
Nov 3, 2026
Merged

amontoison merged 1 commit into
mainfrom
users/amontoison/bindings-layout

Conversation

@amontoison

Copy link
Copy Markdown
Collaborator

The Fortran bindings move out of the library projects into a top-level bindings/fortran/ tree in both monorepos, as API consumers built against the installed libraries (RFC0015 update):

Repository Before After
rocm-systems (HIP, ROCTx) projects/fortran/ bindings/fortran/
rocm-libraries projects/<proj>/fortran/ bindings/fortran/<proj>/

--overwrite now copies each module there, and a checkout's metadata/ is read from there. The headers are still read from projects/.

The change is fortran_dir in src/common/header_sources.jl; the rest is gen.sh --help, comments, the README and the tests.

Tested: src/test/runtests.jl (592 passed) and src/test/gen_sh.sh; ROCM_LIBRARIES=<checkout> ./gen.sh --overwrite rocblas on a rocm-libraries checkout with the new layout writes bindings/fortran/rocblas/rocblas.F90.

Companion pull requests: ROCm/rocm-systems#11923, ROCm/rocm-systems#14024, the ten rocm-libraries binding pull requests, and ROCm/TheRock#9446.

The Fortran bindings move out of the library projects into a top-level
bindings/fortran tree in both monorepos: bindings/fortran/ in
rocm-systems (HIP, ROCTx) and bindings/fortran/<proj>/ in rocm-libraries.
--overwrite now copies each module there, and a checkout's metadata/ is
read from there. The headers are still read from projects/.
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Security scan found no critical or high findings on lines changed by this pull request

View the security scan run for complete reports.

“New” means the finding is located in a changed file on an added or modified line; it is not a base-versus-head findings delta.

@amontoison

Copy link
Copy Markdown
Collaborator Author

@Abuudiii Can you review this PR?

@amontoison
amontoison merged commit 9c8b3e4 into main Nov 3, 2026
13 checks passed
@amontoison
amontoison deleted the users/amontoison/bindings-layout branch November 3, 2026 22:10
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