运行 docker 上的火炬与 CUDA 说找不到模块 'cutorch'
Running torch on docker with CUDA says module 'cutorch' not found
我 运行 Ubuntu 16.04。我有一个完美的 docker 容器 运行 深度神经网络。但是如果我指定使用cuda,它会抛出以下错误:
/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/trepl/init.lua:384: module 'cutorch' not found:No LuaRocks module found for cutorch
no field package.preload['cutorch']
no file '/root/.luarocks/share/lua/5.1/cutorch.lua'
no file '/root/.luarocks/share/lua/5.1/cutorch/init.lua'
no file '/root/torch/install/share/lua/5.1/cutorch.lua'
no file '/root/torch/install/share/lua/5.1/cutorch/init.lua'
no file './cutorch.lua'
no file '/root/torch/install/share/luajit-2.1.0-beta1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch/init.lua'
no file '/root/.luarocks/lib/lua/5.1/cutorch.so'
no file '/root/torch/install/lib/lua/5.1/cutorch.so'
no file '/root/torch/install/lib/cutorch.so'
no file './cutorch.so'
no file '/usr/local/lib/lua/5.1/cutorch.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/root/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
/root/openface/batch-represent/main.lua:22: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
CUDA/nvidia 驱动程序应该单独安装在 docker 容器上吗?如果是,那怎么办?
我使用的是 GTX Geforce TITAN black。
想通了。我使用的是 docker 文件,该文件仅用于 CPU.
的执行
我应该创建另一个 docker 文件或使用类似 Dl-docker or Nvidia-docker.
的文件
我 运行 Ubuntu 16.04。我有一个完美的 docker 容器 运行 深度神经网络。但是如果我指定使用cuda,它会抛出以下错误:
/root/torch/install/bin/luajit: /root/torch/install/share/lua/5.1/trepl/init.lua:384: module 'cutorch' not found:No LuaRocks module found for cutorch
no field package.preload['cutorch']
no file '/root/.luarocks/share/lua/5.1/cutorch.lua'
no file '/root/.luarocks/share/lua/5.1/cutorch/init.lua'
no file '/root/torch/install/share/lua/5.1/cutorch.lua'
no file '/root/torch/install/share/lua/5.1/cutorch/init.lua'
no file './cutorch.lua'
no file '/root/torch/install/share/luajit-2.1.0-beta1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch/init.lua'
no file '/root/.luarocks/lib/lua/5.1/cutorch.so'
no file '/root/torch/install/lib/lua/5.1/cutorch.so'
no file '/root/torch/install/lib/cutorch.so'
no file './cutorch.so'
no file '/usr/local/lib/lua/5.1/cutorch.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/root/torch/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
/root/openface/batch-represent/main.lua:22: in main chunk
[C]: in function 'dofile'
/root/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00406670
CUDA/nvidia 驱动程序应该单独安装在 docker 容器上吗?如果是,那怎么办?
我使用的是 GTX Geforce TITAN black。
想通了。我使用的是 docker 文件,该文件仅用于 CPU.
的执行我应该创建另一个 docker 文件或使用类似 Dl-docker or Nvidia-docker.
的文件