Skip to content

Commit

Permalink
Rename solve matrix market tool
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmech committed Sep 20, 2023
1 parent b91cd7f commit 13bf84c
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 13 deletions.
12 changes: 6 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -159,15 +159,15 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'solve_mm_build'",
"name": "Debug executable 'solve_matrix_market_build'",
"cargo": {
"args": [
"build",
"--bin=solve_mm_build",
"--bin=solve_matrix_market_build",
"--package=russell_sparse"
],
"filter": {
"name": "solve_mm_build",
"name": "solve_matrix_market_build",
"kind": "bin"
}
},
Expand All @@ -177,16 +177,16 @@
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'solve_mm_build'",
"name": "Debug unit tests in executable 'solve_matrix_market_build'",
"cargo": {
"args": [
"test",
"--no-run",
"--bin=solve_mm_build",
"--bin=solve_matrix_market_build",
"--package=russell_sparse"
],
"filter": {
"name": "solve_mm_build",
"name": "solve_matrix_market_build",
"kind": "bin"
}
},
Expand Down
8 changes: 4 additions & 4 deletions russell_sparse/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ We wrap two direct sparse solvers: UMFPACK (aka **UMF**) and MUMPS (aka **MMP**)

## Tools

This crate includes a tool named `solve_mm_build` to study the performance of the available sparse solvers (currently MMP and UMF). The `_build` suffix is to disable the coverage tool.
This crate includes a tool named `solve_matrix_market_build` to study the performance of the available sparse solvers (currently MMP and UMF). The `_build` suffix is to disable the coverage tool.

`solve_mm_build` reads a [Matrix Market file](https://math.nist.gov/MatrixMarket/formats.html) and solves the linear system:
`solve_matrix_market_build` reads a [Matrix Market file](https://math.nist.gov/MatrixMarket/formats.html) and solves the linear system:

```text
a ⋅ x = rhs
Expand All @@ -138,13 +138,13 @@ The data directory contains an example of Matrix Market file named `bfwb62.mtx`
Run the command:

```bash
cargo run --release --bin solve_mm_build -- ~/Downloads/matrix-market/bfwb62.mtx
cargo run --release --bin solve_matrix_market_build -- ~/Downloads/matrix-market/bfwb62.mtx
```

Or

```bash
cargo run --release --bin solve_mm_build -- --help
cargo run --release --bin solve_matrix_market_build -- --help
```

for more options.
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"platform": "russell",
"blasLib": "OpenBLAS",
"matrixName": "bfwb62",
"read": {
"timeReadNs": 37275,
"timeReadStr": "37.275µs"
},
"triplet": {
"neq": 62,
"nnz_current": 342,
"nnz_maximum": 404,

},
"symmetry": "Some(General)"
"solver": {
"name": "UMF",
"ordering": "Auto",
"scaling": "Auto",
"pctIncWorkspace": 100,
"maxWorkMemory": 0,
"openmpNumThreads": 1
"usedOrdering": "Amd",
"usedScaling": "Sum",
"doneFactorize": true,
"nrow": 62,
"timeFactNs": 176349,
"timeSolveNs": 7712,
"timeTotalNs": 184061,
"timeFactStr": "176.349µs",
"timeSolveStr": "7.712µs",
"timeTotalStr": "184.061µs"
},
"verify": {
"maxAbsA": 0.0001,
"maxAbsAx": 1.0000000000000004,
"maxAbsDiff": 4.440892098500626e-16,
"relativeError": 4.4404480536952566e-16,
"timeCheckNs": 1322,
"timeCheckStr": "1.322µs"
}
}
File renamed without changes.
4 changes: 2 additions & 2 deletions russell_sparse/zscripts/memcheck.bash
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

cargo valgrind run --bin mem_check_build
cargo valgrind run --bin solve_mm_build -- data/matrix_market/bfwb62.mtx
cargo valgrind run --bin solve_mm_build -- data/matrix_market/bfwb62.mtx --mmp
cargo valgrind run --bin solve_matrix_market_build -- data/matrix_market/bfwb62.mtx
cargo valgrind run --bin solve_matrix_market_build -- data/matrix_market/bfwb62.mtx --mmp
2 changes: 1 addition & 1 deletion russell_sparse/zscripts/run-solve-matrix-markert.bash
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash

cargo run --release --bin solve_mm_build -- data/matrix_market/bfwb62.mtx
cargo run --release --bin solve_matrix_market_build -- data/matrix_market/bfwb62.mtx

0 comments on commit 13bf84c

Please sign in to comment.