Skip to content

Commit c532ab5

Browse files
LessUpCopilot
andcommitted
openspec: finalize performance-teaching-hardening change
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1c674db commit c532ab5

3 files changed

Lines changed: 5 additions & 1 deletion

File tree

openspec/changes/performance-teaching-hardening/design.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,11 @@ graph TD
7171
| `examples/04-simd-vectorization/src/dispatch_example_main.cpp` | New: `dispatch_example` executable entry point |
7272
| `examples/04-simd-vectorization/CMakeLists.txt` | Extend: add `simd_dispatch` STATIC library target and `dispatch_example` executable target |
7373
| `tests/unit/simd/simd_dispatch_test.cpp` | New: correctness test for `dispatch_add_arrays` |
74+
| `tests/unit/simd/CMakeLists.txt` | Extend: wire `simd_dispatch_test` into the existing test target list |
7475
| `examples/04-simd-vectorization/README.md` | Extend: vectorization diagnostics section |
7576
| `docs/en/guides/learning-path.md` | Extend: vectorization diagnostics, sanitizer cross-link |
7677
| `docs/en/guides/validation.md` | New: sanitizer preset workflow (asan/tsan/ubsan) |
78+
| `docs/.vitepress/config.ts` | Extend: add English nav/sidebar entry for `docs/en/guides/validation.md` so the new page is reachable from the site; zh navigation is out of scope for this change |
7779
| `README.md` | Extend: cross-link to sanitizer docs |
7880
| `scripts/compare_benchmarks.py` | New: benchmark regression comparison script |
7981
| `benchmarks/README.md` | New: capture-and-compare workflow section |

openspec/changes/performance-teaching-hardening/specs/simd-vectorization/spec.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Requirement: Runtime CPU Dispatch
66

7+
> **Scope note**: This requirement adds *function-level runtime dispatch* for a single binary (selecting AVX2, SSE2, or scalar at call time via `__builtin_cpu_supports`). It extends the existing compile-time CPU capability / build-system requirement already covered by this module; it does not replace it. The compile-time path (e.g., `-mavx2` flag, CMake feature detection) remains in effect for all other targets.
8+
79
THE Example_Module SHALL provide a runtime CPU dispatch example that selects the highest-available SIMD instruction set at runtime.
810

911
#### Scenario: Runtime dispatch selects correct path

openspec/changes/performance-teaching-hardening/tasks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
## 3. Sanitizer workflow documentation
1717

18-
- [ ] 3.1 Add `docs/en/guides/validation.md` documenting the `asan`, `tsan`, and `ubsan` presets with copy-pasteable commands; add entry to VitePress nav
18+
- [ ] 3.1 Add `docs/en/guides/validation.md` documenting the `asan`, `tsan`, and `ubsan` presets with copy-pasteable commands; update `docs/.vitepress/config.ts` to add an English nav/sidebar entry for the new page so it is reachable from the site (zh navigation is out of scope)
1919
- [ ] 3.2 Cross-link the sanitizer section from the root `README.md` quick-start
2020

2121
## 4. Benchmark regression comparison

0 commit comments

Comments
 (0)