<div dir="ltr">I see. Thanks for the info Karl.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 24, 2013 at 8:36 PM, 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>
currently only the OpenCL backend is used in PETSc, as with CUDA there is already the cusp bindings and for threading there is threadcomm. Thus, you don't need to add any additional defines.<br>
<br>
Best regards,<br>
Karli<div class="im"><br>
<br>
<br>
On 05/24/2013 10:04 PM, Mohammad Mirzadeh wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
sweet. I was in the middle of writing my own interfaces; i'll try those<br>
as well. Do I still get to use the VIENNACL_WITH_XYZ macros?<br>
<br>
<br>
On Fri, May 24, 2013 at 7:45 PM, Karl Rupp <<a href="mailto:rupp@mcs.anl.gov" target="_blank">rupp@mcs.anl.gov</a><br></div><div class="im">
<mailto:<a href="mailto:rupp@mcs.anl.gov" target="_blank">rupp@mcs.anl.gov</a>>> wrote:<br>
<br>
Hi Mohammad,<br>
<br>
there is a first interface to ViennaCL in the next-branch already.<br>
Configure with<br>
--download-viennacl<br></div>
--with-opencl-include=/path/__<u></u>to/OpenCL/includes<br>
--with-opencl-lib=/path/to/__<u></u>libOpenCL.so<div class="im"><br>
and then use<br>
-vec_type viennacl<br>
-mat_type aijviennacl<br>
as runtime options.<br>
<br>
As this resides in next, it is still work in progress. If you<br>
encounter any problems during installation, please let us know.<br>
Also, OpenCL typically shows larger latency than CUDA, so you should<br>
have at least 100k unknowns to see any performance gain.<br>
<br>
Best regards,<br>
Karli<br>
<br>
<br>
<br>
On 05/24/2013 09:08 PM, Mohammad Mirzadeh wrote:<br>
<br>
Hi guys,<br>
<br>
Speaking of interfaces, is there any plan to provide interfaces to<br>
ViennaCL solvers?<br>
<br>
Tnx<br>
Mohammad<br>
<br>
<br>
<br>
</div></blockquote>
<br>
</blockquote></div><br></div>