-
Notifications
You must be signed in to change notification settings - Fork 70
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
base/build: using Libdl.dlext
for searching lib
#265
Conversation
travis ci failure looks weird
|
@@ -11,7 +11,8 @@ curr_win = "20170502" | |||
if haskey(ENV, "MXNET_HOME") | |||
info("MXNET_HOME environment detected: $(ENV["MXNET_HOME"])") | |||
info("Trying to load existing libmxnet...") | |||
lib = Libdl.find_library(["libmxnet", "libmxnet.so"], ["$(ENV["MXNET_HOME"])/lib"]) | |||
lib = Libdl.find_library("libmxnet.$(Libdl.dlext)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe under linux you need to continue to use "libmxnet"
without the Libdl.ext
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems both work.
I can add it back if you want it.
% uname -a
Linux kaladbolg 4.12.8-2-ARCH #1 SMP PREEMPT Fri Aug 18 14:08:02 UTC 2017 x86_64 GNU/Linux
% ls
libmxnet.so* libmxnet-test.so*
julia> p = Libdl.find_library(["libmxnet-test.so"], [pwd()])
"/home/iblis/.julia/v0.5/MXNet/deps/usr/lib/libmxnet-test.so"
julia> Libdl.dlopen_e(p)
Ptr{Void} @0x0000000002f4c7b0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting. Then we need to figure out why Travis is failing.
Travis kill the julia 0.6 build, due to no output in 10 mins: But I think the stdout of |
6ee3ba9
to
e9d18b1
Compare
bde9490
to
4c423df
Compare
I think travis's build hit another issue: |
I will rebase this PR if this issue gets resolved: #267 |
Can we split the travis related commits into their own pr? |
sure. It's #271 |
Libdl.dlext
for searching libLibdl.dlext
for searching lib
Blocker: #271