<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    I put it in there because it was really, really easy to use the CUSP
    CSR data structure in the CUSPARSE TriSolve. CUSP does not have a
    TriSolve. However, CUSPARSE also supports a TriSolve based on the
    ELLPACK (and Hybrid format). This is an opaque data structure again,
    so it may be wise to pull CUSPARSE stuff out of aijcusp.cu and into
    an aijcusparse.cu? Does this seem sensible?<br>
    <br>
    Then, I suppose one can have<br>
    -mat_type cusparse<br>
    and thus remove -use_cusparse.<br>
    <br>
    As for SpMV, the calls to CUSPARSE API are contained within my
    txpetscgpu package and is fairly removed from PETSc. In fact, all
    you see in PETSc is <br>
        ierr = cuspstruct->mat->multiply(xarray, yarray);<br>
    This multiply function will invoke CUSPARSE functions if
    -use_cusparse is given at the command line. This can be removed if
    we allow for -mat_type cusparse?<br>
    <br>
    -Paul<br>
    <br>
    <blockquote
cite="mid:CAM9tzSkLAGtYw8qgybitZKfceWchK4QwY3_XFpQdAA_ACJmXtg@mail.gmail.com"
      type="cite">
      <div class="gmail_quote">
        <div>Whose choice was it to stuff CUSPARSE into the CUSP
          implementation?</div>
        <div> </div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000"> This is especially true
            since the evidence I'm gathering suggests that CUSPARSE is
            the better choice for SpMV and TriSolve. <br>
            <br>
            Meanwhile, CUSP is the right choice for various
            preconditioners, ...
          </div>
        </blockquote>
        <div><br>
        </div>
        <div>Preconditioners can make copies.</div>
        <div> </div>
        <blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
          0.8ex; border-left: 1px solid rgb(204, 204, 204);
          padding-left: 1ex;">
          <div bgcolor="#ffffff" text="#000000">
            So much complexity! Perhaps, a discussion on redesign is
            necessary.</div>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>