charm AT lists.siebelschool.illinois.edu
Subject: Charm++ parallel programming system
List archive
- From: "ion.mironescu" <ion.mironescu AT ulbsibiu.ro>
- To: charm AT cs.uiuc.edu
- Subject: [charm] problems with compiling charm++ programs on Cell
- Date: Wed, 23 Jun 2010 16:48:01 +0300
- List-archive: <http://lists.cs.uiuc.edu/pipermail/charm>
- List-id: CHARM parallel programming system <charm.cs.uiuc.edu>
Hello,
I use charm 6.2.0 downloaded from the web site on a QS22 blade with Linux
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?
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.
Please help me in this second issue!
Thank you!
With best regards
Ion Mironescu
Acest mesaj a fost trimis prin ULBS WebMail (www.ulbsibiu.ro) si scanat contra virusilor cu BitDefender Enterprise for Linux (www.bitdefender.ro).
Acest mesaj a fost trimis prin ULBS WebMail (www.ulbsibiu.ro) si scanat contra virusilor cu BitDefender Enterprise for Linux (www.bitdefender.ro).- [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.