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

Precompilation fails: category raw not found #1

Closed
carstenbauer opened this issue Apr 4, 2021 · 3 comments
Closed

Precompilation fails: category raw not found #1

carstenbauer opened this issue Apr 4, 2021 · 3 comments

Comments

@carstenbauer
Copy link
Member

carstenbauer commented Apr 4, 2021

Hi Valentin,

was trying to play around with this package. However, I see:

julia> using Roofline
[ Info: Precompiling Roofline [d4e4e2e9-28a3-46a5-80e6-6c3e12a83ea5]
ERROR: LoadError: category raw not found
Stacktrace:
 [1] error(s::String)
   @ Base ~/.julia/sysimgs/std.so:-1
 [2] LinuxPerf.EventType(cat::Symbol, event::Symbol)
   @ LinuxPerf ~/.julia/packages/LinuxPerf/wNit0/src/LinuxPerf.jl:169
 [3] top-level scope
   @ ~/.julia/packages/Roofline/PvE3A/src/Roofline.jl:95
 [4] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
   @ Base ~/.julia/sysimgs/std.so:-1
 [5] _include(mapexpr::Function, mod::Module, _path::String)
   @ Base ~/.julia/sysimgs/std.so:-1
 [6] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
   @ Base ~/.julia/sysimgs/std.so:-1
 [7] top-level scope
   @ none:1
in expression starting at /Users/crstnbr/.julia/packages/Roofline/PvE3A/src/Roofline.jl:1
julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.6.0)
  CPU: Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, skylake)

I'm confused by the fact that the category :raw doesn't seem to have ever existed in LinuxPerf.jl - I checked git log -S :raw without any results.

Do you know what's going on?

Best,
Carsten

@carstenbauer
Copy link
Member Author

Ah, I just found JuliaPerf/LinuxPerf.jl#3. Will try with this PR.

@carstenbauer
Copy link
Member Author

Alright, it now precompiles fine but then I get:

julia> include("sum.jl")
ERROR: LoadError: UndefVarError: intel_roofline_bw_use not defined
Stacktrace:
  [1] benchmark(func::typeof(experiment), setup::typeof(setup), args::Int64; repeats::Int64)
    @ Roofline ~/.julia/packages/Roofline/PvE3A/src/Roofline.jl:21
  [2] benchmark(func::typeof(experiment), setup::typeof(setup), args::Int64)
    @ Roofline ~/.julia/packages/Roofline/PvE3A/src/Roofline.jl:16
  [3] top-level scope
    @ ~/playground/roofline/sum.jl:16
  [4] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
    @ Base ~/.julia/sysimgs/std.so:-1
  [5] _include(mapexpr::Function, mod::Module, _path::String)
    @ Base ~/.julia/sysimgs/std.so:-1
  [6] include(fname::String)
    @ Base.MainInclude ./client.jl:444
  [7] top-level scope
    @ REPL[2]:1
  [8] eval_user_input(ast::Any, backend::REPL.REPLBackend)
    @ REPL ~/.julia/sysimgs/std.so:-1
  [9] repl_backend_loop(backend::REPL.REPLBackend)
    @ REPL ~/.julia/sysimgs/std.so:-1
 [10] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
    @ REPL ~/.julia/sysimgs/std.so:-1
 [11] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
    @ REPL ~/.julia/sysimgs/std.so:-1
 [12] run_repl(repl::REPL.AbstractREPL, consumer::Any)
    @ REPL ~/.julia/sysimgs/std.so:-1
 [13] (::Base.var"#874#876"{Bool, Bool, Bool})(REPL::Module)
    @ Base ~/.julia/sysimgs/std.so:-1
 [14] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
    @ Base ~/.julia/sysimgs/std.so:-1
 [15] exec_options(opts::Base.JLOptions)
    @ Base ~/.julia/sysimgs/std.so:-1
 [16] _start()
    @ Base ~/.julia/sysimgs/std.so:-1
in expression starting at /Users/crstnbr/playground/roofline/sum.jl:16

@carstenbauer
Copy link
Member Author

If I use the LinuxPerf PR mentioned above I can get the sum example to run by using #2.

I don't understand the results yet though. But I guess I have to think more about it.

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

1 participant