Giter Club home page Giter Club logo

Comments (3)

smart-fr avatar smart-fr commented on May 16, 2024 1

OK, I had to update the packages after cloning the master branch (which actually is still 0.3, isn't it?).
$ julia --project -e "import Pkg; Pkg.update()"
Problem solved. Thank you!

from alphazero.jl.

jonathan-laurent avatar jonathan-laurent commented on May 16, 2024

Could you try again using the latest version of AlphaZero.jl on the master branch and tell me whether or not you are encountering the same issue? Indeed, v0.3 is getting a bit old and it relies on the deprecated CuArrays and CUDAnatvie packages indeed.

from alphazero.jl.

smart-fr avatar smart-fr commented on May 16, 2024

Thank you! For pointing me to the proper version.
Unfortunately I now get the following. I must do something wrong?

(base) ubuntu@bonbonrectangle-dev:~/AlphaZero.jl$ julia --project --color=yes scripts/alphazero.jl --game connect-four train
┌ Warning: gpu() is deprecated, please use CUDA.device instead
└ @ Knet.LibKnet8 ~/.julia/packages/Knet/LdQyF/src/libknet8/LibKnet8.jl:53
ERROR: LoadError: LoadError: type NullAttr has no field size
Stacktrace:
 [1] getproperty at ./Base.jl:33 [inlined]
 [2] define_cache(::Int64) at /home/ubuntu/.julia/packages/VectorizationBase/aP8zQ/src/topology.jl:33
 [3] top-level scope at /home/ubuntu/.julia/packages/VectorizationBase/aP8zQ/src/topology.jl:43
 [4] include(::Function, ::Module, ::String) at ./Base.jl:380
 [5] include at ./Base.jl:368 [inlined]
 [6] include(::String) at /home/ubuntu/.julia/packages/VectorizationBase/aP8zQ/src/VectorizationBase.jl:1
 [7] top-level scope at /home/ubuntu/.julia/packages/VectorizationBase/aP8zQ/src/VectorizationBase.jl:270
 [8] include(::Function, ::Module, ::String) at ./Base.jl:380
 [9] include(::Module, ::String) at ./Base.jl:368
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:331 [inlined]
 [12] eval(::Expr) at ./client.jl:467
 [13] top-level scope at ./none:3
in expression starting at /home/ubuntu/.julia/packages/VectorizationBase/aP8zQ/src/topology.jl:43
in expression starting at /home/ubuntu/.julia/packages/VectorizationBase/aP8zQ/src/VectorizationBase.jl:270
ERROR: LoadError: Failed to precompile VectorizationBase [3d5dd08c-fd9d-11e8-17fa-ed2836048c2f] to /home/ubuntu/.julia/compiled/v1.5/VectorizationBase/Dto5m_yJnFE.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/ubuntu/.julia/packages/LoopVectorization/gjL2Z/src/LoopVectorization.jl:7
ERROR: LoadError: Failed to precompile LoopVectorization [bdcacae8-1622-11e9-2a5c-532679323890] to /home/ubuntu/.julia/compiled/v1.5/LoopVectorization/4TogI_yJnFE.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/ubuntu/.julia/packages/Zygote/nK6sg/src/Zygote.jl:14
ERROR: LoadError: Failed to precompile Zygote [e88e6eb3-aa80-5325-afca-941959d7151f] to /home/ubuntu/.julia/compiled/v1.5/Zygote/4kbLI_yJnFE.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/ubuntu/.julia/packages/Flux/q3zeA/src/Flux.jl:7
ERROR: LoadError: LoadError: Failed to precompile Flux [587475ba-b771-5e3f-ad9e-33799f191a9c] to /home/ubuntu/.julia/compiled/v1.5/Flux/QdkVy_yJnFE.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include at ./Base.jl:368 [inlined]
 [8] include(::String) at /home/ubuntu/AlphaZero.jl/src/AlphaZero.jl:6
 [9] top-level scope at /home/ubuntu/AlphaZero.jl/src/AlphaZero.jl:74
 [10] include(::Function, ::Module, ::String) at ./Base.jl:380
 [11] include(::Module, ::String) at ./Base.jl:368
 [12] top-level scope at none:2
 [13] eval at ./boot.jl:331 [inlined]
 [14] eval(::Expr) at ./client.jl:467
 [15] top-level scope at ./none:3
in expression starting at /home/ubuntu/AlphaZero.jl/src/networks/flux.jl:15
in expression starting at /home/ubuntu/AlphaZero.jl/src/AlphaZero.jl:74
ERROR: LoadError: Failed to precompile AlphaZero [8ed9eb0b-7496-408d-8c8b-2119aeea02cd] to /home/ubuntu/.julia/compiled/v1.5/AlphaZero/zTkjo_yJnFE.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] exec_options(::Base.JLOptions) at ./client.jl:296
 [9] _start() at ./client.jl:506
in expression starting at /home/ubuntu/AlphaZero.jl/scripts/alphazero.jl:17

from alphazero.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.