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

Mocha tests for julia v0.5 #213

Open
pnth opened this issue Sep 22, 2016 · 9 comments
Open

Mocha tests for julia v0.5 #213

pnth opened this issue Sep 22, 2016 · 9 comments

Comments

@pnth
Copy link

pnth commented Sep 22, 2016

Julia v0.5 was release 2 days ago. Could you please run tests for this version.

@mcreel
Copy link

mcreel commented Sep 28, 2016

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.

michael@yosemite:~$ julia
               _
   _       _ _(_)_     |  A fresh approach to technical computing
  (_)     | (_) (_)    |  Documentation: http://docs.julialang.org
   _ _   _| |_  __ _   |  Type "?help" for help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 0.5.1-pre+2 (2016-09-20 03:34 UTC)
 _/ |\__'_|_|_|\__'_|  |  Commit f0d40ec* (8 days old release-0.5)
|__/                   |  x86_64-linux-gnu

julia> Pkg.test("Mocha")
INFO: Testing Mocha
WARNING: Method definition info(Any...) in module Base at util.jl:320 overwritten in module Logging at /home/michael/.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/michael/.julia/v0.5/Logging/src/Logging.jl:61.
Configuring Mocha...
 * CUDA       disabled by default
 * Native Ext disabled by default
Mocha configured, continue loading module...
DefaultBackend = Mocha.CPUBackend
WARNING: Method definition setup(Mocha.Backend, Mocha.Layer, Any, Array{Mocha.Blob, 1}, Array{Mocha.Blob, 1}) in module Mocha at /home/michael/.julia/v0.5/Mocha/src/layers.jl:107 overwritten at /home/michael/.julia/v0.5/Mocha/src/layers.jl:112.
WARNING: Method definition update(Mocha.Solver{Mocha.SGD}, Mocha.Net, Mocha.SolverState{Mocha.SGDSolverState}) in module Mocha at /home/michael/.julia/v0.5/Mocha/src/solvers/sgd.jl:69 overwritten at /home/michael/.julia/v0.5/Mocha/src/solvers/nesterov.jl:16.
WARNING: using Mocha.setup in module Main conflicts with an existing identifier.
-- Testing simple Adam solver call
28-Sep 09:02:56:INFO:root:Constructing net TEST on Mocha.CPUBackend...
28-Sep 09:02:56:INFO:root:Topological sorting 4 layers...
28-Sep 09:02:56:INFO:root:Setup layers...
28-Sep 09:02:57:INFO:root:Network constructed!
28-Sep 09:02:57:DEBUG:root:#DEBUG Checking network topology for back-propagation
28-Sep 09:02:58:DEBUG:root:Init network TEST
28-Sep 09:02:58:DEBUG:root:Init parameter weight for layer ip1
28-Sep 09:02:58:DEBUG:root:Init parameter bias for layer ip1
28-Sep 09:02:58:DEBUG:root:Init parameter weight for layer ip2
28-Sep 09:02:58:DEBUG:root:Init parameter bias for layer ip2
28-Sep 09:02:58:DEBUG:root:#DEBUG Initializing coffee breaks
28-Sep 09:02:58:DEBUG:root:#DEBUG Entering solver loop
28-Sep 09:02:59:DEBUG:root:Destroying network TEST
-- Testing simple SGD solver call
28-Sep 09:02:59:INFO:root:Constructing net TEST on Mocha.CPUBackend...
28-Sep 09:02:59:INFO:root:Topological sorting 4 layers...
28-Sep 09:02:59:INFO:root:Setup layers...
28-Sep 09:02:59:INFO:root:Network constructed!
28-Sep 09:02:59:DEBUG:root:#DEBUG Checking network topology for back-propagation
28-Sep 09:02:59:DEBUG:root:Init network TEST
28-Sep 09:02:59:DEBUG:root:Init parameter weight for layer ip1
28-Sep 09:02:59:DEBUG:root:Init parameter bias for layer ip1
28-Sep 09:02:59:DEBUG:root:Init parameter weight for layer ip2
28-Sep 09:02:59:DEBUG:root:Init parameter bias for layer ip2
28-Sep 09:02:59:DEBUG:root:#DEBUG Initializing coffee breaks
28-Sep 09:02:59:DEBUG:root:#DEBUG Entering solver loop
28-Sep 09:02:59:DEBUG:root:Destroying network TEST
-- Testing network topology with duplicated blobs
28-Sep 09:03:00:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:00:INFO:root:Topological sorting 1 layers...
28-Sep 09:03:00:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:00:INFO:root:Topological sorting 2 layers...
-- Testing network topology with missing blobs
28-Sep 09:03:00:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:00:INFO:root:Topological sorting 1 layers...
-- Testing network topology with circular dependency
28-Sep 09:03:00:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:00:INFO:root:Topological sorting 2 layers...
-- Testing network topology with multiple back-propagate path
    > Good blob sharing
