[Trilinos-Users] Tpetra::Vector::{replace, sumInto}GlobalValue() crashes
Baker, Christopher G.
bakercg at ornl.gov
Wed Aug 18 18:45:41 MDT 2010
My apologies, Nico. You are correct; in both cases, local/global replace/sum works only on entries on the node. The only difference is a translation between local and global, as you correctly surmised. I have added a note to this effect in the documentation of these class methods.
If you want to Tpetra to handle the communication for you, I would point you towards the import/export capability supported by Vector and MultiVector.
Chris
On 8/18/10 7:11 PM, "Nico Schlömer" <nico.schloemer at ua.ac.be> wrote:
Okay so,
I noticed that guarding the {replace, sumInto}GlobalValue() like
===================== *snip* =====================
if ( map->getLocalElement(i0) != Teuchos::OrdinalTraits<ORD>::invalid()
)
x->replaceGlobalValue( i0, val );
===================== *snap* =====================
makes the the corruption go away, indicating that the only thing
{replace, sumInto}GlobalValue() does for me is calling getLocalElement()
on the map before insertion.
Fair enough, I'm gonna need to make sure then that the corresponding
map allows access to this particular element.
Cheers,
Nico
On Wed, 18 Aug 2010 18:36:24 -0400, Nico Schlömer
<nico.schloemer at ua.ac.be> wrote:
> Hi,
>
> I'm experiencing some ungraceful crashes here using either of
>
> Tpetra::Vector::replaceGlobalValue()
> Tpetra::Vector::sumIntoGlobalValue()
>
> with something like
>
> ============================== *snip* ==============================
> *** glibc detected ***
> ../build/mpi/executables/piro-driver/piro-driver.exe: double free or
> corruption (out): 0x00000000028271c0 ***
> ======= Backtrace: =========
> /lib/libc.so.6(+0x72966)[0x7f2cefbcb966]
> /lib/libc.so.6(cfree+0x6c)[0x7f2cefbd071c]
> [...]
> ============================== *snap* ==============================
>
> Their local equivalents work all right.
>
> This is with Trilinos 10.4 on a simple two core build, openmpi 1.4.1,
> GCC 4.4.3.
>
> Anyone with similar experiences?
>
> Cheers,
> Nico
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> http://software.sandia.gov/mailman/listinfo/trilinos-users
_______________________________________________
Trilinos-Users mailing list
Trilinos-Users at software.sandia.gov
http://software.sandia.gov/mailman/listinfo/trilinos-users
More information about the Trilinos-Users
mailing list