-
Notifications
You must be signed in to change notification settings - Fork 22
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
Error moving adata.X to GPU #261
Comments
I think this is an issue that you have with cupy and your cuda installation. |
I have done the install exactly as described in the documentation. For 2 different cuda versions. I have no other issues with cuda in these environments. If you think this is an issue with cupy and the cuda installation, how do you suggest I fix it given that I have followed the documentation for installation? |
Can try the yaml file to install rsc. You might have errored you environment with installing rapids 2times |
I have used the yaml files. The 2 installations are in different environments, so that is not the issue |
This installs rapids 2times into one environment |
The first thing I tried was this: This gave the error. Then, in a separate environment, I tried this: That gave the same error. I then went on and tried the other things, which all gave the exact same error. So what is your suggestion? |
Please check out the rapids.ai docs and try to install rapids. This looks to me like a cuda issue |
That is what I did. I installed exactly as described in the documentation |
Did you checkout rapids or rapids-singlecell? |
Yes, after the installation from yaml gave the errors, I then tried installing with conda per the documentation from that same link and got the same exact error. |
Please make an issue and connect with people on the rapids team. They might be able to help you with your environment setup and cuda installation. Rapids-singlecell builds on top of rapids and cupy |
Will do. One last question. Assuming I install rapids, what is the procedure to install rapids-singlecell if you are suggesting that:
after:
is problematic |
No just pip install rapids-singlecell You already installed rapids with conda. |
Describe the bug
When running either command
adata.X = cpx.scipy.sparse.csr_matrix(adata.X)
orrsc.get.anndata_to_GPU(adata)
, I get the following error:Steps/Code to reproduce bug
The above works fine. Running either of the following gives the error
adata.X = cpx.scipy.sparse.csr_matrix(adata.X)
or
rsc.get.anndata_to_GPU(adata)
Expected behavior
Expected the command to be executed and adata.X be moved to GPU without error
Environment details (please complete the following information):
mamba env create -f conda/rsc_rapids_24.06.yml
and
mamba env create -f conda/rsc_rapids_24.08.yml
with the yaml files from here: https://github.com/scverse/rapids_singlecell/tree/main/conda
mamba create -n rapids-24.08 -c rapidsai -c conda-forge -c nvidia rapids=24.08 python=3.11 cuda-version=12.5
followed by:
pip install 'rapids-singlecell[rapids12]' --extra-index-url=https://pypi.nvidia.com
or:
mamba create -n rapids-24.08 -c rapidsai -c conda-forge -c nvidia rapids=24.08 python=3.11 cuda-version=11.8
followed by:
pip install 'rapids-singlecell[rapids11]' --extra-index-url=https://pypi.nvidia.com
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: