hughperkins / cltorch

An OpenCL backend for torch.
Other
291 stars 26 forks source link

rpath and warnings #15

Closed andresy closed 8 years ago

andresy commented 9 years ago

Hi... when installing the lib, libcltorch.so gets linked with various things (libluaT, libTHCl...), and libclBLAS. Strangely, while all libs are linked with rpath, libclBLAS is not. Any reason for this? [I am running under mac]

Unrelated question: when running (still on mac) the test(), I get a lot of warnings (not critical ones). Does it appear on your development platform?

hughperkins commented 9 years ago

I dont have access to a mac... I'm tempted to buy one, just to test the build, but so far have not done so... I think that rpath is a mac-specific concept right? Again, I have no way of playing with rpath to find out what it is, what it does, how it behaves. Is fixing the mac build something you might have a moment to look into sometime?

andresy commented 9 years ago

Thanks! rpath is unix, but the way it is handled under mac is slightly different than linux. Will look into it, during my spare time :) Should I fix the warnings, too?

Note: except the "libblas not found" (because of rpath) issue, it works like a charm under mac.

hughperkins commented 9 years ago

Ok. What warnings are you getting? By the way, just to check, there are no legal ways for me to run Mac OS X in a vm, is that right? Or to at least set up an identical build/clang environment?

hughperkins commented 8 years ago

By the way, I finally found a way of building stuff on Mac :-) I'm only building DeepCL for now, but the method seems generally applicable https://travis-ci.org/hughperkins/homebrew-test-travis-osx/builds/93269984

hughperkins commented 8 years ago

Hmmm, wrong library, deleted prevoius comment :-P though I am gradually working on adding unit tests for cltorch travis build too... https://travis-ci.org/hughperkins/cltorch/builds/100137705

hughperkins commented 8 years ago

Build on mac works ok now https://travis-ci.org/hughperkins/cltorch

=> closing.