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

Reply via email to