Skip to content

rocfile: Use statx to get direct io alignment and size requirements#62

Merged
derobins merged 6 commits into
developfrom
z/kumcmill/statx
Nov 20, 2025
Merged

rocfile: Use statx to get direct io alignment and size requirements#62
derobins merged 6 commits into
developfrom
z/kumcmill/statx

Conversation

@kurtmcmillan
Copy link
Copy Markdown
Collaborator

No description provided.

@derobins
Copy link
Copy Markdown
Collaborator

Are the Jenkins runners missing a package?

../../../rocfile/src/backend/fastpath.cpp:132:36: error: use of undeclared identifier 'STATX_DIOALIGN'

@kurtmcmillan
Copy link
Copy Markdown
Collaborator Author

Are the Jenkins runners missing a package?

../../../rocfile/src/backend/fastpath.cpp:132:36: error: use of undeclared identifier 'STATX_DIOALIGN'

No. STATX_DIOALIGN is only available since 6.1. Ubuntu 22, and possibly others, are still running with 5 series. I'll update the PR so that hipFile requires 4kib alignment if STATX_DIOALIGN isn't available.

statx includes direct io alignment requirements and the device IDs for raw devices.
Adding statx data to file has made stat data redundant.
…1 Kernels

If STATX_DIOALIGN is not available fallback to requiring IO size, file offset,
and buffer offset to be multiples of 4KiB.
@kurtmcmillan kurtmcmillan marked this pull request as ready for review November 19, 2025 20:33
@kurtmcmillan kurtmcmillan self-assigned this Nov 19, 2025
@derobins derobins merged commit fb3a721 into develop Nov 20, 2025
32 checks passed
@derobins derobins deleted the z/kumcmill/statx branch November 20, 2025 00: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.

2 participants