Skip to content

Add the structures ILU0Info() and IC0Info() for the preconditioners - #2187

Merged
maleadt merged 2 commits into
JuliaGPU:masterfrom
amontoison:helpers_ilu0_ic0
Dec 11, 2023
Merged

maleadt merged 2 commits into
JuliaGPU:masterfrom
amontoison:helpers_ilu0_ic0

Conversation

@amontoison

Copy link
Copy Markdown
Member

The internal structure that contains the info during the computation of the preconditioner was not destroyed if a null pivot was encountered.
For CSC / CSR formats, I added structures such that we don't take care of that.
For BSR format, I destroy the structure if a null pivot is encountered, I didn't added structures because we don't use often this format...

Comment thread lib/cusparse/preconditioners.jl Outdated
@maleadt

maleadt commented Dec 5, 2023

Copy link
Copy Markdown
Member

I wonder if we should introduce syntax for this, that would allow for automatic scoped destruction (a la defer) instead of relying on the garbage collector. Maybe even just using Defer.jl? Could be done in a later PR.

For BSR format, I destroy the structure if a null pivot is encountered, I didn't added structures because we don't use often this format...

I'd prefer if we act consistently for all cases, if only to make it easier to refactor this code if e.g. switching to a Defer.jl-like mechanism.

@maleadt
maleadt merged commit 4f29369 into JuliaGPU:master Dec 11, 2023
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 this pull request may close these issues.

2 participants