Author Topic: partition: parfeap + parmetis linking error  (Read 7356 times)

pjarz

  • Jr. Member
  • **
  • Posts: 12
partition: parfeap + parmetis linking error
« on: January 24, 2014, 04:06:36 AM »
Hi,

I'm trying to compile partition program of parfeap (with command "make partition"), but I get some strange errors (one of them):

petsc/gnu-opt/lib/libparmetis.a(selectq.c.o): In function `libparmetis__Mc_DynamicSelectQueue':
selectq.c:(.text+0x182): undefined reference to `gk_mcorePush'
selectq.c:(.text+0x237): undefined reference to `libmetis__rkvsorti'
selectq.c:(.text+0x247): undefined reference to `libmetis__iset'
selectq.c:(.text+0x2d8): undefined reference to `gk_mcorePop'
selectq.c:(.text+0x615): undefined reference to `libmetis__rkvsorti'
collect2: ld returned 1 exit status
make: [partition] Error 1 (ignored)

 
there is much more, but all look pretty similar. I'm guessing it's something with linking parmetis with partition program. I'm feeling it's something obvious, but I can't figure out what that is. I'm using feap 8.3 and petsc 3.3 (configured with options --download-metis --download-parmetis).

Any suggestions?

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: partition: parfeap + parmetis linking error
« Reply #1 on: January 24, 2014, 10:56:46 AM »
looks like your PETSc environment variables are not correctly set: PETSC_DIR and PESTC_ARCH

pjarz

  • Jr. Member
  • **
  • Posts: 12
Re: partition: parfeap + parmetis linking error
« Reply #2 on: January 26, 2014, 03:46:44 AM »
Hi,

I think it's something different, because I used Parfeap with regular METIS and it worked fine. I solved also some simple problems using different solvers and preconditioners from PETSc via Parfeap and this also worked fine.

pjarz

  • Jr. Member
  • **
  • Posts: 12
Re: partition: parfeap + parmetis linking error
« Reply #3 on: January 31, 2014, 03:27:20 AM »
I got it working.

Help came from METIS forum:

http://glaros.dtc.umn.edu/gkhome/node/832

It apears that it was problem in METIS 4.0.2 and 4.0.3 - that is used by PETSc 3.3. I used PETSc 3.4.3 which uses Metis 5.0.2 and the problem was solved.