JuliaReinforcementLearning / ReinforcementLearningAnIntroduction.jl

Julia code for the book Reinforcement Learning An Introduction
https://juliareinforcementlearning.org/ReinforcementLearningAnIntroduction.jl/
MIT License
309 stars 58 forks source link

Will this package work without a GPU device? #13

Closed dongzhiming closed 4 years ago

dongzhiming commented 4 years ago

Hi, will this package work without a GPU device?

julia> versioninfo()
Julia Version 1.4.0-rc1.0
Commit b0c33b0cf5 (2020-01-23 17:23 UTC)
Platform Info:
  OS: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-8.0.1 (ORCJIT, skylake)

using ReinforcementLearningAnIntroduction
[ Info: CUDAdrv.jl failed to initialize, GPU functionality unavailable (set JULIA_CUDA_SILENT or JULIA_CUDA_VERBOSE to silence or expand this message)
[ Info: Precompiling ReinforcementLearningAnIntroduction [02c1da58-b9a1-11e8-0212-f9611b8fe936]

signal (11): Segmentation fault
in expression starting at REPL[4]:1
jl_deserialize_struct at /buildworker/worker/package_linux64/build/src/dump.c:1958 [inlined]
jl_deserialize_value_any at /buildworker/worker/package_linux64/build/src/dump.c:2049 [inlined]
jl_deserialize_value at /buildworker/worker/package_linux64/build/src/dump.c:2254
jl_deserialize_value_array at /buildworker/worker/package_linux64/build/src/dump.c:1606
jl_deserialize_value at /buildworker/worker/package_linux64/build/src/dump.c:2114
jl_deserialize_struct at /buildworker/worker/package_linux64/build/src/dump.c:1965 [inlined]
jl_deserialize_value_any at /buildworker/worker/package_linux64/build/src/dump.c:2049 [inlined]
jl_deserialize_value at /buildworker/worker/package_linux64/build/src/dump.c:2254
jl_deserialize_value_module at /buildworker/worker/package_linux64/build/src/dump.c:1879 [inlined]
jl_deserialize_value at /buildworker/worker/package_linux64/build/src/dump.c:2170
jl_deserialize_value_module at /buildworker/worker/package_linux64/build/src/dump.c:1879 [inlined]
jl_deserialize_value at /buildworker/worker/package_linux64/build/src/dump.c:2170
jl_deserialize_value_module at /buildworker/worker/package_linux64/build/src/dump.c:1871 [inlined]
jl_deserialize_value at /buildworker/worker/package_linux64/build/src/dump.c:2170
jl_deserialize_value_array at /buildworker/worker/package_linux64/build/src/dump.c:1606
jl_deserialize_value at /buildworker/worker/package_linux64/build/src/dump.c:2114
_jl_restore_incremental at /buildworker/worker/package_linux64/build/src/dump.c:3255
jl_restore_incremental at /buildworker/worker/package_linux64/build/src/dump.c:3314
_include_from_serialized at ./loading.jl:681
_require_from_serialized at ./loading.jl:748
_require at ./loading.jl:1039
require at ./loading.jl:927
require at ./loading.jl:922
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2144 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1692 [inlined]
call_require at /buildworker/worker/package_linux64/build/src/toplevel.c:399 [inlined]
eval_import_path at /buildworker/worker/package_linux64/build/src/toplevel.c:436
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:656
jl_toplevel_eval_flex at /buildworker/worker/package_linux64/build/src/toplevel.c:764
jl_toplevel_eval_in at /buildworker/worker/package_linux64/build/src/toplevel.c:843
eval at ./boot.jl:331
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2144 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
eval_user_input at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:86
macro expansion at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.4/REPL/src/REPL.jl:118 [inlined]
#26 at ./task.jl:358
_jl_invoke at /buildworker/worker/package_linux64/build/src/gf.c:2144 [inlined]
jl_apply_generic at /buildworker/worker/package_linux64/build/src/gf.c:2322
jl_apply at /buildworker/worker/package_linux64/build/src/julia.h:1692 [inlined]
start_task at /buildworker/worker/package_linux64/build/src/task.c:687
unknown function (ip: (nil))
Allocations: 78153808 (Pool: 78139611; Big: 14197); GC: 77
[1]    20396 segmentation fault (core dumped)  julia
findmyway commented 4 years ago

Yes, this project should work without a GPU.

The error you report is due to that you are using Julia v1.4.0-rc1. I can reproduce it on my machine too.

Right now, I'm not sure how to resolve this error. Let's wait and see if it will be addressed in the next release candidate.

dongzhiming commented 4 years ago

Yes, this project should work without a GPU.

The error you report is due to that you are using Julia v1.4.0-rc1. I can reproduce it on my machine too.

Right now, I'm not sure how to resolve this error. Let's wait and see if it will be addressed in the next release candidate.

OK, I use it very well with Julia v1.3.1, many THX.