[petsc-users] one compilation error in PETSc-dev with enabling GPU and complex number

Jack Poulson jack.poulson at gmail.com
Tue Feb 7 15:43:41 CST 2012


On Tue, Feb 7, 2012 at 3:34 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Tue, Feb 7, 2012 at 23:18, Barry Smith <bsmith at mcs.anl.gov> wrote:
>
>> I have not tried complex quad precision. If you are right than it may not
>> be possible right out of the box with std:complex.    We are not in
>>  position to provide a proper complex class for this case (for the same
>> reasons I listed before) so if someone wants PETSc with complex quad they
>> may have their work cut out for them.
>
>
> It's spelled __complex128.
> http://gcc.gnu.org/onlinedocs/gcc-4.6.2/libquadmath.pdf
>
> Perhaps it's a shame they didn't use C99 complex __float128, but such is
> life.
>

Good to know; I didn't know libquadmath provided that. The catch is that it
does not allow one to easily extend templates that previously handled
32-bit and 64-bit base types. On the other hand, a custom complex class
could easily just call the built-in functions for __complex128 when
instantiated with a base type of __float128.

Jack
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120207/5c4719ac/attachment.htm>


More information about the petsc-users mailing list