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

Fail during precompile: LoadError #58

Closed
JerryGHT04 opened this issue Sep 6, 2024 · 1 comment
Closed

Fail during precompile: LoadError #58

JerryGHT04 opened this issue Sep 6, 2024 · 1 comment

Comments

@JerryGHT04
Copy link

Hi, I ran into this error when running the example code. It sometimes pass the compile, most of the time this error is thrown:
[ Info: Precompiling CUDSS [45b445bb-4962-46a0-9369-b4df9d0f772e]
ERROR: LoadError: MethodError: no method matching CUDA.APIUtils.HandleCache{CUDA.CuContext, Ptr{CUDSS.cudssContext}}()

Closest candidates are:
CUDA.APIUtils.HandleCache{K, V}(::Any, ::Any; max_entries) where {K, V}
@ CUDA C:\Users\65171.julia\packages\CUDA\Tl08O\lib\utils\cache.jl:17

Stacktrace:
[1] top-level scope
@ C:\Users\65171.julia\packages\CUDSS\ACgsr\src\management.jl:20
[2] include(mod::Module, _path::String)
@ Base .\Base.jl:457
[3] include(x::String)
@ CUDSS C:\Users\65171.julia\packages\CUDSS\ACgsr\src\CUDSS.jl:1
[4] top-level scope
@ C:\Users\65171.julia\packages\CUDSS\ACgsr\src\CUDSS.jl:24
[5] include
@ .\Base.jl:457 [inlined]
[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, UInt128}}, source::String)
@ Base .\loading.jl:2049
[7] top-level scope
@ stdin:3
in expression starting at C:\Users\65171.julia\packages\CUDSS\ACgsr\src\management.jl:20
in expression starting at C:\Users\65171.julia\packages\CUDSS\ACgsr\src\CUDSS.jl:1
in expression starting at stdin:3
ERROR: Failed to precompile CUDSS [45b445bb-4962-46a0-9369-b4df9d0f772e] to "C:\Users\65171\.julia\compiled\v1.9\CUDSS\jl_2681.tmp".
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:2300
[3] compilecache
@ .\loading.jl:2167 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1805
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1660
[6] macro expansion
@ .\loading.jl:1648 [inlined]
[7] macro expansion
@ .\lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1611
[9] eval
@ .\boot.jl:370 [inlined]
[10] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1903
I am using a 3060TI and running on VSCode. My Julia version is 1.9.3. Thank you!

@JerryGHT04
Copy link
Author

It turned out to be a bad julia environment. Thank you

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