Re: [petsc-users] Extracting CSR format from matrices for CUDA

2016-02-12 Thread Boyce Griffith
> On Feb 12, 2016, at 4:01 PM, Matthew Knepley wrote: > > On Fri, Feb 12, 2016 at 12:24 PM, Jed Brown > wrote: > Dave May mailto:dave.mayhe...@gmail.com>> writes: > >> If so is there an example/source code showing this extraction? > >> > > > > Not that I know of. > > B

Re: [petsc-users] Extracting CSR format from matrices for CUDA

2016-02-12 Thread Matthew Knepley
On Fri, Feb 12, 2016 at 12:24 PM, Jed Brown wrote: > Dave May writes: > >> If so is there an example/source code showing this extraction? > >> > > > > Not that I know of. > > But there isn't much to it, the description on these webpages should be > > sufficient. > > See also the CUSP and ViennaC

Re: [petsc-users] Extracting CSR format from matrices for CUDA

2016-02-12 Thread Jed Brown
Dave May writes: >> If so is there an example/source code showing this extraction? >> > > Not that I know of. > But there isn't much to it, the description on these webpages should be > sufficient. See also the CUSP and ViennaCL matrix classes, which can run on CUDA. But also note that it stands

Re: [petsc-users] Extracting CSR format from matrices for CUDA

2016-02-12 Thread Dave May
On 12 February 2016 at 19:16, Bhalla, Amneet Pal S wrote: > Hi Folks, > > I want to extract the CSR format from PETSc matrices and ship it to CUDA. > Is there an easy way of doing this? > Yep, see these web pages http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Mat/MatGetRowIJ.html

[petsc-users] Extracting CSR format from matrices for CUDA

2016-02-12 Thread Bhalla, Amneet Pal S
Hi Folks, I want to extract the CSR format from PETSc matrices and ship it to CUDA. Is there an easy way of doing this? If so is there an example/source code showing this extraction? Thanks, — Amneet