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

read/write operations from disk from GPU/device arrays ? #299

Closed
mkandulavm opened this issue Aug 16, 2022 · 2 comments
Closed

read/write operations from disk from GPU/device arrays ? #299

mkandulavm opened this issue Aug 16, 2022 · 2 comments

Comments

@mkandulavm
Copy link

Hi

I have a question or a feature request evaluation.
Consider we have a text file / json that can be read into a array of a structure.

Is there a way to read/write from this file directly into/from GPU arrays ? Is this a viable request ?
If this is possible, Can Kompute be developed to handle such a functionality ?

What I am asking is the ability to handle FILE IO using parallel operations into GPU/device arrays.

Kindly provide feedback.

@axsaucedo
Copy link
Member

I'm not sure I fully understand the usecase, if what you mean is to load the contents of a file and load it into GPU memory, however I would assume the contents of the file would include contents that could be mapped into a respective array, so this would require parsing into an int / float array, and then a kp::Tensor can be created with that data, which can then be copied into GPU memory. Does that make sense?

@mkandulavm
Copy link
Author

Ya. Sorry for not giving full details. Based on what you say, I still need CPU to load from disk to RAM before it can put to GPU array.

Either ways, thank you for the response. I will try some variations at my end and ask more relevant question.

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