Skip to content

Precompilation of Reactant 0.2.1x fails #527

@Wu-Chenyang

Description

@Wu-Chenyang

Reactant 0.2.11-0.2.17 fail to precompile on my computer. All of them give the same error as follows.

PkgPrecompileError: The following 1 direct dependency failed to precompile:

Reactant 

Failed to precompile Reactant [3c362404-f566-11ee-1572-e11a4b42c853] to "/home/wucy/.julia/compiled/v1.11/Reactant/jl_HT8LJP".
ERROR: LoadError: InitError: could not load library "/home/wucy/.julia/artifacts/56cc02e54a8e9ca4057447527ef30b1d25b55f64/lib/libReactantExtra.so"
/home/wucy/.julia/artifacts/56cc02e54a8e9ca4057447527ef30b1d25b55f64/lib/libReactantExtra.so: undefined symbol: cuStreamBeginCaptureToGraph
Stacktrace:
  [1] dlopen(s::String, flags::UInt32; throw_error::Bool)
    @ Base.Libc.Libdl ./libdl.jl:120
  [2] dlopen(s::String, flags::UInt32)
    @ Base.Libc.Libdl ./libdl.jl:119
  [3] macro expansion
    @ ~/.julia/packages/JLLWrappers/GfYNv/src/products/library_generators.jl:63 [inlined]
  [4] __init__()
    @ Reactant_jll ~/.julia/packages/Reactant_jll/6GKwh/src/wrappers/x86_64-linux-gnu-cxx11-gpu+cuda-mode+opt.jl:30
  [5] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1378
  [6] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1366
  [7] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base ./loading.jl:1254
  [8] _include_from_serialized (repeats 2 times)
    @ ./loading.jl:1210 [inlined]
  [9] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base ./loading.jl:2057
 [10] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2527
 [11] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [12] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [13] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [14] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [15] macro expansion
    @ ./loading.jl:2314 [inlined]
 [16] macro expansion
    @ ./lock.jl:273 [inlined]
 [17] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [18] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [19] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [20] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
 [21] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
 [22] include(x::String)
    @ Reactant ~/.julia/packages/Reactant/jU13u/src/Reactant.jl:1
 [23] top-level scope
    @ ~/.julia/packages/Reactant/jU13u/src/Reactant.jl:78
 [24] include
    @ ./Base.jl:557 [inlined]
 [25] 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:2881
 [26] top-level scope
    @ stdin:6
during initialization of module Reactant_jll
in expression starting at /home/wucy/.julia/packages/Reactant/jU13u/src/mlir/MLIR.jl:1
in expression starting at /home/wucy/.julia/packages/Reactant/jU13u/src/Reactant.jl:1
in expression starting at stdin

This is a clean environment where no other package is installed

(test) pkg> st
Project test v0.1.0
Status `~/workspace/test/Project.toml`
⌃ [3c362404] Reactant v0.2.11
Info Packages marked with ⌃ have new versions available and may be upgradable.

I also tried to install it on another computer where it succeeded. So, I guess this error is related to the GPU. The errored computer has an NVIDIA TITAN Xp GPU installed. Let me know if any other information is needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions