2
1

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 5 years have passed since last update.

cuda7.0 Ubuntu14.04にcutorchを入れる

Posted at

Cuda7.0の入ったUbuntu(14.04)にTorch7およびcutorchを入れようとして手こずったのでメモを残しておきます。

Torchにおける基本的なpackageの入れ方
luarocks install packagename
cutorchを入れるためには、
luarocks install cutorch
これでよいはずなのですが、ビルドエラーが出てインストールできませんでした。

調べてみると、
https://github.com/torch/cutorch/issues/606
を見つけました。
git clone https://github.com/NVIDIA/torch-cutorch
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DLUALIB= -DLUA_INCDIR="/home/takeichi/Deeplearning/torch/install/include" -DLUA_LIBDIR="/home/takeichi/Deeplearning/torch/install/lib" -DLUADIR="/home/takeichi/Deeplearning/torch/install/lib/luarocks/rocks/paths/scm-1/lua" -DLIBDIR="/home/takeichi/Deeplearning/torch/install/lib/luarocks/rocks/paths/scm-1/lib" -DCMAKE_INSTALL_PREFIX="/home/takeichi/Deeplearning/torch/install/lib/luarocks/rocks/paths/scm-1" && make
cd path_to_torch/torch
./update.sh
とすることで、cutorchを入れることができました。

2
1
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
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?