28-Sep 09:03:00:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:00:INFO:root:Topological sorting 5 layers...
28-Sep 09:03:00:INFO:root:Setup layers...
28-Sep 09:03:01:INFO:root:Network constructed!
28-Sep 09:03:01:DEBUG:root:Destroying network net
    > Bad blob sharing
28-Sep 09:03:01:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:01:INFO:root:Topological sorting 6 layers...
28-Sep 09:03:01:INFO:root:Setup layers...
28-Sep 09:03:01:INFO:root:Network constructed!
-- Testing network topology with dangling blob
    > Good case
28-Sep 09:03:01:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:01:INFO:root:Topological sorting 4 layers...
28-Sep 09:03:01:INFO:root:Setup layers...
28-Sep 09:03:01:INFO:root:Network constructed!
28-Sep 09:03:01:DEBUG:root:Destroying network net
    > Bad case
28-Sep 09:03:01:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:01:INFO:root:Topological sorting 4 layers...
28-Sep 09:03:01:INFO:root:Setup layers...
28-Sep 09:03:01:INFO:root:Network constructed!
28-Sep 09:03:01:DEBUG:root:Destroying network net
    > Good case 2
28-Sep 09:03:01:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:01:INFO:root:Topological sorting 5 layers...
28-Sep 09:03:01:INFO:root:Setup layers...
28-Sep 09:03:01:INFO:root:Network constructed!
28-Sep 09:03:01:DEBUG:root:Destroying network net
    > Bad case 2
28-Sep 09:03:01:INFO:root:Constructing net net on Mocha.CPUBackend...
28-Sep 09:03:01:INFO:root:Topological sorting 6 layers...
28-Sep 09:03:01:INFO:root:Setup layers...
28-Sep 09:03:01:INFO:root:Network constructed!
28-Sep 09:03:01:DEBUG:root:Destroying network net
-- Testing gradients on simple network (example for gradient checking code)
28-Sep 09:03:01:INFO:root:Constructing net TEST on Mocha.CPUBackend...
28-Sep 09:03:01:INFO:root:Topological sorting 4 layers...
28-Sep 09:03:01:INFO:root:Setup layers...
28-Sep 09:03:01:INFO:root:Network constructed!
-- Testing simple reference counting...
-- Testing glob Utilities
-- Testing RawBLAS{Float32} Utilities
-- Testing RawBLAS{Float64} Utilities
-- Testing blob reshape on Mocha.CPUBackend{Float32}...
-- Testing blob reshape on Mocha.CPUBackend{Float64}...
-- Testing ReLU neuron on Mocha.CPUBackend{Float32}...
    > Forward
    > Backward
-- Testing ReLU neuron on Mocha.CPUBackend{Float64}...
    > Forward
    > Backward
-- Testing Sigmoid neuron on Mocha.CPUBackend{Float32}...
    > Forward
    > Backward
-- Testing Sigmoid neuron on Mocha.CPUBackend{Float64}...
    > Forward
    > Backward
-- Testing Tanh neuron on Mocha.CPUBackend{Float32}...
    > Forward
    > Backward
-- Testing Tanh neuron on Mocha.CPUBackend{Float64}...
    > Forward
    > Backward
-- Testing Exponential neuron on Mocha.CPUBackend{Float32}...
    > Forward
    > Backward
-- Testing Exponential neuron on Mocha.CPUBackend{Float64}...
    > Forward
    > Backward
-- Testing L2 regularizer on Mocha.CPUBackend{Float32}...
-- Testing L2 regularizer on Mocha.CPUBackend{Float64}...
-- Testing L1 regularizer on Mocha.CPUBackend{Float32}...
WARNING: could not attach metadata for @simd loop.
-- Testing L1 regularizer on Mocha.CPUBackend{Float64}...
WARNING: could not attach metadata for @simd loop.
-- Testing L2 constraint on Mocha.CPUBackend{Float32}...
-- Testing L2 constraint on Mocha.CPUBackend{Float64}...
-- Testing DataTransformers on Mocha.CPUBackend{Float32}...
    > SubMean
