-
Notifications
You must be signed in to change notification settings - Fork 6
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
Arguments check in COO input #104
Comments
Also is it correct and intentional that duplicate COO entries are not accepted by QRMumps? |
this variant of qrm_spmat_init does not correspond to any qr_mumps routine but is defined QRMumps.jl/src/wrapper/qr_mumps_api.jl Line 68 in e458114
However I am not sure this should be fixed. In this case qr_mumps should consider the last two coefficients as out-of-bounds and ignore them. |
@dpo yes, they are accepted. They are added when frontal matrices are assembled during the factorization. Are you getting some inconsistent behavior? |
Can you try with the C interface but passing through the Julia interface? |
yes, I can reproduce the error. I am supposed to see messages printed within the qr_mumps code? for example I have a write statement inside qrm_spfct_init (where no error occurs) but it doesn't get printed in julia |
Do you mean that an error is printed related to out-of-bound indices? |
no, I mean that I added print statements inside qr_mumps to see how far the execution gets but the messages are not printed when I run qr_mumps from within julia. Actually I am not 100% sure I am really using the qr_mumps I have manually built. All I have to do is
before launching Julia, right? |
It's right Alfredo, you can check what is installed with force_recompile(package_name::String) = Base.compilecache(Base.identify_package(package_name))
force_recompile("QRMumps")
using QRMumps
QRMumps.QRMUMPS_INSTALLATION |
I think so. You can also check that In my view, it would be more useful to users if out-of-bound indices raised an error instead of being silently ignore. But I could easily add that to the Julia interface if you think it doesn’t belong in the Fortran library. |
ok, I forced the recompilation and verified that using QRMumps, DelimitedFiles
m = 361
n = 802
rows = readdlm("rows.txt",Int32)[:]
cols = readdlm("cols.txt",Int32)[:]
vals = readdlm("vals.txt")[:]
spmat = qrm_spmat_init(m,n,rows,cols,vals; sym=false)
spfct = qrm_spfct_init(spmat)
qrm_analyse!(spmat, spfct; transp='t') and it goes to completion without any error. With the YGGDRASIL install, instead, I have
With the custom installation though I have another strange behavior: as soon as I execute |
The call to I do it automatically with the Yggdrasil installation because It's the sequential version and I know the number of CPU (one) and GPU (zero). |
The following code works
but shouldn’t.
Where should the argument check happen? In Julia or in Fortran?
@abuttari
The text was updated successfully, but these errors were encountered: