Skip to content

issues with cltorch backend #486

@quentaluminum

Description

@quentaluminum

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions