Dear Paul,<br><br>Please find the changelog in the following link for CUSP 0.2.0<br><a href="http://code.google.com/p/cusp-library/source/browse/CHANGELOG">http://code.google.com/p/cusp-library/source/browse/CHANGELOG</a><br>
<br>They has added cusp:complex class to support complex number-based operation.<br><br>does it not work for PETSc?<br><br>Thanks a lot,<br>Yujie<br><br><br><div class="gmail_quote">On Mon, Jan 23, 2012 at 3:28 PM, Paul Mullowney <span dir="ltr">&lt;<a href="mailto:paulm@txcorp.com">paulm@txcorp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I would claim that Petsc does not support GPU capabilities for complex numbers right now.<br>
<br>
The CUSP library is templated over the scalar type (i.e. float or double), however I don&#39;t think it supports complex numbers. Although, I could be wrong on this.<br>
<br>
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.<span class="HOEnZb"><font color="#888888"><br>

<br>
-Paul</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
     This is an installation issue, please send all installation issues to <a href="mailto:petsc-maint@mcs.anl.gov" target="_blank">petsc-maint@mcs.anl.gov</a> with the entire configure.log<br>
<br>
<br>
<br>
<br>
    You can try editing config/PETSc/packages/cuda.py and removing the two lines<br>
<br>
     if self.scalartypes.scalartype == &#39;complex&#39;:<br>
       raise RuntimeError(&#39;Must use real numbers with CUDA&#39;)<br>
<br>
    As it says we have never tested for complex so I do not know how far it is from working.<br>
<br>
     Barry<br>
<br>
On Jan 23, 2012, at 1:24 PM, recrusader wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear PETSc Developers,<br>
<br>
I am compiling PETSc-dev using GPU in complex number mode.<br>
However, when I configure PETSc-dev, I get the following errors<br>
&quot;<br>
******************************<u></u>******************************<u></u>*******************<br>
         UNABLE to CONFIGURE with GIVEN OPTIONS    (see configure.log<br>
for details):<br>
------------------------------<u></u>------------------------------<u></u>-------------------<br>
Cannot use cuda with complex numbers it is not coded for this capability<br>
******************************<u></u>******************************<u></u>*******************<br>
&quot;<br>
I have checked CUSP. The latest version can support complex number.<br>
What should I do for CUDA?<br>
Thank you very much.<br>
<br>
Best,<br>
Yujie<br>
</blockquote></blockquote>
<br>
</div></div></blockquote></div><br>