Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for a drop-in replacement of std::fstream class in C++ #590

Open
gigony opened this issue Jan 21, 2025 · 2 comments
Open

Support for a drop-in replacement of std::fstream class in C++ #590

gigony opened this issue Jan 21, 2025 · 2 comments

Comments

@gigony
Copy link

gigony commented Jan 21, 2025

This feature request aligns with Python's counterparts and is being mentioned here for reference:

In addition to the POSIX API (pread/pwrite) for unbuffered I/O, many C++ projects utilize std::fstream for loading file content. Although std::fstream is intended for buffered I/O, I believe there are numerous use cases where kvikio could be seamlessly integrated into C++ projects by replacing std::fstream with kvikio's corresponding class.

Reference:

We could also explore the possibility of subclassing the following classes:

cc: @jakirkham

@jakirkham
Copy link
Member

Thanks Gigon! 🙏

Think this is a good writeup on how we might make KvikIO usage more idiomatic for C++ users

@jrhemstad as someone who has thought a lot about how to improve C++ users' CUDA experience, would be interested to hear your thoughts on what API would be best for us to present for file operations

@jakirkham
Copy link
Member

Looks like a similar discussion came up in the context of CCCL: NVIDIA/cccl#3359

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

No branches or pull requests

2 participants