<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 21, 2014 at 3:15 AM, Karl Rupp <span dir="ltr"><<a href="mailto:rupp@mcs.anl.gov" target="_blank">rupp@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
>     It looks like ViennaCL in petsc doesn't support single precision<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
    (which I need cause my (old) GPU doesn't support double precision).<br>
    I get the following error:<br>
<br>
    Cannot use viennacl withOUT double precision numbers, it is not<br>
    coded for this capability<br>
<br>
    Is there any way this can be enabled in the build?<br>
<br>
<br>
This may be an oversight. Can you try adding<br>
<br>
   self.double = 0<br>
<br>
to the constructor in config/PETSc/packages/<u></u>viennacl.py?<br>
</blockquote>
<br>
Thanks, Matt. Do we want to provide some automatic marshalling to single precision if not provided by the device? For 'production use' it doesn't really matter, because GPUs today which offer only single precision are generally rather low-end and won't provide any substantial benefit over CPUs. However, it can be handy for debugging purposes. Any opinions?<br>
</blockquote><div><br></div><div>I think we should since it also a way to decrease the PCI penalty.</div><div><br></div><div>  Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Best regards,<br>
Karli<br>
<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>