Skip to Content.
Sympa Menu

charm - Re: [charm] [ppl] Problems compiling MetisLB

charm AT lists.cs.illinois.edu

Subject: Charm++ parallel programming system

List archive

Re: [charm] [ppl] Problems compiling MetisLB


Chronological Thread 
  • From: Nikhil Jain <nikhil.life AT gmail.com>
  • To: Abhinav S Bhatele <bhatele AT illinois.edu>
  • Cc: Christiane Pousa <Christiane.Pousa AT imag.fr>, Charm Mailing List <charm AT cs.illinois.edu>
  • Subject: Re: [charm] [ppl] Problems compiling MetisLB
  • Date: Mon, 14 Feb 2011 21:39:56 -0600
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Hi Abhinav

There seems to be some issue with Scotch LB. I obtained
the following error while running a code with ScotchLB:

[0] ScotchLB started at: 3.018012. 
ERROR: graphCheck: arc data do not match
ERROR: stratParserParse: invalid method name "1", before "f{bal=0.001,move=80},org=f{bal=0.001,move=80}}}|m{type=h,vert=80,low=h{pass=10}f{bal=0.001,move=80},asc=b{bnd=1f{bal=0.001,move=80},org=f{bal=0.001,move=80}}})}"
ERROR: SCOTCH_stratGraphMap: error in mapping strategy
make: *** [test] Interrupt

--Nikhil

On Mon, Feb 14, 2011 at 9:20 PM, Abhinav S Bhatele <bhatele AT illinois.edu> wrote:
Hi Laercio,

I just checked in some changes to charm, so you'll need the development version from git.
Can you please follow these instructions and tell me if they work --

1. Compile charm indicating where Metis and Scotch are installed:

./build charm++ net-linux-x86_64 --incdir=/expand/home/bhatele/work/metis-4.0/Lib --libdir=/expand/home/bhatele/work/metis-4.0 --incdir=/expand/home/bhatele/work/scotch/scotch_5.1.10b/include --libdir=/expand/home/bhatele/work/scotch/scotch_5.1.10b/lib -j8 -O2

2. Go to net-linux-x86_64/tmp and edit Makefile_lb.sh and add MetisLB, ScotchLB to this line:
ALL_LDBS="$COMMON_LDBS $OTHER_LDBS"

Run ./Makefile_lb.sh

3. Edit MetisLB.C and ScotchLB.C to comment the include of metis.h and scotch.h respectively

4. Run make depends

5. Uncomment the lines commented in step 3 and then run:

make charm++ OPTS="-O2"

Thanks,
- Abhinav


On Mon, Feb 7, 2011 at 6:13 AM, Laércio Lima Pilla <llpilla AT inf.ufrgs.br> wrote:
Hello,

I'm having some problems compiling MetisLB. I'm using charm version 6.2.1 (60303).

When I just run make METIS on my multicore-linux64/tmp folder, I do not get any errors, but I also don't get the load balancer working.
Error when trying to compile a program with -module MetisLB:

/usr/bin/ld: cannot find -lmoduleMetisLB
collect2: ld returned 1 exit status

When I add MetisLB to the list of CommonLBs and try to make charm++ or make METIS, I get the following error:

if [ -d charmrun ] ; then ( cd charmrun ; make OPTS='' -j1 ) ; fi
if [ -f charmrun ] ; then ( cp -f charmrun ../bin ) ; fi
g++    -c -o MetisLB.o MetisLB.C
MetisLB.C:13:19: error: metis.h: Aucun fichier ou dossier de ce type <- (cannot find this file)
MetisLB.C: In member function ‘virtual void MetisLB::work(BaseLB::LDStats*)’:
MetisLB.C:76: error: ‘idxtype’ was not declared in this scope
MetisLB.C:76: error: ‘xadj’ was not declared in this scope
MetisLB.C:76: error: expected type-specifier before ‘idxtype’
MetisLB.C:76: error: expected ‘;’ before ‘idxtype’
MetisLB.C:78: error: ‘adjncy’ was not declared in this scope
MetisLB.C:78: error: expected type-specifier before ‘idxtype’
MetisLB.C:78: error: expected ‘;’ before ‘idxtype’
MetisLB.C:80: error: ‘vwgt’ was not declared in this scope
MetisLB.C:80: error: expected type-specifier before ‘idxtype’
MetisLB.C:80: error: expected ‘;’ before ‘idxtype’
MetisLB.C:82: error: ‘adjwgt’ was not declared in this scope
MetisLB.C:82: error: expected type-specifier before ‘idxtype’
MetisLB.C:82: error: expected ‘;’ before ‘idxtype’
MetisLB.C:103: error: ‘pemap’ was not declared in this scope
MetisLB.C:107: error: expected type-specifier before ‘idxtype’
MetisLB.C:107: error: expected ‘;’ before ‘idxtype’
MetisLB.C:136: error: ‘METIS_WPartGraphKway’ was not declared in this scope
MetisLB.C:139: error: ‘METIS_WPartGraphRecursive’ was not declared in this scope
MetisLB.C:146: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
MetisLB.C:147: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
MetisLB.C:148: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
MetisLB.C:149: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
MetisLB.C:160: error: type ‘<type error>’ argument given to ‘delete’, expected pointer

Any ideas of what I may be doing wrong?

Best regards,

Laércio LIMA PILLA

PhD Student at Federal University of Rio Grande do Sul (UFRGS)
Email: laercio.pilla AT inf.ufrgs.br or laercio.lima.pilla AT gmail.com 
Tel: +55 54 9973 6313
Website: www.inf.ufrgs.br/~llpilla

_______________________________________________
charm mailing list
charm AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/charm

_______________________________________________
ppl mailing list
ppl AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/ppl




--
Abhinav S Bhatele, Ph. D.
Webpage: www.bhatele.org

_______________________________________________
charm mailing list
charm AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/charm

_______________________________________________
ppl mailing list
ppl AT cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/ppl




--
"Success may ditch you most of the times, but if you ditch it once : your job is done."
Nikhil Jain
Phone:    +1-217-979-0918
Email:    nikhil.life AT gmail.com 
 




Archive powered by MHonArc 2.6.16.

Top of Page