studio-lab-examples icon indicating copy to clipboard operation
studio-lab-examples copied to clipboard

fatal error: cusparse.h: No such file or directory

Open saidineshpola opened this issue 3 years ago • 3 comments

Describe the bug while installing detectron2 setup using pip install I got this error which is caused by missing cusparse.h in cuda directory. The solution is to install apt-get install cuda-cusparse-dev-11-1 since -dev is the package that contains cusparse.h. is any alternate solution for this?

To Reproduce Steps to reproduce the behavior:

  1. python -m pip install 'git+https://github.com/zhanghang1989/detectron2-ResNeSt.git'

saidineshpola avatar Feb 23 '22 06:02 saidineshpola

apt-get is not supported yet. Please try using conda install to install the cuda-cusparse-dev-11-1 package and keep us posted. Refer to https://docs.aws.amazon.com/sagemaker/latest/dg/studio-lab-use-manage.html#studio-lab-use-manage-conda for managing your Conda environments

alaknan avatar Mar 02 '22 02:03 alaknan

cuda-cusparse-dev-11-1 is not available in conda's library

saidineshpola avatar Mar 02 '22 10:03 saidineshpola

@saidineshpola Thank you for trying to use Studio Lab. Did you try python -m detectron2.utils.collect_env to detect the inconsistency of CUDA versions? If there is inconsistency, you need to install a different build of PyTorch to match Studio Lab CUDA version.

https://github.com/chongruo/detectron2-ResNeSt/blob/resnest/INSTALL.md

icoxfog417 avatar Mar 19 '22 01:03 icoxfog417

Dear @saidineshpola , does the above solution work for you?

icoxfog417 avatar Nov 05 '22 07:11 icoxfog417