-
Notifications
You must be signed in to change notification settings - Fork 252
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
Mocha tests for julia v0.5 #213
Comments
I have found that some of my own code that uses Mocha will not run with julia 0.5. To try to figure out what's going on, I tried the tests. Some tests fail, too. I'm appending the results I get. I'm happy to help out in any way I can.
|
I fixed some compatibility issue in the master. Could you guys see if it fixed your issue? |
After checking out from master, the tests still have problems, the result I obtain is below. This is the same as before, I believe.
|
What version of Julia and what OS are you using? I tested on Ubuntu and Julia v0.5 release, everything works fine for me. |
It's julia Version 0.5.1-pre+2 (2016-09-20 03:34 UTC) on Debian testing. If the tests run fine on Ubuntu, then I'll have to check my julia installation. I just did a git checkout and built from source, the way I have always done with older versions. |
I get the same error as reported above using the generic 64 bit binaries from http://julialang.org/downloads/ |
@mcreel Can you test a stable release (I'm using v0.5.0) instead of testing version like 0.5.1-pre+2? |
The binaries from julialang.org are the 0.5.0 release. Here's the complete version information: julia> The steps I do, starting from a system without Mocha, are Pkg.clone("Mocha") which gives the same error as reported above when 0.5.1-pre+2 is used. |
Please find below my test result. I used the Generic Linux binaries at http://julialang.org/downloads/ phuoc@i7 multi-ae % uname -a
Linux i7 4.7.4-1-ARCH #1 SMP PREEMPT Thu Sep 15 15:24:29 CEST 2016 x86_64 GNU/Linux
julia [83/83]
phuoc@i7 multi-ae % julia
cd("/linux/share/ml/multi-ae")
_
_ _ _(_)_ | A fresh approach to technical computing
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 0.5.0 (2016-09-19 18:14 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-pc-linux-gnu
_
_ _ _(_)_ | By greedy hackers for greedy hackers.
(_) | (_) (_) | Documentation: http://docs.julialang.org
_ _ _| |_ __ _ | Type "?help" for help.
| | | | | | |/ _' | |
| | |_| | | | (_| | | Version 0.5.0 (2016-09-19 18:14 UTC)
_/ |\__'_|_|_|\__'_| | Official http://julialang.org/ release
|__/ | x86_64-pc-linux-gnu
> cd("/linux/share/ml/multi-ae")
> Pkg.clone("https://github.com/pluskid/Mocha.jl.git")
INFO: Cloning Mocha from https://github.com/pluskid/Mocha.jl.git
INFO: Computing changes...
INFO: Installing JLD v0.6.3
INFO: Installing LegacyStrings v0.1.1
INFO: Building Blosc
INFO: Building HDF5
INFO: Package database updated
> Pkg.test("Mocha")
INFO: Testing Mocha
WARNING: Method definition info(Any...) in module Base at util.jl:320 overwritten in module Logging at /home/phuoc/.julia/v0.5/Logging/src/Logging.jl:61.
WARNING: Method definition warn(Any...) in module Base at util.jl:350 overwritten in module Logging at /home/phuoc/.julia/v0.5/Logging/src/Logging.jl:61.
Configuring Mocha...
* CUDA disabled by default
* Native Ext disabled by default
Mocha configured, continue loading module...
WARNING: could not import Base.lastidx into LegacyStrings
DefaultBackend = Mocha.CPUBackend
WARNING: using Mocha.setup in module Main conflicts with an existing identifier.
-- Testing simple Adam solver call
04-Oct 20:48:30:INFO:root:Constructing net TEST on Mocha.CPUBackend...
04-Oct 20:48:30:INFO:root:Topological sorting 4 layers...
04-Oct 20:48:30:INFO:root:Setup layers...
04-Oct 20:48:30:INFO:root:Network constructed!
04-Oct 20:48:30:DEBUG:root:#DEBUG Checking network topology for back-propagation
04-Oct 20:48:31:DEBUG:root:Init network TEST
04-Oct 20:48:31:DEBUG:root:Init parameter weight for layer ip1
04-Oct 20:48:31:DEBUG:root:Init parameter bias for layer ip1
04-Oct 20:48:31:DEBUG:root:Init parameter weight for layer ip2
04-Oct 20:48:31:DEBUG:root:Init parameter bias for layer ip2
04-Oct 20:48:31:DEBUG:root:#DEBUG Initializing coffee breaks
04-Oct 20:48:31:DEBUG:root:#DEBUG Entering solver loop
04-Oct 20:48:32:DEBUG:root:Destroying network TEST
-- Testing simple SGD solver call
04-Oct 20:48:32:INFO:root:Constructing net TEST on Mocha.CPUBackend...
04-Oct 20:48:32:INFO:root:Topological sorting 4 layers...
04-Oct 20:48:32:INFO:root:Setup layers...
04-Oct 20:48:32:INFO:root:Network constructed!
04-Oct 20:48:32:DEBUG:root:#DEBUG Checking network topology for back-propagation
04-Oct 20:48:32:DEBUG:root:Init network TEST
04-Oct 20:48:32:DEBUG:root:Init parameter weight for layer ip1
04-Oct 20:48:32:DEBUG:root:Init parameter bias for layer ip1
04-Oct 20:48:32:DEBUG:root:Init parameter weight for layer ip2
04-Oct 20:48:32:DEBUG:root:Init parameter bias for layer ip2
04-Oct 20:48:32:DEBUG:root:#DEBUG Initializing coffee breaks
04-Oct 20:48:32:DEBUG:root:#DEBUG Entering solver loop
04-Oct 20:48:32:DEBUG:root:Destroying network TEST
-- Testing network topology with duplicated blobs
04-Oct 20:48:32:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:32:INFO:root:Topological sorting 1 layers...
04-Oct 20:48:32:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:32:INFO:root:Topological sorting 2 layers...
-- Testing network topology with missing blobs
04-Oct 20:48:32:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:32:INFO:root:Topological sorting 1 layers...
-- Testing network topology with circular dependency
04-Oct 20:48:32:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:32:INFO:root:Topological sorting 2 layers...
-- Testing network topology with multiple back-propagate path
> Good blob sharing
04-Oct 20:48:32:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:32:INFO:root:Topological sorting 5 layers...
04-Oct 20:48:32:INFO:root:Setup layers...
04-Oct 20:48:33:INFO:root:Network constructed!
04-Oct 20:48:33:DEBUG:root:Destroying network net
> Bad blob sharing
04-Oct 20:48:33:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:33:INFO:root:Topological sorting 6 layers...
04-Oct 20:48:33:INFO:root:Setup layers...
04-Oct 20:48:33:INFO:root:Network constructed!
-- Testing network topology with dangling blob
> Good case
04-Oct 20:48:33:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:33:INFO:root:Topological sorting 4 layers...
04-Oct 20:48:33:INFO:root:Setup layers...
04-Oct 20:48:33:INFO:root:Network constructed!
04-Oct 20:48:33:DEBUG:root:Destroying network net
> Bad case
04-Oct 20:48:33:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:33:INFO:root:Topological sorting 4 layers...
04-Oct 20:48:33:INFO:root:Setup layers...
04-Oct 20:48:33:INFO:root:Network constructed!
04-Oct 20:48:33:DEBUG:root:Destroying network net
> Good case 2
04-Oct 20:48:33:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:33:INFO:root:Topological sorting 5 layers...
04-Oct 20:48:33:INFO:root:Setup layers...
04-Oct 20:48:33:INFO:root:Network constructed!
04-Oct 20:48:33:DEBUG:root:Destroying network net
> Bad case 2
04-Oct 20:48:33:INFO:root:Constructing net net on Mocha.CPUBackend...
04-Oct 20:48:33:INFO:root:Topological sorting 6 layers...
04-Oct 20:48:33:INFO:root:Setup layers...
04-Oct 20:48:33:INFO:root:Network constructed!
04-Oct 20:48:33:DEBUG:root:Destroying network net
-- Testing gradients on simple network (example for gradient checking code)
04-Oct 20:48:33:INFO:root:Constructing net TEST on Mocha.CPUBackend...
04-Oct 20:48:33:INFO:root:Topological sorting 4 layers...
04-Oct 20:48:33:INFO:root:Setup layers...
04-Oct 20:48:33:INFO:root:Network constructed!
-- Testing simple reference counting...
-- Testing glob Utilities
ERROR: LoadError: LoadError: SystemError: unable to read directory layers: No such file or directory
in readdir(::String) at ./file.jl:303
in #glob#9(::Symbol, ::Function, ::String, ::Regex) at /home/phuoc/.julia/v0.5/Mocha/src/utils/io.jl:26
in test_glob() at /home/phuoc/.julia/v0.5/Mocha/test/utils/glob.jl:4
in include_from_node1(::String) at ./loading.jl:488 (repeats 2 times)
in process_options(::Base.JLOptions) at ./client.jl:262
in _start() at ./client.jl:318
while loading /home/phuoc/.julia/v0.5/Mocha/test/utils/glob.jl, in expression starting on line 22
while loading /home/phuoc/.julia/v0.5/Mocha/test/runtests.jl, in expression starting on line 46
==================================[ ERROR: Mocha ]==================================
failed process: Process(`/home/phuoc/packages/julia/bin/julia -Cx86-64 -J/home/phuoc/packages/julia/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/phuoc/.julia/v0.5/Mocha/test/runtests.jl`, ProcessExited(1)) [1]
====================================================================================
ERROR: Mocha had test errors
in #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at ./pkg/entry.jl:740
in (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at ./<missing>:0
in (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at ./pkg/dir.jl:31
in cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at ./file.jl:59
in #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./pkg/dir.jl:31
in (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at ./<missing>:0
in #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258
in test(::String, ::Vararg{String,N}) at ./pkg/pkg.jl:258 |
Julia v0.5 was release 2 days ago. Could you please run tests for this version.
The text was updated successfully, but these errors were encountered: