sieve-dev Working with to pgCC

Matthew Knepley knepley at gmail.com
Sat Oct 4 16:31:08 CDT 2008


Thanks. MS requires this as well. Terrible compilers :) I pushed the changes.

  Matt

On Sat, Oct 4, 2008 at 11:57 AM, Shi Jin <jinzishuai at gmail.com> wrote:
> 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: 1041
>> visitor_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/
>
>
>
> --
> Sincerely,
> Shi Jin, Ph.D.
> http://www.ualberta.ca/~sjin1/
>



-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which
their experiments lead.
-- Norbert Wiener




More information about the sieve-dev mailing list