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: Phil Miller <mille121 AT illinois.edu>
  • To: Laércio Lima Pilla <llpilla AT inf.ufrgs.br>, Christiane Pousa <Christiane.Pousa AT imag.fr>
  • Cc: Charm Mailing List <charm AT cs.illinois.edu>
  • Subject: Re: [charm] [ppl] Problems compiling MetisLB
  • Date: Thu, 17 Feb 2011 18:02:25 -0600
  • List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
  • List-id: CHARM parallel programming system <charm.cs.uiuc.edu>

Following up on this, I've made the process that Abhinav gave
instructions for in his previous message mostly automatic. Currently,
the code is on the branch 'metis', but I plan to merge it to the
mainline tomorrow.

Instead of what Abhinav said below, you will be able to just say
./build charm++ net-linux-x86_64
--with-metis=/path/to/directory/containing/libmetis.a/
And the build system will activate compilation of MetisLB and TeamLB
and linkage of libmetis.a automatically.

We'll try to do the same about Scotch soon.

Phil

On Mon, Feb 14, 2011 at 21:20, 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
>
>





Archive powered by MHonArc 2.6.16.

Top of Page