[petsc-users] [petsc-maint #107932] run a simple example ex19 in src/snes/examples/tutorials

Xiangze Zeng zengshixiangze at 163.com
Thu Mar 15 08:00:54 CDT 2012


Hi, 
When i run my code today, it appears "out of memory" which not happened last time. The following is the error message:


[0]PETSC ERROR: Out of memory. This could be due to allocating
[0]PETSC ERROR: too large an object or bleeding by not properly
[0]PETSC ERROR: destroying unneeded objects.
[0]PETSC ERROR: Memory allocated 5659280320 Memory used by process 5719199744
[0]PETSC ERROR: Try running with -malloc_dump or -malloc_log for info.
[0]PETSC ERROR: Memory requested 18446744070677811200!
[0]PETSC ERROR: ----------------------------------------


It happens at the process of creating the matrices. 
Another problem, when I add -log_summary, there is no message about the performance appearing.
What's wrong?


Thank you.
Zeng

在 2012-03-13 22:36:46,"Jed Brown" <jedbrown at mcs.anl.gov> 写道:

2012/3/13 Xiangze Zeng <zengshixiangze at 163.com>

I do set preallocation after setting the matrix type.


Run with -info to make sure it is used (i.e. that the matrix type isn't changed later). Note that PCSOR does not run on the GPU, so it will do lots of copying (run with -log_summary to see). You should start by running PCJACOBI on the GPU.
 
 
Zeng

在 2012-03-13 22:14:12,"Jed Brown" <jedbrown at mcs.anl.gov> 写道:


2012/3/13 Xiangze Zeng <zengshixiangze at 163.com>
At the beginning and end of  the codes for setting the matrices values, I add "printf", and compute the time of this period. It is much longer than that when I don't use the GPU. I just guess the time is used for copping data. My PCTYPE is sor. And 2000 iterations.  Do you have any suggestion about this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120315/bed334ad/attachment-0001.htm>


More information about the petsc-users mailing list