aws / studio-lab-examples

Example notebooks for working with SageMaker Studio Lab. Sign up for an account at the link below!
https://studiolab.sagemaker.aws
Apache License 2.0
648 stars 191 forks source link

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

Closed saidineshpola closed 1 year ago

saidineshpola commented 2 years ago

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'
alaknan commented 2 years ago

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

saidineshpola commented 2 years ago

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

icoxfog417 commented 2 years ago

@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 commented 2 years ago

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

icoxfog417 commented 1 year ago

We well close this issue. I hope the solution works.