| ea500dcf | 25-Mar-2021 |
Richard Tran Mills <rmills@rmills.org> |
Prevent unsafe setting of inode.use to true in MatBindToCPU() for cuSPARSE and ViennaCL matrices.
This fixes an issue caused by Stefano's commit c58ef05e, "MatInode: set it to false when using devic
Prevent unsafe setting of inode.use to true in MatBindToCPU() for cuSPARSE and ViennaCL matrices.
This fixes an issue caused by Stefano's commit c58ef05e, "MatInode: set it to false when using device matrices", which introduced flipping the inode.use flag inside MatBindToCPU_SeqAIJCUSPARSE() and MatBindToCPU_SeqAIJViennaCL(). I have found cases in which this would cause "Corrupted Petsc object, Missing Inode Structure" errors. Only flipping inode.use to true if inode.size is nonzero eliminates these errors.
show more ...
|