[petsc-dev] partitioners that use bullshit random numbers

Matthew Knepley knepley at gmail.com
Mon Feb 6 08:05:18 CST 2017


On Sun, Feb 5, 2017 at 9:40 PM, Barry Smith <bsmith at mcs.anl.gov> wrote:

>
>    Is there any way we can substitute a deterministic random number
> generators for the bullshit partitioning packages that insist on using
> "system" non-portable random number generators?  We should have tests that
> use metis/parmetis and chaco or whatever but we shouldn't have to deal with
> their bad decisions.  Matt, what horrible partitioning is being used here?
>

I put in something that accepts fixed partitions, and it should be used for
all parallel tests. I converted a bunch of them already, but its
possible I missed this one.

The workflow for conversion is

  a) Run the test with the -partition_view flag

  b) The partition of cells prints out at the top

  c) Copy that partition into a struct with the number of cells in one
array and the cells numbers in another. You can see an example in Plex
tests ex1.

  d) Create a Shell Partitioner. Again refer to ex1

  Matt


>   Barry
>
> not ok diff-snes_tutorials-ex12_tri_bddc
> #       2,12c2,11
> #       <     0 KSP Residual norm 11.5911
> #       <     1 KSP Residual norm 0.419162
> #       <     2 KSP Residual norm 0.0466633
> #       <     3 KSP Residual norm 0.00282513
> #       <     4 KSP Residual norm 0.000140711
> #       <     5 KSP Residual norm 2.35332e-05
> #       <     6 KSP Residual norm 8.28552e-07
> #       <     7 KSP Residual norm 1.43643e-08
> #       <     8 KSP Residual norm 2.827e-10
> #       <   Linear solve converged due to CONVERGED_RTOL iterations 8
> #       <   1 SNES Function norm 7.836e-10
> #       ---
> #       >     0 KSP Residual norm 11.6648
> #       >     1 KSP Residual norm 0.443991
> #       >     2 KSP Residual norm 0.0393777
> #       >     3 KSP Residual norm 0.00187772
> #       >     4 KSP Residual norm 0.000140435
> #       >     5 KSP Residual norm 1.08843e-05
> #       >     6 KSP Residual norm 2.87537e-07
> #       >     7 KSP Residual norm 5.20043e-09
> #       >   Linear solve converged due to CONVERGED_RTOL iterations 7
> #       >   1 SNES Function norm 1.59735e-08
> #       18c17
> #       <   total number of linear solver iterations=8
> #       ---
> #       >   total number of linear solver iterations=7
> #       76,77c75,76
> #       <       BDDC: Global dofs sizes: all 225 interface 43 coarse 7
> #       <       BDDC: Coarsening ratios: all/coarse 32 interface/coarse 6
> #       ---
> #       >       BDDC: Global dofs sizes: all 225 interface 57 coarse 9
> #       >       BDDC: Coarsening ratios: all/coarse 25 interface/coarse 6
> #       81,84c80,83
> #       <       BDDC: Interior  dofs   :        21      49      36
> #       <       BDDC: Interface dofs   :        15      22      17
> #       <       BDDC: Primal    dofs   :        3       4       3
> #       <       BDDC: Local     dofs   :        36      64      54
> #       ---
> #       >       BDDC: Interior  dofs   :        21      42      33
> #       >       BDDC: Interface dofs   :        15      36      23
> #       >       BDDC: Primal    dofs   :        3       6       4
> #       >       BDDC: Local     dofs   :        36      78      57
> #       99,100c98,99
> #       <         rows=7, cols=7
> #       <         total: nonzeros=35, allocated nonzeros=43
> #       ---
> #       >         rows=9, cols=9
> #       >         total: nonzeros=61, allocated nonzeros=68
> #       115c114
> #       <                 factor fill ratio given 5., needed 1.17143
> #       ---
> #       >                 factor fill ratio given 5., needed 1.13115
> #       119c118
> #       <                       rows=7, cols=7
> #       ---
> #       >                       rows=9, cols=9
> #       121c120
> #       <                       total: nonzeros=41, allocated nonzeros=41
> #       ---
> #       >                       total: nonzeros=69, allocated nonzeros=69
> #       127,128c126,127
> #       <                 rows=7, cols=7
> #       <                 total: nonzeros=35, allocated nonzeros=35
> #       ---
> #       >                 rows=9, cols=9
> #       >                 total: nonzeros=61, allocated nonzeros=61
> #       130c129
> #       <                   not using I-node routines
> #       ---
> #       >                   using I-node routines: found 7 nodes, limit
> used is 5
> #       135c134
> #       <       total: nonzeros=1585, allocated nonzeros=1764
> #       ---
> #       >       total: nonzeros=1625, allocated nonzeros=1855
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170206/4e2d847a/attachment.html>


More information about the petsc-dev mailing list