[Trilinos-Users] [EXTERNAL] CrsMatrix Transpose

Andrey Prokopenko aprokop at sandia.gov
Mon Feb 23 10:10:07 MST 2015


Hi Pate,

Which compiler do you use? We've recently fixed some errors with gcc/4.9 
and later.

-Andrey
On 02/22/2015 08:26 PM, Pate Motter wrote:
> Hi,
>
> I am currently having segmentation faults when transposing a CrsMatrix 
> using the RowMatrixTransposer method mentioned in a previous email. 
> For my demo it it works for the serial version as well as mpiruns with 
> 2 and 3 nodes. However, when running at > 3 the program segfaults at 
> createTranspose().
>
> It's completely possible that I may not have the problem set up correctly.
>
> int main(int argc, char *argv[]) {
> Teuchos::GlobalMPISession mpiSession(&argc, &argv);
> Platform& platform = Tpetra::DefaultPlatform::getDefaultPlatform();
> RCP<const Teuchos::Comm<int> > comm = rcp (new Teuchos::MpiComm<int> 
> (MPI_COMM_WORLD));
> RCP<NT> node = platform.getNode();
>
> std::string filename("../large.mtx");
> RCP<MAT> A, B;
> A = Tpetra::MatrixMarket::Reader<MAT>::readSparseFile(filename, comm, 
> node, true);
> Tpetra::RowMatrixTransposer<ST, LO, GO, NT> transposer(A);
> B = transposer.createTranspose();
> }
>
>
> Thank you,
> Pate Motter
>
>
> _______________________________________________
> Trilinos-Users mailing list
> Trilinos-Users at software.sandia.gov
> https://software.sandia.gov/mailman/listinfo/trilinos-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://software.sandia.gov/pipermail/trilinos-users/attachments/20150223/55bf6d6c/attachment.html>


More information about the Trilinos-Users mailing list