[petsc-users] CUDA with complex number
Danesh Daroui
danesh.daroui at ltu.se
Mon Jan 23 15:40:55 CST 2012
For sparse and even dense solvers for GPU you can use CULA a product from CULA tools. They even support double complex data type. But do not forget if you wish to get better performance over CPU with complex numbers you should use fermi based cards i.e. Tesla m2050-m2090.
----- Reply message -----
From: "Paul Mullowney" <paulm at txcorp.com>
To: "PETSc users list" <petsc-users at mcs.anl.gov>
Subject: [petsc-users] CUDA with complex number
Date: Mon, Jan 23, 2012 22:28
I would claim that Petsc does not support GPU capabilities for complex
numbers right now.
The CUSP library is templated over the scalar type (i.e. float or
double), however I don't think it supports complex numbers. Although, I
could be wrong on this.
It could be somewhat straightforward to move from CUSP to CUSPARSE (yes,
these are different Nvidia libraries). I believe CUSPARSE supports SpMV
for complex types. It also supports triangular solve for complex types.
-Paul
> This is an installation issue, please send all installation issues to petsc-maint at mcs.anl.gov with the entire configure.log
>
>
>
>
> You can try editing config/PETSc/packages/cuda.py and removing the two lines
>
> if self.scalartypes.scalartype == 'complex':
> raise RuntimeError('Must use real numbers with CUDA')
>
> As it says we have never tested for complex so I do not know how far it is from working.
>
> Barry
>
> On Jan 23, 2012, at 1:24 PM, recrusader wrote:
>
>> Dear PETSc Developers,
>>
>> I am compiling PETSc-dev using GPU in complex number mode.
>> However, when I configure PETSc-dev, I get the following errors
>> "
>> *******************************************************************************
>> UNABLE to CONFIGURE with GIVEN OPTIONS (see configure.log
>> for details):
>> -------------------------------------------------------------------------------
>> Cannot use cuda with complex numbers it is not coded for this capability
>> *******************************************************************************
>> "
>> I have checked CUSP. The latest version can support complex number.
>> What should I do for CUDA?
>> Thank you very much.
>>
>> Best,
>> Yujie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120123/7a4f146a/attachment.htm>
More information about the petsc-users
mailing list