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

require 'cltorch' works in luajit shell but not in th shell #32

Closed
hery opened this issue Dec 30, 2015 · 2 comments
Closed

require 'cltorch' works in luajit shell but not in th shell #32

hery opened this issue Dec 30, 2015 · 2 comments

Comments

@hery
Copy link

hery commented Dec 30, 2015

I must be missing something rather than something being broken, but:

Pandaman:~ pandaman$ th
/Users/pandaman/torch/install/share/lua/5.1/trepl/init.lua:383: ...rs/pandaman/torch/install/share/lua/5.1/cltorch/init.lua:19: cannot load '/Users/pandaman/torch/install/lib/lua/5.1/libcltorch.so'
stack traceback:
    [C]: in function 'error'
    /Users/pandaman/torch/install/share/lua/5.1/trepl/init.lua:383: in function 'require'
    [string "_RESULT={require 'cltorch'}"]:1: in main chunk
    [C]: in function 'xpcall'
    /Users/pandaman/torch/install/share/lua/5.1/trepl/init.lua:650: in function 'repl'
    ...aman/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:199: in main chunk
    [C]: at 0x0106489bc0

and:

Pandaman:~ pandaman$ luajit
LuaJIT 2.1.0-beta1 -- Copyright (C) 2005-2015 Mike Pall. http://luajit.org/
JIT: ON SSE2 SSE3 SSE4.1 fold cse dce fwd dse narrow loop abc sink fuse
th> require 'cltorch'
th> print(cltorch.getDeviceCount())
2
@hery
Copy link
Author

hery commented Dec 30, 2015

The line below makes me think it's related to #24.

/Users/pandaman/torch/install/share/lua/5.1/trepl/init.lua:383: ...rs/pandaman/torch/install/share/lua/5.1/cltorch/init.lua:19: cannot load '/Users/pandaman/torch/install/lib/lua/5.1/libcltorch.so

@hery
Copy link
Author

hery commented Dec 30, 2015

Also, duplicate of #31, whoops!

@hery hery closed this as completed Dec 30, 2015
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

1 participant