-
Notifications
You must be signed in to change notification settings - Fork 1
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
Incorrect result when using CUDSS #52
Comments
@ovanvincq I am unable to load the matrix when I tried to reproduce the issue. julia> A_cpu = load("./matrix.jld2","A")
Error encountered while load FileIO.File{FileIO.DataFormat{:JLD2}, String}("./matrix.jld2").
Fatal error:
ERROR: JLD2.InvalidDataException("Did not find a Superblock.")
Stacktrace:
[1] find_superblock(f::JLD2.JLDFile{JLD2.MmapIO})
@ JLD2 ~/.julia/packages/JLD2/MYcfT/src/superblock.jl:102
[2] load_file_metadata!(f::JLD2.JLDFile{JLD2.MmapIO})
@ JLD2 ~/.julia/packages/JLD2/MYcfT/src/JLD2.jl:403
[3] jldopen(fname::String, wr::Bool, create::Bool, truncate::Bool, iotype::Type{…}; fallback::Type{…}, compress::Bool, mmaparrays::Bool, typemap::Dict{…}, parallel_read::Bool)
@ JLD2 ~/.julia/packages/JLD2/MYcfT/src/JLD2.jl:392
[4] jldopen
@ ~/.julia/packages/JLD2/MYcfT/src/JLD2.jl:312 [inlined]
[5] #jldopen#14
@ ~/.julia/packages/JLD2/MYcfT/src/JLD2.jl:455 [inlined]
[6] jldopen
@ ~/.julia/packages/JLD2/MYcfT/src/JLD2.jl:449 [inlined]
[7] fileio_load(f::FileIO.File{FileIO.DataFormat{:JLD2}, String}, varname::String; kwargs::@Kwargs{})
@ JLD2 ~/.julia/packages/JLD2/MYcfT/src/fileio.jl:54
[8] fileio_load(f::FileIO.File{FileIO.DataFormat{:JLD2}, String}, varname::String)
@ JLD2 ~/.julia/packages/JLD2/MYcfT/src/fileio.jl:53
[9] #invokelatest#2
@ ./essentials.jl:892 [inlined]
[10] invokelatest
@ ./essentials.jl:889 [inlined]
[11] action(call::Symbol, libraries::Vector{Union{…}}, file::FileIO.Formatted, args::String; options::@Kwargs{})
@ FileIO ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:219
[12] action
@ ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:196 [inlined]
[13] action
@ ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:185 [inlined]
[14] load(file::String, args::String; options::@Kwargs{})
@ FileIO ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:113
[15] load(file::String, args::String)
@ FileIO ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:109
[16] top-level scope
@ REPL[23]:1
Stacktrace:
[1] handle_error(e::JLD2.InvalidDataException, q::Base.PkgId, bt::Vector{Union{Ptr{Nothing}, Base.InterpreterIP}})
@ FileIO ~/.julia/packages/FileIO/xOKyx/src/error_handling.jl:61
[2] handle_exceptions(exceptions::Vector{Tuple{Any, Union{Base.PkgId, Module}, Vector}}, action::String)
@ FileIO ~/.julia/packages/FileIO/xOKyx/src/error_handling.jl:56
[3] action(call::Symbol, libraries::Vector{Union{…}}, file::FileIO.Formatted, args::String; options::@Kwargs{})
@ FileIO ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:228
[4] action
@ ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:196 [inlined]
[5] action
@ ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:185 [inlined]
[6] load(file::String, args::String; options::@Kwargs{})
@ FileIO ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:113
[7] load(file::String, args::String)
@ FileIO ~/.julia/packages/FileIO/xOKyx/src/loadsave.jl:109
[8] top-level scope
@ REPL[23]:1
Some type information was truncated. Use `show(err)` to see complete types. |
@amontoison Sorry, the link above was the link to file desciption and not to the raw jld2 file. The correct link is : https://github.com/ovanvincq/test_cudss/raw/main/matrix.jld2 I also uploaded the matrix in the MatrixMarket format: https://github.com/ovanvincq/test_cudss/raw/main/matrix.mtx |
@ovanvincq I confirm that I can reproduce the issue. |
@ovanvincq I got some feedback from NVIDIA, and the LU factorization is not robust enough for your problem. |
@amontoison Thanks for this feedback.
gives |
I tried using CUDSS.jl with a sparse matrix coming from an electromagnetism problem (using the FEM method)
The sparse matrix is stored in a JLD2 file that can be download here:
https://github.com/ovanvincq/test_cudss/blob/main/matrix.jld2https://github.com/ovanvincq/test_cudss/raw/main/matrix.jld2CUDSS (v0.3.1) fails to solve a linear system with this matrix.
When using the GPU (RTX3060Ti or GV100):
returns
norm(r_gpu)=7E17
When using the CPU:
returns
norm(r_cpu)=9E-8
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: