-
Notifications
You must be signed in to change notification settings - Fork 154
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
Cupy support in anndata #1080
Comments
Responding to:
Originally posted by @Intron7 in #1066 (comment)
What would this do? I was hoping that it would let us move things between CPU and GPU, but I don't think that's consistent with the semantics of cupy and numpy. Maybe it can be handled on the array level for now?
For now could this just be "whether it's a cupy type or not"? I don't think I'd want to add a property to the AnnData object for this if you can do
Is this in the case where the scipy matrix has 64 bit index types? I think this would make sense there. |
Yes there are 64 bit indptr for scipy matrices. If you go above the limit the indptr will become negative and you run into issues with converting the matrix etc.
Indeed, we could let the user handle this, and the syntax would likely be more similar to pytorch. I really came to like a simple oneliner that moves everything over to RAM and not manually converting every layer.
Using |
@Intron7, I'm thinking about how we document this here. I think it would be useful to link out to the rapids-single cell docs. What do you think? I see the |
@ivirshup I have a PR (scverse/rapids_singlecell#60) ready to go once the anndata 0.10.0 comes out. The only things I'll have to do is rerun the notebooks with benchmarks and depreciate cunndata and change the docs with the usage principle. So I think I can have the updated out at most 2 days after you publish. |
That’s awesome! |
I'll split the others off into new issues, but will point to rapids-single cell for usage examples. Almost closable |
You can point to the documentation notebooks in https://rapids-singlecell.readthedocs.io/en/latest/notebooks.html |
Closing as complete in anndata 0.10 |
Splitting out from:
Mostly implemented in
Opening this issue to discuss what else is needed for cupy support in anndata.
Priority follow up
Other
[ ]"How to" example of direct GPU IO Now opened as "How to" example of direct GPU IO #1154The text was updated successfully, but these errors were encountered: