[petsc-users] Using ViennaCL without recompiling

Matthew Knepley knepley at gmail.com
Fri Apr 28 09:30:59 CDT 2017


On Fri, Apr 28, 2017 at 9:13 AM, Franco Milicchio <fmilicchio at me.com> wrote:

> Dear all,
>
> I need to integrate ViennaCL into an existing project that uses PETSc, but
> for backwards compatibility, we cannot recompile it.
>

Not recompiling your own project is fine. PETSc has an ABI. You just
reconfigure/recompile PETSc with
ViennaCL support. Then you can use -mat_type viennacl etc.

   Matt


> Is there any simple interface to copy a Mat and Vec objects into a
> ViennaCL matrix and vector ones? I am sorry if this is a trivial question,
> but as far as I see, I cannot find any tutorials on these matters.
>
> Thanks for any help!
> Franco
> /fm
>
> --
> Franco Milicchio <fmilicchio at me.com>
>
> Department of Engineering
> University Roma Tre
> https://fmilicchio.bitbucket.io/
>
>


-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20170428/b4a91ad0/attachment.html>


More information about the petsc-users mailing list