# Knet does not pass all tests

**URL:** <https://discourse.julialang.org/t/knet-does-not-pass-all-tests/16027>\
**Category:** Internals & Design\
**Tags:** package\
**Created:** [October 8, 2018, 3:23pm UTC](https://discourse.julialang.org/t/knet-does-not-pass-all-tests/16027 "2018-10-08T15:23:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lannisite110](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lannisite110](https://discourse.julialang.org/u/lannisite110)\
**Post date:** [October 8, 2018, 3:23pm UTC](https://discourse.julialang.org/t/knet-does-not-pass-all-tests/16027/1 "2018-10-08T15:23:54Z")

</div>

this error appeared in the final of testing knet  
ERROR: LoadError: LoadError: Some tests did not pass: 238 passed, 2 failed, 0 errored, 0 broken.  
in expression starting at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:10  
in expression starting at /home/users/xdlan/.julia/packages/Knet/rKugL/test/runtests.jl:9  
ERROR: Package Knet errored during testing

(v1.0) pkg\> test Knet  
Testing Knet  
Resolving package versions…  
Status `/tmp/tmp2q9ZpI/Manifest.toml`  
[6710c13c] AutoGrad v1.1.1  
[9e28174c] BinDeps v0.8.10  
[b99e7846] BinaryProvider v0.5.1  
[3895d2a7] CUDAapi v0.5.2  
[944b1d66] CodecZlib v0.5.0  
[34da2185] Compat v1.2.0  
[a8cc5b0e] Crayons v1.0.0  
[864edb3b] DataStructures v0.14.0  
[5789e2e9] FileIO v1.0.2  
[033835bb] JLD2 v0.1.2  
[1902f260] Knet v1.1.1+ #master ([https://github.com/denizyuret/Knet.jl](https://github.com/denizyuret/Knet.jl))  
[bac558e1] OrderedCollections v1.0.2  
[276daf66] SpecialFunctions v0.7.1  
[a759f4b9] TimerOutputs v0.4.0  
[3bb67fe8] TranscodingStreams v0.8.1  
[30578b45] URIParser v0.4.0  
[2a0f44e3] Base64 [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Base64`]  
[ade2ca70] Dates [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Dates`]  
[8bb1440f] DelimitedFiles [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/DelimitedFiles`]  
[8ba89e20] Distributed [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Distributed`]  
[b77e0a4c] InteractiveUtils [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/InteractiveUtils`]  
[76f85450] LibGit2 [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/LibGit2`]  
[8f399da3] Libdl [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Libdl`]  
[37e2e46d] LinearAlgebra [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/LinearAlgebra`]  
[56ddb016] Logging [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Logging`]  
[d6f4376e] Markdown [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Markdown`]  
[a63ad114] Mmap [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Mmap`]  
[44cfe95a] Pkg [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Pkg`]  
[de0858da] Printf [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Printf`]  
[3fa0cd96] REPL [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/REPL`]  
[9a3f8284] Random [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Random`]  
[ea8e919c] SHA [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SHA`]  
[9e88b42a] Serialization [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Serialization`]  
[1a1011a3] SharedArrays [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SharedArrays`]  
[6462fe0b] Sockets [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Sockets`]  
[2f01184e] SparseArrays [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SparseArrays`]  
[10745b16] Statistics [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Statistics`]  
[8dfed614] Test [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Test`]  
[cf7118a7] UUIDs [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/UUIDs`]  
[4ec0a83e] Unicode [`~/software/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Unicode`]  
Test Summary: | Pass Total  
kptr | 1 1  
15.491022 seconds (15.86 M allocations: 800.679 MiB, 35.87% gc time)  
Knet.gpuCount() = 4  
Knet.gpu() = 3  
Knet.tk = [“/usr/local/cuda-8.0”, “/usr/local/cuda-9.0”]  
Knet.libknet8 = “/home/users/xdlan/.julia/packages/Knet/rKugL/deps/libknet8”  
Knet.cudartfound = true  
Knet.cudaRuntimeVersion = 8000  
Knet.cudaDriverVersion = 9000  
Knet.cudaGetDeviceCount() = 4  
Knet.cudaGetDevice() = 3  
Knet.cudaMemGetInfo() = (12594446336, 12782075904)  
Knet.cudaDeviceSynchronize() = nothing  
Knet.nvmlfound = true  
Knet.nvmlDriverVersion = “384.130”  
Knet.nvmlVersion = “9.384.130”  
Knet.nvmlDeviceGetMemoryInfo() = (12782075904, 12594446336, 187629568)  
Knet.cublashandle() = Ptr{Nothing} @0x000000000d11cac0  
Knet.cublasVersion = 8000  
Knet.cudnnhandle() = Ptr{Nothing} @0x000000000d3acb50  
Knet.cudnnVersion = 5110  
Knet.dir() = “/home/users/xdlan/.julia/packages/Knet/rKugL”  
readdir(Knet.dir(“deps”)) = [“.deprecated”, “.gitignore”, “Makefile”, “README.windows”, “build.jl”, “build.log”, “conv.cpp”, “conv.o”, “cuda01.cu”, “cuda01.jl”, “cuda01.o”, “cuda1.cu”, “cuda1.jl”, “cuda1.o”, “cuda11.cu”, “cuda11.jl”, “cuda11.o”, “cuda12.cu”, “cuda12.jl”, “cuda12.o”, “cuda13.cu”, “cuda13.jl”, “cuda13.o”, “cuda14.jl”, “cuda16.cu”, “cuda16.jl”, “cuda16.o”, “cuda17.cu”, “cuda17.jl”, “cuda17.o”, “cuda20.cu”, “cuda20.jl”, “cuda20.o”, “cuda21.cu”, “cuda21.jl”, “cuda21.o”, “cuda22.cu”, “cuda22.jl”, “cuda22.o”, “foo.cpp”, “foo.o”, “libknet8.so”]  
Test Summary: | Pass Total  
gpu | 20 20  
2.737531 seconds (2.07 M allocations: 102.131 MiB, 11.70% gc time)  
Test Summary: | Pass Total  
distributions | 3 3  
4.094999 seconds (4.10 M allocations: 204.143 MiB, 34.83% gc time)  
Test Summary: | Pass Total  
dropout | 3 3  
6.221497 seconds (4.62 M allocations: 244.386 MiB, 24.76% gc time)  
Test Summary: | Pass Total  
loss | 120 120  
60.550454 seconds (47.60 M allocations: 2.370 GiB, 30.09% gc time)  
Test Summary: | Pass Total  
rnn | 1776 1776  
83.318948 seconds (70.79 M allocations: 5.404 GiB, 32.18% gc time)  
(fn, xi, f0, nd, ad) = (getfield(Main, Symbol(“##148#164”))(), 0.13798841774816473, 5.262943598906567, 0.9904878158374356, 0)  
cpu2gpu: Test Failed at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:119  
Expression: gradcheck((x-\>begin  
Array(sin.(KnetArray(x)))  
end), a)  
Stacktrace:  
[1] macro expansion at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:46 [inlined]  
[2] macro expansion at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]  
[3] macro expansion at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:20 [inlined]  
[4] macro expansion at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]  
[5] top-level scope at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:12 [inlined]  
[6] top-level scope at ./none:0  
(fn, xi, f0, nd, ad) = (getfield(Main, Symbol(“##149#165”))(), 0.6567397314061929, 5.262943598906565, 0.7919564268111563, 0)  
cpu2gpu: Test Failed at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:120  
Expression: gradcheck((x-\>begin  
KnetArray(sin.(Array(x)))  
end), k)  
Stacktrace:  
[1] macro expansion at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:47 [inlined]  
[2] macro expansion at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]  
[3] macro expansion at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:20 [inlined]  
[4] macro expansion at /buildworker/worker/package\_linux64/build/usr/share/julia/stdlib/v1.0/Test/src/Test.jl:1083 [inlined]  
[5] top-level scope at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:12 [inlined]  
[6] top-level scope at ./none:0  
Test Summary: | Pass Fail Total  
karray | 238 2 240  
indexing | 148 148  
abstractarray | 87 87  
cpu2gpu | 2 2  
reshape | 3 3  
ERROR: LoadError: LoadError: Some tests did not pass: 238 passed, 2 failed, 0 errored, 0 broken.  
in expression starting at /home/users/xdlan/.julia/packages/Knet/rKugL/test/karray.jl:10  
in expression starting at /home/users/xdlan/.julia/packages/Knet/rKugL/test/runtests.jl:9  
ERROR: Package Knet errored during testing

---

<div class="post-metadata">

**Author:** ![maleadt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/maleadt/32/10097_2.png) [@maleadt](https://discourse.julialang.org/u/maleadt)\
**Post date:** [October 9, 2018, 8:21am UTC](https://discourse.julialang.org/t/knet-does-not-pass-all-tests/16027/2 "2018-10-09T08:21:37Z")

</div>

> About the Development category
> 
> Discussion of the development of Julia itself: language design, implementation and standard library. For questions about using Julia, use the Usage category.

The development category isn’t intended for these kinds of post.

---

<div class="post-metadata">

**Author:** ![lannisite110](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lannisite110](https://discourse.julialang.org/u/lannisite110)\
**Post date:** [October 9, 2018, 1:39pm UTC](https://discourse.julialang.org/t/knet-does-not-pass-all-tests/16027/3 "2018-10-09T13:39:00Z")

</div>

yes, thank you. i have got some reply in knet library.
