RuntimeError: NVTX functions not installed. Are you sure you have a CUDA build? #215
-
Hello everyone, I have used RF diffusion once, however, once I installed Protein MPNN and AF2 for further processing, I keep getting the error "RuntimeError: NVTX functions not installed. Are you sure you have a CUDA build?" when I try to use RF diffusion, is there any suggestion as to how I can overcome it? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 6 replies
-
Generally this means that you have the CPU-only build of PyTorch installed in your Conda environment. First off, do you have an NVIDIA CPU with CUDA support? Usually you can run If you do have at least CUDA 11.1 support, then try a |
Beta Was this translation helpful? Give feedback.
-
Thanks for the tip it worked!
I just did conda install -c pytorch pytorch
…On Mon, Apr 8, 2024 at 6:16 AM Rocco Moretti ***@***.***> wrote:
pytorch 1.9.1 cpu_py39hc5866cc_3 conda-forge
The "cpu" there is your issue. It's looking for the CUDA version of
pytorch and you don't have it. I'm not sure why it worked for you
previously, but it may be that you're using slightly different settings
this time (or doing a more extensive computation). I would indeed recommend
trying to install the CUDA versions of pytorch if you can. Not only will
that speed the computation, RFDiffusion uses NVIDIA's version of
se3_transformer, which limits the incentive to make working on CPUs easy.
-- That said, I think there's ways of forcing a CPU-only installation, but
I'm not personally familiar with them, and I'm not sure how well those work
if you also have a CUDA-capable GPU installed.
As mentioned, you likely need to try re-installing pytorch in the conda
environment, trying to get the cuda version. You may have luck using -c
pytorch on the installation command line to try to force use of the
pytorch channel (versus the conda-forge channel it looks like you're
currently using).
—
Reply to this email directly, view it on GitHub
<#215 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A7D4E65PCGOIYVTPJ2NREB3Y4KKBFAVCNFSM6AAAAABFP32YLWVHI2DSMVQWIX3LMV43SRDJONRXK43TNFXW4Q3PNVWWK3TUHM4TANBWGA3TK>
.
You are receiving this because you authored the thread.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
-
Hey! I tried the solutions mentioned in the above section. But I am still getting the same error. conda list | grep torch I have also tried updating all the dependencies in the conda environment. Yet the issue persists. Anybody else experiencing this problem? |
Beta Was this translation helpful? Give feedback.
Generally this means that you have the CPU-only build of PyTorch installed in your Conda environment.
First off, do you have an NVIDIA CPU with CUDA support? Usually you can run
nvidia-smi
to get a report, and see the maximum CUDA version your hardware supports. For the provided environment files, this should be 11.1 or greater. If your max supported CUDA version is less than that, or you don't have an CUDA-capable NVIDIA GPU, then you'll have to adjust your conda installation for it.If you do have at least CUDA 11.1 support, then try a
conda list | grep torch
with the RFDiffusion environment activated. You should see "pytorch" as one of the lines. You should be able to also see the deta…