[petsc-dev] Petsc+ViennaCL usage

Karl Rupp rupp at mcs.anl.gov
Tue Jan 21 15:28:53 CST 2014


Hi Mani,

 > I like to pass in "-cl-nv-verbose" for compilation on nvidia cards.

ok, in such case you also want access to the compiler output, don't you?

> Also, I pass in parameters, for ex "-D Nx=128 -D Ny=128". I'll look at
> the ViennaCL api.

Use
   viennacl::ocl::current_context().build_options("flags_here");
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.

Best regards,
Karli




More information about the petsc-dev mailing list