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

JUDI's FluxJUDIExt issue #267

Closed
zhen0z opened this issue Jul 26, 2024 · 4 comments · Fixed by #268
Closed

JUDI's FluxJUDIExt issue #267

zhen0z opened this issue Jul 26, 2024 · 4 comments · Fixed by #268

Comments

@zhen0z
Copy link

zhen0z commented Jul 26, 2024

Hi,

I am working with the JUDI package and am trying to use it with CPU-only configurations. However, when I load the JUDI and JutulDarcyRules packages, I encounter an error related to the FluxJUDIExt file, indicating that CUDA is required.

Could you please confirm if it's possible to use JUDI and JutulDarcyRules with only CPU support? If so, could you provide guidance on how to configure or modify the setup to avoid the CUDA dependency?

Thank you!

julia> using JUDI, PyPlot, LinearAlgebra

julia> using JutulDarcyRules
[ Info: Precompiling FluxJUDIExt [69fb6015-e88d-5ed7-837a-bd32e4f16230]
ERROR: LoadError: UndefVarError: CUDA not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:31
[2] top-level scope
@ ~/.julia/packages/JUDI/yFPLW/ext/FluxJUDIExt.jl:8
[3] include
@ ./Base.jl:457 [inlined]
[4] 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, UInt128}}, source::Nothing)
@ Base ./loading.jl:2049
[5] top-level scope
@ stdin:3
in expression starting at /home/zhen/.julia/packages/JUDI/yFPLW/ext/FluxJUDIExt.jl:1
in expression starting at stdin:3
┌ Error: Error during loading of extension FluxJUDIExt of JUDI, use Base.retry_load_extensions() to retry.
│ exception =
│ 1-element ExceptionStack:
│ Failed to precompile FluxJUDIExt [69fb6015-e88d-5ed7-837a-bd32e4f16230] to "/home/zhen/.julia/compiled/v1.9/FluxJUDIExt/jl_bxpOpx".
│ Stacktrace:
│ [1] error(s::String)
│ @ Base ./error.jl:35
│ [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2294
│ [3] compilecache
│ @ ./loading.jl:2167 [inlined]
│ [4] _require(pkg::Base.PkgId, env::Nothing)
│ @ Base ./loading.jl:1805
│ [5] _require_prelocked(uuidkey::Base.PkgId, env::Nothing)
│ @ Base ./loading.jl:1660
│ [6] _require_prelocked(uuidkey::Base.PkgId)
│ @ Base ./loading.jl:1658
│ [7] run_extension_callbacks(extid::Base.ExtensionId)
│ @ Base ./loading.jl:1255
│ [8] run_extension_callbacks(pkgid::Base.PkgId)
│ @ Base ./loading.jl:1290
│ [9] run_package_callbacks(modkey::Base.PkgId)
│ @ Base ./loading.jl:1124
│ [10] _tryrequire_from_serialized(modkey::Base.PkgId, path::String, ocachepath::String, sourcepath::String, depmods::Vector{Any})
│ @ Base ./loading.jl:1398
│ [11] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128)
│ @ Base ./loading.jl:1494
│ [12] _require(pkg::Base.PkgId, env::String)
│ @ Base ./loading.jl:1783
│ [13] _require_prelocked(uuidkey::Base.PkgId, env::String)
│ @ Base ./loading.jl:1660
│ [14] macro expansion
│ @ ./loading.jl:1648 [inlined]
│ [15] macro expansion
│ @ ./lock.jl:267 [inlined]
│ [16] require(into::Module, mod::Symbol)
│ @ Base ./loading.jl:1611
│ [17] eval
│ @ ./boot.jl:370 [inlined]
│ [18] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
│ @ REPL ~/EdWork/A3_Software/julia-1.9.4/share/julia/stdlib/v1.9/REPL/src/REPL.jl:153
│ [19] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
│ @ REPL ~/EdWork/A3_Software/julia-1.9.4/share/julia/stdlib/v1.9/REPL/src/REPL.jl:249
│ [20] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
│ @ REPL ~/EdWork/A3_Software/julia-1.9.4/share/julia/stdlib/v1.9/REPL/src/REPL.jl:234
│ [21] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
│ @ REPL ~/EdWork/A3_Software/julia-1.9.4/share/julia/stdlib/v1.9/REPL/src/REPL.jl:379
│ [22] run_repl(repl::REPL.AbstractREPL, consumer::Any)
│ @ REPL ~/EdWork/A3_Software/julia-1.9.4/share/julia/stdlib/v1.9/REPL/src/REPL.jl:365
│ [23] (::Base.var"#1018#1020"{Bool, Bool, Bool})(REPL::Module)
│ @ Base ./client.jl:421
│ [24] #invokelatest#2
│ @ ./essentials.jl:819 [inlined]
│ [25] invokelatest
│ @ ./essentials.jl:816 [inlined]
│ [26] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
│ @ Base ./client.jl:405
│ [27] exec_options(opts::Base.JLOptions)
│ @ Base ./client.jl:322
│ [28] _start()
│ @ Base ./client.jl:522
└ @ Base loading.jl:1261

@mloubout
Copy link
Member

Looking into it

@zhen0z
Copy link
Author

zhen0z commented Jul 26, 2024 via email

@mloubout
Copy link
Member

mloubout commented Aug 4, 2024

Should be fixed now

@zhen0z
Copy link
Author

zhen0z commented Aug 4, 2024 via email

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

Successfully merging a pull request may close this issue.

2 participants