<div dir="ltr"><div><div>Thanks Karl. Is there anyway I can get the build info?<br><br>Also, my system is such that I have the GPU on one platform (0) and the CPU on another (1). When I try using -viennalcl_device_cpu, it still uses the GPU cause I think that it defaults to the first platform it finds which only has the GPU. Is there some way to toggle between the platforms or do you suggest that I manually pass in the contexts into viennacl?<br>
<br></div>Cheers,<br></div>Mani<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 21, 2014 at 3:28 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 Mani,<div class="im"><br>
<br>
> I like to pass in "-cl-nv-verbose" for compilation on nvidia cards.<br>
<br></div>
ok, in such case you also want access to the compiler output, don't you?<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Also, I pass in parameters, for ex "-D Nx=128 -D Ny=128". I'll look at<br>
the ViennaCL api.<br>
</blockquote>
<br></div>
Use<br>
  viennacl::ocl::current_<u></u>context().build_options("<u></u>flags_here");<br>
and make sure you have VIENNACL_WITH_OPENCL defined for your compilation unit. I'll extend the PETSc API suitably when updating the ViennaCL bindings to the latest 1.5.1 release.<br>
<br>
Best regards,<br>
Karli<br>
<br>
</blockquote></div><br></div>