charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: Phil Miller <mille121 AT illinois.edu>
- To: "ion.mironescu" <ion.mironescu AT ulbsibiu.ro>
- Cc: charm AT cs.uiuc.edu
- Subject: Re: [charm] problems with compiling charm++ programs on Cell
- Date: Wed, 23 Jun 2010 10:17:00 -0500
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
On Wed, Jun 23, 2010 at 08:48, ion.mironescu
<ion.mironescu AT ulbsibiu.ro>
wrote:
> Hello,
>
> I use charm 6.2.0 downloaded from the web site on a QS22 blade with Linux
Which build target of Charm did you download or compile? It should
look something like "net-linux-x86_64".
> Building environment:
>
> gcc using built-in specs.
> Target: ppc64-redhat-linux
> Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
> --infodir=/usr/share/info --enable-shared --enable-threads=posix
> --enable-checking=release --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-libgcj-multifile
> --enable-languages=c,c++,objc,obj-c++,java,fortran --enable-java-awt=gtk
> --disable-dssi --enable-plugin
> --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --enable-secureplt
> --with-long-double-128 --host=ppc64-redhat-linux --build=ppc64-redhat-linux
> --target=ppc64-redhat-linux --with-cpu=default32
> Thread model: posix
> gcc version 4.1.2 20080704 (Red Hat 4.1.2-44)
>
> Linux version 2.6.18-128.7.1.el5
>
> Cell Sdk 3.1
>
> i need help in two issues (possibly corelated).
>
> 1) the first try to build the charm++ core failed signaling an error in
> simd.h at line 689
>
> inline veclf vinsertlf(veclf v, const double s, const int i) { return
> vec_insert(s,v,i); }
>
> invalid parameter for Altivec intrinsic
>
> i replaced that line with
>
> inline veclf vinsertlf(veclf v, const double s, const int i) { veclf r =
> v; double* rPtr = ( double*)(&r); rPtr[i] = s; return r; }
>
> and the build ended wit the succes message
>
> Is my replacement correct and safe?
I'll try to check with the author of that code.
> 2) when i try to compile anyting from the test or examples directories i
> received this error messages
>
> ./../../bin/charmc -language charm++ -o hello hello.o -lm
> main__funcLookup__.genSPECode.o: In function `__vsqrtf':
> main__funcLookup__.genSPECode.c:(.text+0x1bf4): undefined reference to
> `sqrt'
> main__funcLookup__.genSPECode.c:(.text+0x1c20): undefined reference to
> `sqrt'
> main__funcLookup__.genSPECode.c:(.text+0x1c4c): undefined reference to
> `sqrt'
> main__funcLookup__.genSPECode.c:(.text+0x1c78): undefined reference to
> `sqrt'
> main__funcLookup__.genSPECode.o: In function `__vsqrtlf':
> main__funcLookup__.genSPECode.c:(.text+0x1cc8): undefined reference to
> `sqrt'
> main__funcLookup__.genSPECode.o:main__funcLookup__.genSPECode.c:(.text+0x1cec):
> more undefined references to `sqrt' follow
> collect2: ld returned 1 exit status
> Fatal Error by charmc in directory
> /export/home/ncit-cluster/ncit/trainingintel/mironescu/charm-6.2.0/tests/charm++/simplearrayhello
> Command spu-gcc -Wl,-N -L../../../bin/../lib -o
> main__funcLookup__.genSPECode main__funcLookup__.genSPECode.o -lcellspu
> returned error code 1
> charmc exiting...
>
> Normaly sqrt should be defined in math.h wich is not anymore included for
> Cell in the same simd.h ( where the offending function _vsqrt is also
> defined)
>
> I tried to include math.h and to link with the math library (-lm) but
> nothing works.
>
> It seems to be more a link as an include probleme but i don't have a clue.
This is purely a library linking error, not a header inclusion error.
I don't know if this is a good solution, but in the file conv-mach.sh,
you might try adding -lm to the line defining CMK_SPERT_LIBS, so that
the SPE linker knows to pull that in.
Phil
- [charm] problems with compiling charm++ programs on Cell, ion.mironescu, 06/23/2010
- Re: [charm] problems with compiling charm++ programs on Cell, Phil Miller, 06/23/2010
- Re: [charm] problems with compiling charm++ programs on Cell, ion.mironescu, 06/23/2010
- Re: [charm] problems with compiling charm++ programs on Cell, Phil Miller, 06/23/2010
Archive powered by MHonArc 2.6.16.