CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Mesh decomposition using Metis 5.1.0

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2017, 09:33
Default Mesh decomposition using Metis 5.1.0
  #1
New Member
 
Ravi
Join Date: May 2014
Posts: 2
Rep Power: 0
raviojha23 is on a distinguished road
I am trying to decompose a graph using gpmetis. My objective is to give weights to each of the partitions such that total mpi communication for each node is as close as possible.

My content of tpwgts file is
0=0.125
1=0.10
2=0.15
3=0.125
4=0.12
5=0.125
6=0.13
7=0.125

My command to execute metis:
metis-5.1.0/bin/gpmetis -tpwgts=tpwgts -contig Partitions 8

When weights are applied using -tpwgts I get the following error, any help is appreciated:

metis-5.1.0/bin/gpmetis -tpwgts=tpwgts -contig Partitions 8
*** Error in `metis-5.1.0/bin/gpmetis': free(): invalid size: 0x000000000177dbd0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7c619)[0x2b1c72895619]
metis-5.1.0/bin/gpmetis(gk_free+0x2f)[0x40ffff]
metis-5.1.0/bin/gpmetis(libmetis__rpqFree+0x1a)[0x416e8a]
metis-5.1.0/bin/gpmetis(libmetis__rpqDestroy+0x13)[0x416eb3]
metis-5.1.0/bin/gpmetis(libmetis__FM_2WayCutRefine+0x862)[0x431dc2]
metis-5.1.0/bin/gpmetis(libmetis__Refine2Way+0x54)[0x429464]
metis-5.1.0/bin/gpmetis(libmetis__MultilevelBisect+0xb4)[0x4281b4]
metis-5.1.0/bin/gpmetis(libmetis__MlevelRecursiveBisection+0xd5)[0x428875]
metis-5.1.0/bin/gpmetis(libmetis__MlevelRecursiveBisection+0x299)[0x428a39]
metis-5.1.0/bin/gpmetis(METIS_PartGraphRecursive+0x16f)[0x428c0f]
metis-5.1.0/bin/gpmetis(libmetis__InitKWayPartitioning+0x182)[0x41a192]
metis-5.1.0/bin/gpmetis(libmetis__MlevelKWayPartitioning+0x11b)[0x41a2db]
metis-5.1.0/bin/gpmetis(METIS_PartGraphKway+0x1ff)[0x41a5ef]
metis-5.1.0/bin/gpmetis(main+0x3ab)[0x408bab]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x2b1c7283ac05]
metis-5.1.0/bin/gpmetis[0x408d79]
======= Memory map: ========
00400000-00445000 r-xp 00000000 00:29 3459292740 metis-5.1.0/bin/gpmetis
00644000-00648000 rw-p 00044000 00:29 3459292740 metis-5.1.0/bin/gpmetis
01741000-01813000 rw-p 00000000 00:00 0 [heap]
2b1c722f3000-2b1c72314000 r-xp 00000000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72314000-2b1c72317000 rw-p 00000000 00:00 0
2b1c7232d000-2b1c72337000 rw-p 00000000 00:00 0
2b1c72514000-2b1c72515000 r--p 00021000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72515000-2b1c72516000 rw-p 00022000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72516000-2b1c72517000 rw-p 00000000 00:00 0
2b1c72517000-2b1c72618000 r-xp 00000000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72618000-2b1c72817000 ---p 00101000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72817000-2b1c72818000 r--p 00100000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72818000-2b1c72819000 rw-p 00101000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72819000-2b1c729d1000 r-xp 00000000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c729d1000-2b1c72bd1000 ---p 001b8000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd1000-2b1c72bd5000 r--p 001b8000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd5000-2b1c72bd7000 rw-p 001bc000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd7000-2b1c72bdc000 rw-p 00000000 00:00 0
2b1c72bdc000-2b1c72bf1000 r-xp 00000000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72bf1000-2b1c72df0000 ---p 00015000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72df0000-2b1c72df1000 r--p 00014000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72df1000-2b1c72df2000 rw-p 00015000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c74000000-2b1c74021000 rw-p 00000000 00:00 0
2b1c74021000-2b1c78000000 ---p 00000000 00:00 0
7ffc1535e000-7ffc1537f000 rw-p 00000000 00:00 0 [stack]
7ffc1539c000-7ffc1539e000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
*** Error in `metis-5.1.0/bin/gpmetis': free(): invalid size: 0x000000000177dbd0 ***
************************************************** ****************************
METIS 5.0 Copyright 1998-13, Regents of the University of Minnesota
(HEAD: , Built on: Jan 16 2017, 05:51:43)
size of idx_t: 64bits, real_t: 32bits, idx_t *: 64bits

Graph Information -----------------------------------------------------------
Name: Partitions, #Vertices: 544, #Edges: 3689, #Parts: 8

