nagadomi / distro

Unofficial maintenance repository of Torch7. It supports CUDA10.1, Volta, Turing, Docker https://hub.docker.com/r/nagadomi/torch7
BSD 3-Clause "New" or "Revised" License
201 stars 57 forks source link

CUDA not found #10

Open David-Intus opened 4 years ago

David-Intus commented 4 years ago

Hi, I have been trying to make Torch work with CUDA 10. But when I run ./test.sh I get the following Completed 134211 asserts in 210 tests with 0 failures and 0 sundown loaded succesfully /home/intus/torch/install/bin/luajit: module 'cutorch' not found: no field package.preload['cutorch'] no file '/home/intus/.luarocks/share/lua/5.1/cutorch.lua' no file '/home/intus/.luarocks/share/lua/5.1/cutorch/init.lua' no file '/home/intus/torch/install/share/lua/5.1/cutorch.lua' no file '/home/intus/torch/install/share/lua/5.1/cutorch/init.lua' no file './cutorch.lua' no file '/home/intus/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 '/home/intus/torch/install/lib/cutorch.so' no file '/home/intus/.luarocks/lib/lua/5.1/cutorch.so' no file '/home/intus/torch/install/lib/lua/5.1/cutorch.so' no file '/home/intus/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]: at 0x55b22f6720b0 [C]: at 0x55b22f610710 CUDA not found

I'm sure that my CUDA installation works, I'm using tensorflow with GPU support also.

I would appreciate any help :)

nagadomi commented 4 years ago

Check the environment variables that CMake uses to detect CUDA. https://github.com/nagadomi/distro/issues/9#issuecomment-621012212