ERROR: LoadError: LoadError: MethodError: no method matching setup(::Mocha.CPUBackend, ::Mocha.DataTransformers.SubMean, ::Mocha.CPUBlob{Float32,4})
 in test_data_transformer(::Mocha.CPUBackend, ::Type{T}, ::Float64) at /home/michael/.julia/v0.5/Mocha/test/data-transformers.jl:11
 in test_data_transformer(::Mocha.CPUBackend) at /home/michael/.julia/v0.5/Mocha/test/data-transformers.jl:34
 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/michael/.julia/v0.5/Mocha/test/data-transformers.jl, in expression starting on line 39
while loading /home/michael/.julia/v0.5/Mocha/test/runtests.jl, in expression starting on line 79
=======================================================================[ ERROR: Mocha ]========================================================================

failed process: Process(`/home/michael/julia/usr/bin/julia -Cnative -J/home/michael/julia/usr/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/michael/.julia/v0.5/Mocha/test/runtests.jl`, ProcessExited(1)) [1]

===============================================================================================================================================================
------ PkgError ------------------------ Stacktrace (most recent call last)

 [1] — test(::String, ::Vararg{String,N}) at pkg.jl:258

 [2] — #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at pkg.jl:258

 [3] — (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at <missing>:0

 [4] — #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at dir.jl:31

 [5] — cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at file.jl:59

 [6] — (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at dir.jl:31

 [7] — (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at <missing>:0

 [8] — #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at entry.jl:740

Mocha had test errors

julia> 

@pluskid
Copy link
Owner

pluskid commented Sep 28, 2016

I fixed some compatibility issue in the master. Could you guys see if it fixed your issue?

@mcreel
Copy link

mcreel commented Sep 29, 2016

After checking out from master, the tests still have problems, the result I obtain is below. This is the same as before, I believe.

julia> Pkg.test("Mocha")
INFO: Testing Mocha
WARNING: Method definition info(Any...) in module Base at util.jl:320 overwritten in module Logging at /home/michael/.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/michael/.julia/v0.5/Logging/src/Logging.jl:61.
Configuring Mocha...
 * CUDA       disabled by default
 * Native Ext disabled by default
Mocha configured, continue loading module...
DefaultBackend = Mocha.CPUBackend
WARNING: using Mocha.setup in module Main conflicts with an existing identifier.
-- Testing simple Adam solver call
29-Sep 06:53:49:INFO:root:Constructing net TEST on Mocha.CPUBackend...
29-Sep 06:53:49:INFO:root:Topological sorting 4 layers...
29-Sep 06:53:49:INFO:root:Setup layers...
29-Sep 06:53:50:INFO:root:Network constructed!
29-Sep 06:53:50:DEBUG:root:#DEBUG Checking network topology for back-propagation
29-Sep 06:53:52:DEBUG:root:Init network TEST
29-Sep 06:53:52:DEBUG:root:Init parameter weight for layer ip1
29-Sep 06:53:52:DEBUG:root:Init parameter bias for layer ip1
29-Sep 06:53:52:DEBUG:root:Init parameter weight for layer ip2
29-Sep 06:53:52:DEBUG:root:Init parameter bias for layer ip2
29-Sep 06:53:52:DEBUG:root:#DEBUG Initializing coffee breaks
29-Sep 06:53:53:DEBUG:root:#DEBUG Entering solver loop
29-Sep 06:53:53:DEBUG:root:Destroying network TEST
-- Testing simple SGD solver call
29-Sep 06:53:54:INFO:root:Constructing net TEST on Mocha.CPUBackend...
29-Sep 06:53:54:INFO:root:Topological sorting 4 layers...
29-Sep 06:53:54:INFO:root:Setup layers...
29-Sep 06:53:54:INFO:root:Network constructed!
29-Sep 06:53:54:DEBUG:root:#DEBUG Checking network topology for back-propagation
29-Sep 06:53:54:DEBUG:root:Init network TEST
29-Sep 06:53:54:DEBUG:root:Init parameter weight for layer ip1
29-Sep 06:53:54:DEBUG:root:Init parameter bias for layer ip1
29-Sep 06:53:54:DEBUG:root:Init parameter weight for layer ip2
29-Sep 06:53:54:DEBUG:root:Init parameter bias for layer ip2
29-Sep 06:53:54:DEBUG:root:#DEBUG Initializing coffee breaks
29-Sep 06:53:54:DEBUG:root:#DEBUG Entering solver loop
29-Sep 06:53:54:DEBUG:root:Destroying network TEST
-- Testing network topology with duplicated blobs
29-Sep 06:53:55:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:55:INFO:root:Topological sorting 1 layers...
29-Sep 06:53:55:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:55:INFO:root:Topological sorting 2 layers...
-- Testing network topology with missing blobs
29-Sep 06:53:55:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:55:INFO:root:Topological sorting 1 layers...
-- Testing network topology with circular dependency
29-Sep 06:53:55:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:55:INFO:root:Topological sorting 2 layers...
-- Testing network topology with multiple back-propagate path
    > Good blob sharing
29-Sep 06:53:55:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:55:INFO:root:Topological sorting 5 layers...
29-Sep 06:53:55:INFO:root:Setup layers...
29-Sep 06:53:56:INFO:root:Network constructed!
29-Sep 06:53:56:DEBUG:root:Destroying network net
    > Bad blob sharing
29-Sep 06:53:56:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:56:INFO:root:Topological sorting 6 layers...
29-Sep 06:53:56:INFO:root:Setup layers...
29-Sep 06:53:56:INFO:root:Network constructed!
-- Testing network topology with dangling blob
    > Good case
29-Sep 06:53:56:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:56:INFO:root:Topological sorting 4 layers...
29-Sep 06:53:56:INFO:root:Setup layers...
29-Sep 06:53:57:INFO:root:Network constructed!
29-Sep 06:53:57:DEBUG:root:Destroying network net
    > Bad case
29-Sep 06:53:57:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:57:INFO:root:Topological sorting 4 layers...
29-Sep 06:53:57:INFO:root:Setup layers...
29-Sep 06:53:57:INFO:root:Network constructed!
29-Sep 06:53:57:DEBUG:root:Destroying network net
    > Good case 2
29-Sep 06:53:57:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:57:INFO:root:Topological sorting 5 layers...
29-Sep 06:53:57:INFO:root:Setup layers...
29-Sep 06:53:57:INFO:root:Network constructed!
29-Sep 06:53:57:DEBUG:root:Destroying network net
    > Bad case 2
29-Sep 06:53:57:INFO:root:Constructing net net on Mocha.CPUBackend...
29-Sep 06:53:57:INFO:root:Topological sorting 6 layers...
29-Sep 06:53:57:INFO:root:Setup layers...
29-Sep 06:53:57:INFO:root:Network constructed!
29-Sep 06:53:57:DEBUG:root:Destroying network net
-- Testing gradients on simple network (example for gradient checking code)
29-Sep 06:53:57:INFO:root:Constructing net TEST on Mocha.CPUBackend...
29-Sep 06:53:57:INFO:root:Topological sorting 4 layers...
29-Sep 06:53:57:INFO:root:Setup layers...
29-Sep 06:53:57:INFO:root:Network constructed!
-- Testing simple reference counting...
-- Testing glob Utilities
-- Testing RawBLAS{Float32} Utilities
-- Testing RawBLAS{Float64} Utilities
-- Testing blob reshape on Mocha.CPUBackend{Float32}...
-- Testing blob reshape on Mocha.CPUBackend{Float64}...
-- Testing ReLU neuron on Mocha.CPUBackend{Float32}...
    > Forward
    > Backward
-- Testing ReLU neuron on Mocha.CPUBackend{Float64}...
    > Forward
    > Backward
-- Testing Sigmoid neuron on Mocha.CPUBackend{Float32}...
    > Forward
    > Backward
-- Testing Sigmoid neuron on Mocha.CPUBackend{Float64}...
    > Forward
    > Backward
-- Testing Tanh neuron on Mocha.CPUBackend{Float32}...
    > Forward
    > Backward
-- Testing Tanh neuron on Mocha.CPUBackend{Float64}...
    > Forward
    > Backward
-- Testing Exponential neuron on Mocha.CPUBackend{Float32}...
    > Forward
    > Backward
-- Testing Exponential neuron on Mocha.CPUBackend{Float64}...
    > Forward
    > Backward
-- Testing L2 regularizer on Mocha.CPUBackend{Float32}...
-- Testing L2 regularizer on Mocha.CPUBackend{Float64}...
-- Testing L1 regularizer on Mocha.CPUBackend{Float32}...
WARNING: could not attach metadata for @simd loop.
-- Testing L1 regularizer on Mocha.CPUBackend{Float64}...
WARNING: could not attach metadata for @simd loop.
-- Testing L2 constraint on Mocha.CPUBackend{Float32}...
-- Testing L2 constraint on Mocha.CPUBackend{Float64}...
-- Testing DataTransformers on Mocha.CPUBackend{Float32}...
    > SubMean
ERROR: LoadError: LoadError: MethodError: no method matching setup(::Mocha.CPUBackend, ::Mocha.DataTransformers.SubMean, ::Mocha.CPUBlob{Float32,4})
 in test_data_transformer(::Mocha.CPUBackend, ::Type{T}, ::Float64) at /home/michael/.julia/v0.5/Mocha/test/data-transformers.jl:11
 in test_data_transformer(::Mocha.CPUBackend) at /home/michael/.julia/v0.5/Mocha/test/data-transformers.jl:34
 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/michael/.julia/v0.5/Mocha/test/data-transformers.jl, in expression starting on line 39
while loading /home/michael/.julia/v0.5/Mocha/test/runtests.jl, in expression starting on line 79
========================================[ ERROR: Mocha ]=========================================

failed process: Process(`/home/michael/julia/usr/bin/julia -Cnative -J/home/michael/julia/usr/lib/julia/sys.so --compile=yes --depwarn=yes --check-bounds=yes --code-coverage=none --color=yes --compilecache=yes /home/michael/.julia/v0.5/Mocha/test/runtests.jl`, ProcessExited(1)) [1]

=================================================================================================
------ PkgError ------------------------ Stacktrace (most recent call last)

 [1] — test(::String, ::Vararg{String,N}) at pkg.jl:258

 [2] — #test#3(::Bool, ::Function, ::String, ::Vararg{String,N}) at pkg.jl:258

 [3] — (::Base.Pkg.Dir.#kw##cd)(::Array{Any,1}, ::Base.Pkg.Dir.#cd, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at <missing>:0

 [4] — #cd#1(::Array{Any,1}, ::Function, ::Function, ::Array{AbstractString,1}, ::Vararg{Array{AbstractString,1},N}) at dir.jl:31

 [5] — cd(::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}}, ::String) at file.jl:59

 [6] — (::Base.Pkg.Dir.##2#3{Array{Any,1},Base.Pkg.Entry.#test,Tuple{Array{AbstractString,1}}})() at dir.jl:31

 [7] — (::Base.Pkg.Entry.#kw##test)(::Array{Any,1}, ::Base.Pkg.Entry.#test, ::Array{AbstractString,1}) at <missing>:0

 [8] — #test#61(::Bool, ::Function, ::Array{AbstractString,1}) at entry.jl:740

Mocha had test errors

julia> 

@pluskid
Copy link
Owner

pluskid commented Sep 30, 2016

What version of Julia and what OS are you using? I tested on Ubuntu and Julia v0.5 release, everything works fine for me.

@mcreel
Copy link

mcreel commented Oct 1, 2016

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.

@mcreel
Copy link

mcreel commented Oct 1, 2016

I get the same error as reported above using the generic 64 bit binaries from http://julialang.org/downloads/

@pluskid
Copy link
Owner

pluskid commented Oct 2, 2016

@mcreel Can you test a stable release (I'm using v0.5.0) instead of testing version like 0.5.1-pre+2?

@mcreel
Copy link

mcreel commented Oct 2, 2016

The binaries from julialang.org are the 0.5.0 release. Here's the complete version information:
julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
System: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.7.1 (ORCJIT, broadwell)

julia>

The steps I do, starting from a system without Mocha, are

Pkg.clone("Mocha")
Pkg.build("Mocha")
Pkg.test("Mocha")

which gives the same error as reported above when 0.5.1-pre+2 is used.

@pnth
Copy link
Author

pnth commented Oct 3, 2016

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

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

3 participants