Options ---------------------------------------------------------------------
ptype=kway, objtype=cut, ctype=shem, rtype=greedy, iptype=metisrb
dbglvl=0, ufactor=1.030, no2hop=NO, minconn=NO, contig=YES, nooutput=NO
seed=-1, niter=10, ncuts=1
Direct k-way Partitioning ---------------------------------------------------
metis-5.1.0/bin/gpmetis(libmetis__MlevelKWayPartitioning+0x11b)[0x41a2db]
metis-5.1.0/bin/gpmetis(METIS_PartGraphKway+0x1ff)[0x41a5ef]
metis-5.1.0/bin/gpmetis(main+0x3ab)[0x408bab]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x2b1c7283ac05]
metis-5.1.0/bin/gpmetis[0x408d79]
======= Memory map: ========
00400000-00445000 r-xp 00000000 00:29 3459292740 metis-5.1.0/bin/gpmetis
00644000-00648000 rw-p 00044000 00:29 3459292740 metis-5.1.0/bin/gpmetis
01741000-01813000 rw-p 00000000 00:00 0 [heap]
2b1c722f3000-2b1c72314000 r-xp 00000000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72314000-2b1c72316000 rw-p 00000000 00:00 0
2b1c72317000-2b1c72318000 rw-p 00000000 00:00 0
2b1c7232d000-2b1c72337000 rw-p 00000000 00:00 0
2b1c72514000-2b1c72515000 r--p 00021000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72515000-2b1c72516000 rw-p 00022000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72516000-2b1c72517000 rw-p 00000000 00:00 0
2b1c72517000-2b1c72618000 r-xp 00000000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72618000-2b1c72817000 ---p 00101000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72817000-2b1c72818000 r--p 00100000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72818000-2b1c72819000 rw-p 00101000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72819000-2b1c729d1000 r-xp 00000000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c729d1000-2b1c72bd1000 ---p 001b8000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd1000-2b1c72bd5000 r--p 001b8000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd5000-2b1c72bd7000 rw-p 001bc000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd7000-2b1c72bdc000 rw-p 00000000 00:00 0
2b1c72bdc000-2b1c72bf1000 r-xp 00000000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72bf1000-2b1c72df0000 ---p 00015000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72df0000-2b1c72df1000 r--p 00014000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72df1000-2b1c72df2000 rw-p 00015000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c74000000-2b1c74021000 rw-p 00000000 00:00 0
2b1c74021000-2b1c78000000 ---p 00000000 00:00 0
7ffc1535e000-7ffc1537f000 rw-p 00000000 00:00 0 [stack]
7ffc1539c000-7ffc1539e000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
*** Error in `metis-5.1.0/bin/gpmetis': free(): invalid size: 0x000000000177d9d0 ***
======= Backtrace: =========
/lib64/libc.so.6(+0x7c619)[0x2b1c72895619]
metis-5.1.0/bin/gpmetis(gk_gkmcorePop+0x36)[0x42a186]
metis-5.1.0/bin/gpmetis(gk_malloc_cleanup+0x2e)[0x40ff8e]
metis-5.1.0/bin/gpmetis(METIS_PartGraphKway+0x8f)[0x41a47f]
metis-5.1.0/bin/gpmetis(main+0x3ab)[0x408bab]
/lib64/libc.so.6(__libc_start_main+0xf5)[0x2b1c7283ac05]
metis-5.1.0/bin/gpmetis[0x408d79]
======= Memory map: ========
00400000-00445000 r-xp 00000000 00:29 3459292740 metis-5.1.0/bin/gpmetis
00644000-00648000 rw-p 00044000 00:29 3459292740 metis-5.1.0/bin/gpmetis
01741000-01813000 rw-p 00000000 00:00 0 [heap]
2b1c722f3000-2b1c72314000 r-xp 00000000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72314000-2b1c72317000 rw-p 00000000 00:00 0
2b1c7232d000-2b1c72337000 rw-p 00000000 00:00 0
2b1c72514000-2b1c72515000 r--p 00021000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72515000-2b1c72516000 rw-p 00022000 08:06 271410 /usr/lib64/ld-2.17.so
2b1c72516000-2b1c72517000 rw-p 00000000 00:00 0
2b1c72517000-2b1c72618000 r-xp 00000000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72618000-2b1c72817000 ---p 00101000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72817000-2b1c72818000 r--p 00100000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72818000-2b1c72819000 rw-p 00101000 08:06 271512 /usr/lib64/libm-2.17.so
2b1c72819000-2b1c729d1000 r-xp 00000000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c729d1000-2b1c72bd1000 ---p 001b8000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd1000-2b1c72bd5000 r--p 001b8000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd5000-2b1c72bd7000 rw-p 001bc000 08:06 271227 /usr/lib64/libc-2.17.so
2b1c72bd7000-2b1c72bdc000 rw-p 00000000 00:00 0
2b1c72bdc000-2b1c72bf1000 r-xp 00000000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72bf1000-2b1c72df0000 ---p 00015000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72df0000-2b1c72df1000 r--p 00014000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c72df1000-2b1c72df2000 rw-p 00015000 08:06 271278 /usr/lib64/libgcc_s-4.8.5-20150702.so.1
2b1c74000000-2b1c74021000 rw-p 00000000 00:00 0
2b1c74021000-2b1c78000000 ---p 00000000 00:00 0
7ffc1535e000-7ffc1537f000 rw-p 00000000 00:00 0 [stack]
7ffc1539c000-7ffc1539e000 r-xp 00000000 00:00 0 [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0 [vsyscall]
raviojha23 is offline   Reply With Quote

Reply

Tags
decomposition, metis, weight

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
y+ = 1 boundary layer mesh with snappyHexMesh Arzed23 OpenFOAM Running, Solving & CFD 6 November 23, 2022 15:15
[ICEM] surface mesh merging problem everest ANSYS Meshing & Geometry 44 April 14, 2016 06:41
[snappyHexMesh] SHM problem : KVLCC2 with appendage mesh sc.park OpenFOAM Meshing & Mesh Conversion 1 March 13, 2016 13:28
Problem with dynamic mesh and mesh decomposition Zyryx OpenFOAM Running, Solving & CFD 0 March 9, 2015 06:08
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry pizzaspinate OpenFOAM Meshing & Mesh Conversion 1 February 25, 2015 07:05


All times are GMT -4. The time now is 05:53.