sieve-dev Working with to pgCC

Shi Jin jinzishuai at gmail.com
Sat Oct 4 11:57:44 CDT 2008


After using a newer version of the PGI compiler, I am able to build the
petsc-dev library as well as my code. Still the changes on pow() have to be
made.
Thanks.

Shi

On Fri, Oct 3, 2008 at 10:21 PM, Shi Jin <jinzishuai at gmail.com> wrote:

> 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
>
>
> 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/ <http://www.ualberta.ca/%7Esjin1/>
>



-- 
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/20081004/705bb00c/attachment.htm>


More information about the sieve-dev mailing list