studio-lab-examples
studio-lab-examples copied to clipboard
fatal error: cusparse.h: No such file or directory
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:
- python -m pip install 'git+https://github.com/zhanghang1989/detectron2-ResNeSt.git'
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
cuda-cusparse-dev-11-1 is not available in conda's library
@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
Dear @saidineshpola , does the above solution work for you?