Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,13 @@ Suites are listed by name in `suites`, and each one becomes a `suite-<name>` tag
- `standard-long`: canonical datasets that take hours each to prepare, such as the GAP graphs. They stay out of `standard`, and `--cache-datasets` skips them unless selected with `--tag suite-standard-long`; references of these datasets join this suite too.
- `trace`: datasets whose operation behavior should be traced into `statistics.json`.

Each benchmark also lists two suites that classify it, one by application and one by computational character:

- Application: `graphs`, `counting`, `solvers`, `timestepping`, `data-analytics`, `image-processing`, `machine-learning`, or `quantum`.
- Computational character: `iterative-fixed` (iterations over a fixed sparsity pattern), `iterative-dynamic` (iterations whose sparsity pattern changes), `semiring-fixpoints` (semiring products iterated to a fixpoint), `boolean-tensor-networks` (Boolean or counting contractions), `numeric-tensor-networks` (floating-point contractions), or `feed-forward` (a single pass with no iteration).

For example, `--tag suite-graphs` selects the graph benchmarks and `--tag suite-feed-forward` the feed-forward ones. Microkernels use the `microkernel` suite instead.

Use ACM CCS XML to describe problem domains. Paste the XML into `concepts`, and SAPS generates lowercase hyphenated topic tags prefixed with `concept-`, such as `concept-applied-computing`, `concept-physical-sciences-and-engineering`, or `concept-aerospace`.

