[petsc-users] Question on writing a large matrix

S V N Vishwanathan vishy at stat.purdue.edu
Thu Apr 21 09:39:40 CDT 2011


Hi

I am using the attached code to convert a matrix from a rather
inefficient ascii format (each line is a row and contains a series of
idx:val pairs) to the PETSc binary format. Some of the matrices that I
am working with are rather huge (50GB ascii file) and cannot be
assembled on a single processor. When I use the attached code the matrix
assembly across machines seems to be fairly fast. However, dumping the
assembled matrix out to disk seems to be painfully slow. Any suggestions
on how to speed things up will be deeply appreciated.

vishy

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libsvm-to-binary.cpp
Type: application/octet-stream
Size: 15762 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110421/6a12badf/attachment-0001.obj>


More information about the petsc-users mailing list