[petsc-dev] [petsc4py] Issues with DMStag testing
Lisandro Dalcin
dalcinl at gmail.com
Sun Oct 6 04:13:53 CDT 2019
1) The tests were talking too long, so I had to reduce the number of tests.
https://bitbucket.org/petsc/petsc4py/commits/b73507143ba1f1615f76973f59ad9fb49c066d4c
Even after that change, TestDMStagCreate runs 1716 tests!! The tests
involving periodicity have been broken for a very long time without any
resolution, so I just disabled them.
2) There are memory leaks:
$ python /home/dalcinl/Devel/petsc4py-dev/test/runtests.py -i stag -v -f
TestDMStag_1D_W0_N11
[0 at kw60439] Python 2.7 (/usr/bin/python)
[0 at kw60439] PETSc 3.12.0 release (conf: 'arch-linux2-c-debug')
[0 at kw60439] petsc4py 3.11.0
(/home/dalcinl/Devel/petsc4py-dev/build/lib.linux-x86_64-2.7/petsc4py)
testCoordinates (test_dmstag.TestDMStag_1D_W0_N11) ... ok
testDMDAInterface (test_dmstag.TestDMStag_1D_W0_N11) ... ok
testDof (test_dmstag.TestDMStag_1D_W0_N11) ... ok
testGetOther (test_dmstag.TestDMStag_1D_W0_N11) ... ok
testGetVec (test_dmstag.TestDMStag_1D_W0_N11) ... ok
testMigrateVec (test_dmstag.TestDMStag_1D_W0_N11) ... ok
----------------------------------------------------------------------
Ran 6 tests in 0.052s
OK
[ 0]32 bytes DMSubDomainHookAdd() line 2999 in
/home/devel/petsc/3.12/src/dm/interface/dm.c
[0] PetscMallocA() line 2999 in
/home/devel/petsc/3.12/src/sys/memory/mal.c
[0] DMSubDomainHookAdd() line 2994 in
/home/devel/petsc/3.12/src/dm/interface/dm.c
[0] DMSetCoordinates() line 5475 in
/home/devel/petsc/3.12/src/dm/interface/dm.c
[0] DMStagSetUniformCoordinatesExplicit_1d() line 75 in
/home/devel/petsc/3.12/src/dm/impls/stag/stag1d.c
[0] DMStagSetUniformCoordinatesExplicit() line 1166 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
[0] DMStagSetUniformCoordinatesProduct() line 1209 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
[0] DMStagSetUniformCoordinates() line 1127 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
[ 0]32 bytes DMCoarsenHookAdd() line 2869 in
/home/devel/petsc/3.12/src/dm/interface/dm.c
[0] PetscMallocA() line 2869 in
/home/devel/petsc/3.12/src/sys/memory/mal.c
[0] DMCoarsenHookAdd() line 2864 in
/home/devel/petsc/3.12/src/dm/interface/dm.c
[0] DMSetCoordinates() line 5475 in
/home/devel/petsc/3.12/src/dm/interface/dm.c
[0] DMStagSetUniformCoordinatesExplicit_1d() line 75 in
/home/devel/petsc/3.12/src/dm/impls/stag/stag1d.c
[0] DMStagSetUniformCoordinatesExplicit() line 1166 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
[0] DMStagSetUniformCoordinatesProduct() line 1209 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
[0] DMStagSetUniformCoordinates() line 1127 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
[ 0]288 bytes PetscObjectListAdd() line 118 in
/home/devel/petsc/3.12/src/sys/objects/olist.c
[0] PetscMallocA() line 118 in
/home/devel/petsc/3.12/src/sys/memory/mal.c
[0] PetscObjectListAdd() line 80 in
/home/devel/petsc/3.12/src/sys/objects/olist.c
[0] PetscObjectCompose_Petsc() line 651 in
/home/devel/petsc/3.12/src/sys/objects/inherit.c
[0] PetscObjectCompose() line 725 in
/home/devel/petsc/3.12/src/sys/objects/inherit.c
[0] VecSetDM() line 274 in
/home/devel/petsc/3.12/src/dm/interface/dm.c
[0] DMCreateGlobalVector_Stag() line 34 in
/home/devel/petsc/3.12/src/dm/impls/stag/stag.c
[0] DMCreateGlobalVector() line 932 in
/home/devel/petsc/3.12/src/dm/interface/dm.c
[0] DMStagSetUniformCoordinatesExplicit_1d() line 75 in
/home/devel/petsc/3.12/src/dm/impls/stag/stag1d.c
[0] DMStagSetUniformCoordinatesExplicit() line 1166 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
[0] DMStagSetUniformCoordinatesProduct() line 1209 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
[0] DMStagSetUniformCoordinates() line 1127 in
/home/devel/petsc/3.12/src/dm/impls/stag/stagutils.c
--
Lisandro Dalcin
============
Research Scientist
Extreme Computing Research Center (ECRC)
King Abdullah University of Science and Technology (KAUST)
http://ecrc.kaust.edu.sa/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20191006/4763709d/attachment.html>
More information about the petsc-dev
mailing list