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

th -l cltorch cannot load libcltorch.so but luajit -l cltorch works #31

Closed
Jovp opened this issue Nov 24, 2015 · 5 comments
Closed

th -l cltorch cannot load libcltorch.so but luajit -l cltorch works #31

Jovp opened this issue Nov 24, 2015 · 5 comments

Comments

@Jovp
Copy link

Jovp commented Nov 24, 2015

Hi,

First I must say that I am really new to torch, lua etc.
I am currently trying to install and use cltorch.
Apprently the installation went right, but as I am trying to use cltorch with th it does not work and it raises "cannot load libcltorch.so" such as mentioned in :
#5
and #24
The thing is I am using the mac os Shell (I am on OSX El Capitan) and so the solutions proposed do not seem to be linked to my issue.
In another thread I saw the "luajit -l cltorch" command come out and tried it.
It seems to start another instance of torch than "th" and wen I do th> c = torch.ClTensor{7,4,5} it seems to work well as I get :
"Using Apple , OpenCL platform: Apple
Using OpenCL device: Iris"

Do you have any idea on how I can make it work ?
Thanks

@hughperkins
Copy link
Owner

Did you try removing the first line of the th script, as per #21

@Jovp
Copy link
Author

Jovp commented Nov 24, 2015

Oh,
Thank you very much, I feel so stupid right now, didn't see the post...

@Jovp Jovp closed this as completed Nov 24, 2015
@hughperkins
Copy link
Owner

Ah, cool :-) We should fix that issue somehow sometime really.

@tigerneil
Copy link

Hey, spend one day on this confused problem. FINALLY I fix it by switch back to bash shell.

th> require 'cltorch'
{
  finish : function: 0x027e2608
  about : function: 0x0241a4a8
  getDeviceCount : function: 0x027e2720
  setAllowNonGpus : function: 0x02821cc0
  getDeviceProperties : function: 0x027e2778
  getState : function: 0x027e27c8
  test : function: 0x028091a0
  setEnableTiming : function: 0x027e26a8
  _state : userdata: 0x7fbe6bd14310
  getDevice : function: 0x02821d48
  dumpProfiling : function: 0x0241a460
  setTrace : function: 0x027e2818
  setAddFinish : function: 0x027e29f0
  setDevice : function: 0x02821d98
  synchronize : function: 0x02821e28
  dumpTimings : function: 0x02821de8
  setProfiling : function: 0x027e2658
  setTiming : function: 0x0241a410
  setDetailedTimings : function: 0x027e26d0
}

I used zsh before, can't properly load some path. @hughperkins thanks for your explanation.
What a mysterious situation!

@prlz77
Copy link

prlz77 commented Jan 27, 2016

@hughperkins thank you so much. @tigerneil same as you. I switched to bash. I recommend you to extend bash with bash-it in exchange for zsh.

@coodoo coodoo mentioned this issue Feb 28, 2016
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

4 participants