Open
Description
As documented here, please support the new CS layouts in the MM package.
As discussed in #7440 the MatrixMarket format does not support the new sparse layouts. The loaded matrices therefore have very little analytic support, including transpose.
@bradcray suggests this sort of work-around for starters.
diff --git a/modules/packages/MatrixMarket.chpl b/modules/packages/MatrixMarket.chpl
index 316647c..ff0a8ee 100644
--- a/modules/packages/MatrixMarket.chpl
+++ b/modules/packages/MatrixMarket.chpl
@@ -363,8 +363,10 @@ class MMReader {
(nrows, ncols, nnz) = read_matrix_info();
}
+ use LayoutCS;
+
Dtoret = {1..nrows, 1..ncols};
- var spDom : sparse subdomain(Dtoret);
+ var spDom : sparse subdomain(Dtoret) dmapped CS();
var toret : [spDom] eltype;
if finfo.mm_types == MMTypes.Real { assert(eltype == real, "expected real, data in file is not real"); }
Metadata
Metadata
Assignees
Labels
No labels