<!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">
There is some level of reusability between the matrix type data
structures, especially for CSR storage. For other matrix storage
formats, like ELLPACK where the performance gain can be substantial,
CUSPARSE uses an opaque data structure. CUSP does not.<br>
<br>
So, I agree that it's wrong to mix CUSP and CUSPARSE
implementations. At some level I think it's wrong to be so hooked
into CUSP and have all the files named after CUSP. 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, ...
<br>
<br>
So much complexity! Perhaps, a discussion on redesign is necessary.<br>
<br>
-Paul<br>
<br>
<br>
<blockquote
cite="mid:CAM9tzSkQi7U=7xFKPqB3HGVdcycSERUHpfsfWkNCN_Epan=Sbw@mail.gmail.com"
type="cite">
<div class="gmail_quote">On Wed, Mar 7, 2012 at 18:38, Paul
Mullowney <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:paulm@txcorp.com">paulm@txcorp.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
I can see where this can simplify the code in <a
moz-do-not-send="true" href="http://aijcusp.cu"
target="_blank">aijcusp.cu</a>.<br>
<br>
However, how do you propose to let the user control whether or
not to use CUSP or CUSPARSE?</blockquote>
<div><br>
</div>
<div>It's different storage and different libraries, so it
should be a different MatType, right? I think it's definitely
wrong to have -mat_type cusp be using CUSPARSE instead of
CUSP.</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>
<div class="h5"><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
What do you mean? Look at src/mat/impls/aij/seq/umfpack/umfpack.c
for comparison.<br>
</blockquote>
<br>
</div>
</div>
</blockquote>
</div>
<br>
</blockquote>
<br>
</body>
</html>