Memory Bandwidth (STREAM)
Measures sustainable memory bandwidth with the STREAM benchmark for one of its four operations.
|
|
| Test suite |
test_memory_stream (src/esq/suites/system/memory/test_memory_stream.py) |
| Integration type |
Type 1: generic suite. It wraps the STREAM benchmark, and the profile selects the operation. |
| Key metric |
best_rate (MB/s), with avg_time, min_time, and max_time |
| Devices |
System memory |
How It Works
- Build the benchmark image. It clones STREAM and compiles it with OpenMP and an array size well above the CPU cache size.
- Run STREAM in the container.
- Report the best rate and the run times of
operation.
Parameters
| Parameter |
Default |
Description |
operation |
Copy |
STREAM operation: Copy, Scale, Add, or Triad |
container_image, image_tag, dockerfile_name, docker_nocache |
stream_memory_benchmark, 1.0, Dockerfile, false |
Benchmark image build |
timeout |
300 |
Seconds for the test case |
Profiles
Expand a profile to see the test cases it runs with this suite.
profile.horizontal.system.memory-stream
| Test ID |
Test case |
| MEM-STR-001 |
STREAM Memory Benchmark - Copy |
| MEM-STR-002 |
STREAM Memory Benchmark - Scale |
| MEM-STR-003 |
STREAM Memory Benchmark - Add |
| MEM-STR-004 |
STREAM Memory Benchmark - Triad |
Run
esq run --profile profile.horizontal.system.memory-stream --filter test_id=MEM-STR-001