0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

spconv1.2をubuntu18.04にインストールする

Last updated at Posted at 2021-06-24

背景

spconvが必要になったので、インストールのメモ

テスト環境

  • ubuntu18.04
  • cuda10.2
  • cudnn8.2
  • nvidia-driver 440.100
  • python3.6.9
  • pytorch1.9

インストール

cudnnをdownloadしてdebian packageをinstall
https://developer.nvidia.com/rdp/cudnn-download

sudo dpkg -i libcudnn8_8.2.1.32-1+cuda10.2_amd64.deb

pytorch1.6以上をオススメ(それより前のはバグがありました)

pip3 install -U torch torchvision

spconvをclone

git clone git@github.com:traveller59/spconv.git

boostが必要らしい

sudo apt-get install libboost-all-dev

submoduleのupdate

git submodule init
git submodule update

spconvのinstall

python3 setup.py bdist_wheel
cd ./dist/
pip3 install spconv*.whl

cudnnが見つからない場合

もしcudnnが見つからないエラーが出たら試す

export CUDNN_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu:$CUDNN_LIBRARY_PATH
export CUDNN_INCLUDE_PATH=/usr/include:$CUDNN_INCLUDE_PATHUDE_PATH
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?