MatSetPreallocationCOO_SeqAIJ and MatSetPreallocationCOO_MPIAIJKokkos use MatHeaderMerge() that might lose some attached containers. It could be that MatHeaderMerge() needs to be revisited to ensure attached objects are not lost.
Barry > On Mar 1, 2022, at 2:32 PM, Mark Adams <mfad...@lbl.gov> wrote: > > I have a container attached to my matrix and it seems to go away after a call > to MatSetPreallocationCOO. > Does that sound plausible?