Every benchmark, generator, and dataset provides `concepts`. Use `"<ccs2012></ccs2012>"` as a stub until you have a classification. You can use the [ACM CCS 2012 generator](https://dl.acm.org/ccs/ccs.cfm), copy its XML output, and paste it in as `concepts`:
Expand Down
6,782 changes: 3,391 additions & 3,391 deletions manifest.json

Large diffs are not rendered by default.

54,841 changes: 31,309 additions & 23,532 deletions metadata.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[project]
name = "saps"
description = ""
version = "0.3.0"
version = "0.4.0"
readme = "README.md"
authors = [{name = "Willow Ahrens", email = "willow.marie.ahrens@gmail.com"}]
requires-python = '>=3.11,<3.15'
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/bellman_ford.py
Original file line number Diff line number Diff line change
Expand Up @@ -980,7 +980,7 @@ def description(self):

@property
def suites(self) -> list[str]:
return ["standard-graphs-iterative"]
return ["graphs", "semiring-fixpoints"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/betweenness_centrality.py
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ def description(self):

@property
def suites(self) -> list[str]:
return ["standard-graphs-iterative"]
return ["graphs", "semiring-fixpoints"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/bfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ def description(self):

@property
def suites(self) -> list[str]:
return ["standard-graphs-iterative"]
return ["graphs", "semiring-fixpoints"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/ccsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ def description(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-quantum"]
return ["quantum", "numeric-tensor-networks"]

@property
def concepts(self) -> str:
Expand Down
3 changes: 2 additions & 1 deletion src/saps/benchmarks/cg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1108,7 +1108,7 @@ def description(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-solvers"]
return ["solvers", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down Expand Up @@ -1148,6 +1148,7 @@ def references(self) -> list[Ref]:
authors=[Author("Yousef Saad")],
publisher="SIAM",
year=2003,
doi="10.1137/1.9780898718003",
)
]

Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/cg_amg.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def description(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-solvers"]
return ["solvers", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down
24 changes: 21 additions & 3 deletions src/saps/benchmarks/cg_block_jacobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -799,11 +799,29 @@ def references(self) -> list[Ref]:
number="1-4",
pages="71-89",
year=1992,
doi="10.1080/00207169208804096",
),
Ref(
title="",
authors=[],
title=(
"Templates for the Solution of Linear Systems: Building Blocks"
" for Iterative Methods"
),
authors=[
Author("Richard Barrett"),
Author("Michael Berry"),
Author("Tony F. Chan"),
Author("James Demmel"),
Author("June Donato"),
Author("Jack Dongarra"),
Author("Victor Eijkhout"),
Author("Roldan Pozo"),
Author("Charles Romine"),
Author("Henk van der Vorst"),
],
publisher="SIAM",
year=1994,
url="https://www.netlib.org/templates/templates.pdf",
doi="10.1137/1.9781611971538",
),
]

Expand All @@ -816,7 +834,7 @@ def ai_disclosure(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-solvers"]
return ["solvers", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down
24 changes: 21 additions & 3 deletions src/saps/benchmarks/cg_jacobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1067,11 +1067,29 @@ def references(self) -> list[Ref]:
number="1-4",
pages="71-89",
year=1992,
doi="10.1080/00207169208804096",
),
Ref(
title="",
authors=[],
title=(
"Templates for the Solution of Linear Systems: Building Blocks"
" for Iterative Methods"
),
authors=[
Author("Richard Barrett"),
Author("Michael Berry"),
Author("Tony F. Chan"),
Author("James Demmel"),
Author("June Donato"),
Author("Jack Dongarra"),
Author("Victor Eijkhout"),
Author("Roldan Pozo"),
Author("Charles Romine"),
Author("Henk van der Vorst"),
],
publisher="SIAM",
year=1994,
url="https://www.netlib.org/templates/templates.pdf",
doi="10.1137/1.9781611971538",
),
]

Expand All @@ -1084,7 +1102,7 @@ def ai_disclosure(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-solvers"]
return ["solvers", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/connected_components.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ def description(self):

@property
def suites(self):
return ["standard-graphs-iterative"]
return ["graphs", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/cp_als.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def description(self):

@property
def suites(self):
return ["standard-data-analytics"]
return ["data-analytics", "numeric-tensor-networks"]

@property
def concepts(self) -> str:
Expand Down
6 changes: 4 additions & 2 deletions src/saps/benchmarks/dae_bdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,8 @@ def references(self) -> list[Ref]:
return [
Ref(
title="SLICOT benchmark examples for model reduction",
authors=[],
authors=[Author("Younès Chahlaoui"), Author("Paul Van Dooren")],
year=2002,
url=slicot.SLICOT_BENCHMARK_PAGE_URL,
)
]
Expand Down Expand Up @@ -445,7 +446,7 @@ def _row_counts(matrix):
class _DescriptorDAEBenchmark(Benchmark):
@property
def suites(self) -> list[str]:
return ["standard-timestepping"]
return ["timestepping", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down Expand Up @@ -480,6 +481,7 @@ def references(self) -> list[Ref]:
Ref(
title="BDF2: Backward Differentiation Formula of Order 2",
authors=[Author("John Burkardt")],
year=2022,
url="https://people.sc.fsu.edu/~jburkardt/py_src/bdf2/bdf2.py",
),
]
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/fastsv.py
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,7 @@ def description(self):

@property
def suites(self):
return ["standard-graphs-iterative"]
return ["graphs", "semiring-fixpoints"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/finite_difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ class _FiniteDifferenceBenchmarkMixin:

@property
def suites(self) -> list[str]:
return ["standard-spatial"]
return ["timestepping", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down
3 changes: 2 additions & 1 deletion src/saps/benchmarks/floyd_warshall.py
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,7 @@ def references(self):
journal="AAAI",
url="https://networkrepository.com",
year=2015,
doi="10.1609/aaai.v29i1.9277",
),
]

Expand Down Expand Up @@ -875,7 +876,7 @@ def description(self):

@property
def suites(self) -> list[str]:
return ["standard-graphs-iterative"]
return ["graphs", "semiring-fixpoints"]

@property
def concepts(self) -> str:
Expand Down
3 changes: 2 additions & 1 deletion src/saps/benchmarks/four_clique_counting.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def references(self) -> list[Ref]:
Ref(
title="GraphMiner: k-Clique Listing reference counts",
authors=[Author("Xuhao Chen")],
year=2024,
url="https://github.com/chenxuhao/GraphMiner/blob/2a76e3f612e40e46a821d603ca11d10fcbc63ddd/src/clique/README.md",
),
Ref(
Expand Down Expand Up @@ -415,7 +416,7 @@ def description(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-graphs-query"]
return ["counting", "boolean-tensor-networks"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,7 @@ def description(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-machine-learning"]
return ["machine-learning", "feed-forward"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/gcn_backward.py
Original file line number Diff line number Diff line change
Expand Up @@ -903,7 +903,7 @@ def description(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-machine-learning"]
return ["machine-learning", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down
59 changes: 52 additions & 7 deletions src/saps/benchmarks/gmres.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from binsparse.conversions import from_numpy, from_scipy, to_numpy, to_scipy, to_sparse

from saps.benchmark import (
Author,
Benchmark,
Contributor,
DataInstance,
Expand Down Expand Up @@ -237,9 +238,26 @@ def authors(self) -> list[Contributor]:
def references(self) -> list[Ref]:
return [
Ref(
title="",
authors=[],
title=(
"Templates for the Solution of Linear Systems: Building Blocks"
" for Iterative Methods"
),
authors=[
Author("Richard Barrett"),
Author("Michael Berry"),
Author("Tony F. Chan"),
Author("James Demmel"),
Author("June Donato"),
Author("Jack Dongarra"),
Author("Victor Eijkhout"),
Author("Roldan Pozo"),
Author("Charles Romine"),
Author("Henk van der Vorst"),
],
publisher="SIAM",
year=1994,
url="https://www.netlib.org/templates/templates.pdf",
doi="10.1137/1.9781611971538",
)
]

Expand Down Expand Up @@ -1497,14 +1515,41 @@ def description(self) -> str:
def references(self) -> list[Ref]:
return [
Ref(
title="",
authors=[],
title=(
"Templates for the Solution of Linear Systems: Building Blocks"
" for Iterative Methods"
),
authors=[
Author("Richard Barrett"),
Author("Michael Berry"),
Author("Tony F. Chan"),
Author("James Demmel"),
Author("June Donato"),
Author("Jack Dongarra"),
Author("Victor Eijkhout"),
Author("Roldan Pozo"),
Author("Charles Romine"),
Author("Henk van der Vorst"),
],
publisher="SIAM",
year=1994,
url="https://www.netlib.org/templates/templates.pdf",
doi="10.1137/1.9781611971538",
),
Ref(
title="",
authors=[],
title="An Iterative Solver Benchmark",
authors=[
Author("Jack Dongarra"),
Author("Victor Eijkhout"),
Author("Henk van der Vorst"),
],
journal="Scientific Programming",
volume=9,
number=4,
pages="223-231",
year=2001,
url="https://www.netlib.org/utk/people/JackDongarra/PAPERS/sparse-bench.pdf",
doi="10.1155/2001/527931",
),
]

Expand All @@ -1525,7 +1570,7 @@ def ai_disclosure(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-solvers"]
return ["solvers", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/hosvd.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def ai_disclosure(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-data-analytics"]
return ["data-analytics", "numeric-tensor-networks"]

@property
def concepts(self) -> str:
Expand Down
2 changes: 1 addition & 1 deletion src/saps/benchmarks/jacobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,7 @@ def description(self) -> str:

@property
def suites(self) -> list[str]:
return ["standard-solvers"]
return ["solvers", "iterative-fixed"]

@property
def concepts(self) -> str:
Expand Down
Loading
Loading