Closed fengfengfeng666 closed 1 year ago
I had a similar issue when I installed the latest PyTorch 1.13.0 with cudatoolkit=11.7. I solved it by going to fused_bias_act.cpp line 7 and changing x.type().is_cuda()
to x.is_cuda()
.
I had also had some issues with my GCC compiler where it was no longer compatible with PyTorch. It seems to need GCC > 5.0 and GCC < 11.0. I was able to fix that with conda install -c conda-forge cxx-compiler
, which installs GCC 12.1. Then, I could downgrade it with conda install -c conda-forge gcc=10.4.0
. After this, I was able to get the inference to use my GPU. I hope this helps.
@fengfengfeng666 Yes, you should install more recent versions of pytorch with cudatoolkit >= 11.x. I cannot exactly check if it will work as I have a different environment from yours, but I believe there won't be too much problem with this.
I had a similar issue when I installed the latest PyTorch 1.13.0 with cudatoolkit=11.7. I solved it by going to fused_bias_act.cpp line 7 and changing
x.type().is_cuda()
tox.is_cuda()
.I had also had some issues with my GCC compiler where it was no longer compatible with PyTorch. It seems to need GCC > 5.0 and GCC < 11.0. I was able to fix that with
conda install -c conda-forge cxx-compiler
, which installs GCC 12.1. Then, I could downgrade it withconda install -c conda-forge gcc=10.4.0
. After this, I was able to get the inference to use my GPU. I hope this helps.
perfect solved my issue. thx
Hi, thanks for your contribution of so interesting work. I'm trying to run the inference with GPU, because the workstation at my lab using a cuda version as 11.6: NVIDIA-SMI 510.47.03 Driver Version: 510.47.03 CUDA Version: 11.6
I have built a conda env that installing pytorch with "conda install pytorch torchvision torchaudio pytorch-cuda=11.6 -c pytorch -c nvidia". But in this situation, there is some errors as following:
When I run the inference in the conda env that installing pytorch with "conda install pytorch torchvision torchaudio cudatoolkit=10.2 -c pytorch". The inference can be run, but on this situation I can not run it on GPU, because the pytorch in this env can not use cuda.
I want to ask, whether the reference should be run with cuda==11.6.