sieve-dev Working with to pgCC

Shi Jin jinzishuai at gmail.com
Fri Oct 3 23:21:42 CDT 2008


Hi there,

I just ported my code to a cluster using the Portland group compilers. I
found that in order for the code to compile, I have to make the following
changes:
1. On Mesh.hh: 1673, the arguments of pow() needs to be of double type. So I
put   type conversions in front them:

ISieveVisitor::PointRetriever<sieve_type,ISieveVisitor::UpdateVisitor<
Section> > pV((int) pow((double)this->getSieve()->getMaxConeSize(),
(double)th     is->depth())+1, uV, true);

Similarly on lines 1699, 1659
2. mesh.c: 1041visitor_type iV(*section, *globalOrder, (int)
pow((double)m->getSieve()->get     MaxConeSize(), (double)
m->depth())*m->getMaxDof(), m->depth() > 1);

With these changes, I still got errors such as
seki at m129 mesh $  mpiCC -o mesh.o -c -O -w    -Isieve
-I/home/users/seki/software/src/petsc-dev/externalpackages/Boost/
 -I/home/users/seki/software/src/petsc-dev
-I/home/users/seki/software/src/petsc-dev/linux-gnu-cxx-opt/include
-I/home/users/seki/software/src/petsc-dev/include
 -I/home/users/seki/software/src/petsc-dev/src/dm/mesh/sieve
-I/opt/hpmpi/lib/linux_amd64/include
 -I/home/users/seki/software/src/petsc-dev/externalpackages/Boost/
-D__SDIR__='"src/dm/mesh/"' section.c
/tmp/pgcppeOmhm0wzuynp.s: Assembler messages:
/tmp/pgcppeOmhm0wzuynp.s:308347: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:308654: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:310946: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:311248: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:312446: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:313099: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:313417: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:314377: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:314693: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:316211: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:316523: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:316819: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:319034: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:319326: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:320484: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:321103: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:321410: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:322339: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:322645: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:324108: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:325566: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:325859: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:327019: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:327326: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:327634: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:328566: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:330026: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:330336: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:330643: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:330946: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:332148: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:332466: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:332785: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:333747: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:335262: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:336732: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:337025: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:338185: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:338492: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:338800: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:339732: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:341194: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:341501: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:341804: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:343006: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:343324: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:343643: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:344605: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:346120: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:346452: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:346766: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:347701: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:348009: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:349476: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:350309: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:350441: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:350959: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:351106: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:351254: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:351703: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:352110: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:352435: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:353402: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:353720: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:355241: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:356085: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:356217: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:356735: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:356882: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:357030: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:357479: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:392746: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:392979: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:393901: Error: junk `(%rdi)' after expression
/tmp/pgcppeOmhm0wzuynp.s:394380: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:394629: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:395382: Error: junk `(%rbx)' after expression
/tmp/pgcppeOmhm0wzuynp.s:396316: Error: junk `(%rbx)' after expression

where the mpi compiler is
seki at m129 mesh $   mpiCC -show
/usr/apps/PGI/linux86-64/6.2/bin/pgCC  -L/opt/hpmpi/lib/linux_amd64
-I/opt/hpmpi/include -lhpmpio -lhpmpi -ldl -lmpiCC

I am wondering if you know anything about this issue. Thanks a lot.


-- 
Sincerely,
Shi Jin, Ph.D.
http://www.ualberta.ca/~sjin1/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mcs.anl.gov/mailman/private/sieve-dev/attachments/20081003/bb8b1d14/attachment.htm>


More information about the sieve-dev mailing list