Skip to content

feat(cufile): register device buffers before use - #10

Merged
karlowich merged 1 commit into
xnvme:mainfrom
fmma:fix/cufile-buf-register
Jul 8, 2026
Merged

feat(cufile): register device buffers before use#10
karlowich merged 1 commit into
xnvme:mainfrom
fmma:fix/cufile-buf-register

Conversation

@fmma

@fmma fmma commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Register the cufile backend's device read buffers with cuFileBufRegister after allocation and deregister them before cudaFree.

Add a --no-buf-register flag (opts->no_buf_register) to skip registration. Rejected for non-cufile backends, mirroring the --async validation.

Assisted-by: Claude:claude-opus-4-8

@karlowich karlowich left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, we definitely need support for this.
I think I prefer the flag to be called --register_bufs, I know that flips the default behaviour, but perhaps it's fine to have the naive version by default.

Comment thread src/iter.c Outdated
Comment thread src/iter.c Outdated
Comment thread src/iter.c Outdated
Add a --register_bufs flag (opts->register_bufs) that registers the
cufile backend's device read buffers with cuFileBufRegister after
allocation and deregisters them before cudaFree. Off by default.
Rejected for non-cufile backends, mirroring the --async validation.

Signed-off-by: Frederik Madsen <f.madsen@samsung.com>
Assisted-by: Claude:claude-opus-4-8
@fmma
fmma force-pushed the fix/cufile-buf-register branch from ff4ce66 to 2cf8feb Compare July 8, 2026 06:20
@fmma
fmma requested a review from karlowich July 8, 2026 06:22

@karlowich karlowich left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@karlowich
karlowich merged commit b78b96f into xnvme:main Jul 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants