How sbeamer/gapbs works
GAP Benchmark Suite is a portable, OpenMP-capable reference implementation for evaluating graph-processing kernels. A user selects a kernel executable and supplies a graph file or synthetic-graph options; the kernel parses options, builds a graph, runs its algorithm, and can verify and report results. The README documents six kernel families and multiple graph formats. The graph-building path is supported by the source index and excerpts; details of unsampled kernels and benchmark reporting are represented only where documented or referenced.
Main entry points: builder.h Graph builder · bfs.cc Direction-optimizing BFS · benchmark.h Benchmark harness · graph.h CSR graph
Components 22
Inputs and execution
- CLI options
src/command_line.h - Benchmark harness
src/benchmark.h
Graph construction
- Graph file reader
src/reader.h - Synthetic generator
src/generator.h - Graph builder
src/builder.h - CSR graph
src/graph.h - Graph converter
src/converter.cc - Serialized graph writer
src/writer.h
Graph kernels
- Direction-optimizing BFS
src/bfs.cc - Delta-stepping SSSP
src/sssp.cc - PageRank variants
src/pr.cc - PageRank SpMV
src/pr_spmv.cc - Afforest components
src/cc.cc - Shiloach-Vishkin components
src/cc_sv.cc - Brandes centrality
src/bc.cc - Triangle counting
src/tc.cc
Runtime support
- Parallel containers
src/pvector.h - Parallel bitmap
src/bitmap.h - Sliding queue
src/sliding_queue.h - Atomic operations
src/platform_atomics.h - Timing utilities
src/timer.h
Other components
- Benchmark user
Connections 35
- Benchmark user → CLI options: sets options
README.md - CLI options → Graph builder: configures build
src/builder.h - Graph builder → Graph file reader: reads file input
src/builder.h - Graph builder → Synthetic generator: generates input
src/builder.h - Graph builder → CSR graph: constructs graph
src/builder.h - Graph converter → Graph builder: loads graph
src/converter.cc - Graph converter → Serialized graph writer: writes graph
src/converter.cc - Direction-optimizing BFS → CLI options: parses options
src/bfs.cc - Direction-optimizing BFS → Graph builder: builds graph
src/bfs.cc - Direction-optimizing BFS → CSR graph: traverses graph
src/bfs.cc - Direction-optimizing BFS → Benchmark harness: runs benchmark
src/bfs.cc - Delta-stepping SSSP → CLI options: parses options
src/sssp.cc - Delta-stepping SSSP → Graph builder: builds graph
src/sssp.cc - Delta-stepping SSSP → CSR graph: relaxes edges
src/sssp.cc - Delta-stepping SSSP → Benchmark harness: runs benchmark
src/sssp.cc - PageRank variants → Graph builder: builds graph
src/pr.cc - PageRank variants → Benchmark harness: runs benchmark
src/pr.cc - PageRank SpMV → Graph builder: builds graph
src/pr_spmv.cc - PageRank SpMV → Benchmark harness: runs benchmark
src/pr_spmv.cc - Afforest components → Graph builder: builds graph
src/cc.cc - Afforest components → Benchmark harness: runs benchmark
src/cc.cc - Shiloach-Vishkin components → Graph builder: builds graph
src/cc_sv.cc - Shiloach-Vishkin components → Benchmark harness: runs benchmark
src/cc_sv.cc - Brandes centrality → Graph builder: builds graph
src/bc.cc - Brandes centrality → CSR graph: traverses graph
src/bc.cc - Triangle counting → Graph builder: builds graph
src/tc.cc - Parallel containers → CSR graph: backs graph data
src/graph.h - Parallel bitmap → Atomic operations: uses atomics
src/bitmap.h - Sliding queue → Atomic operations: uses atomics
src/sliding_queue.h - Graph builder → Parallel containers: stores build data
src/builder.h - Graph builder → Timing utilities: times build
src/builder.h - Direction-optimizing BFS → Parallel bitmap: uses frontier bitmap
src/bfs.cc - Direction-optimizing BFS → Sliding queue: uses frontier queue
src/bfs.cc - Brandes centrality → Parallel bitmap: tracks successors
src/bc.cc - Brandes centrality → Sliding queue: uses traversal queue
src/bc.cc