Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

issues with cltorch backend #486

Open
quentaluminum opened this issue Apr 28, 2020 · 1 comment
Open

issues with cltorch backend #486

quentaluminum opened this issue Apr 28, 2020 · 1 comment

Comments

@quentaluminum
Copy link

I have an AMD gpu so cuda is off the table. I have cltorch installed, however when i try to run neural-style.lua in torch I get this error:

(base) root@quentlinux:/torch/install/neural-style# th neural_style.lua
/root/torch-cl/install/bin/luajit: /root/torch-cl/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-cl/install/share/lua/5.1/cutorch.lua'
no file '/root/torch-cl/install/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-cl/install/lib/lua/5.1/cutorch.so'
no file '/root/torch-cl/install/lib/cutorch.so'
no file '/root/torch/install/lib/cutorch.so'
no file '/root/torch/install/lib/lua/5.1/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-cl/install/share/lua/5.1/trepl/init.lua:384: in function 'require'
neural_style.lua:327: in function 'setup_gpu'
neural_style.lua:53: in function 'main'
neural_style.lua:601: in main chunk
[C]: in function 'dofile'
...t/torch-cl/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x5574787f2f50
(base) root@quentlinux:
/torch/install/neural-style#

Again I can't use cuda or cutorch because i have an amd processor. In the tutorial it says that cltorch is supported, but again it wants to reference files that are impossible for me to install. I've tried installing cuda and cutorch anway, but cutorch immediately recognized my invalid hardware.
I'm new to linux and everything torch, so this is like all a little giberish! thank you for your time.

@htoyryla
Copy link

The lua-based Torch is outdated. It is no longer straightforward to get it to work with newer NVIDIA GPUs either (noticed this when I upgraded from 1080Ti to RTX Titan).

I would recommend you have a look at pytorch and https://github.com/ProGamerGov/neural-style-pt instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants