You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: 2026.9.5.3 -- a feature-selected rule collection, mcpp.rules.* naming, and a variant switch the fast path no longer replays
A host-module package contributes every module interface unit among its
feature-resolved sources, the lib root first; only listed sources take
part. This is what lets mcpp:plugins carry mcpp.rules.cuda and
mcpp.rules.spirv, selected by features. The rule packages leave examples/;
examples 09 and 10 consume the index package. The prefix is mcpp.rules.*
for rules and mcpp.tools.* for utilities; mcpp.build.* is the engine's own
module family and the specification is corrected accordingly.
The graph header records whether --accel/--no-accel chose the variant, and
the fast paths decline a graph an override wrote: a plain build after
--no-accel used to report Finished in 0.00s and run the CPU variant.
The device-source table is by compiler, not by vendor: 18 extensions,
none in the default globs, all a hard error before.
Chapter 20 is renamed to Heterogeneous Builds; docs 05 and 07 gain the
collection and naming sections in both languages.
Copy file name to clipboardExpand all lines: docs/01-examples.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,6 +27,8 @@ examples.
27
27
| 02 |[`examples/02-with-deps`](../examples/02-with-deps/)| Adds the `mcpplibs.cmdline` dependency to parse command-line arguments |`[dependencies]`, SemVer, `mcpp.lock`|
28
28
| 03 |[`examples/03-pack-static`](../examples/03-pack-static/)| Produces a fully static release package via `mcpp pack --mode static`|`[target.<triple>]` and `[pack]` configuration |
29
29
| 08 |[`examples/08-build-rules`](../examples/08-build-rules/)| Two rule packages and a project that uses both |`host-module = true`, `[build-dependencies]`, `mcpp::action` with `role = "check"`|
30
+
| 09 |[`examples/09-cuda-kernel`](../examples/09-cuda-kernel/)| A CUDA kernel behind a seam module, with a CPU fallback |`accel`, constrained source globs, `mcpp::action` with `role = "object"`, `cfg(accelerator = …)`|
31
+
| 10 |[`examples/10-vulkan-compute`](../examples/10-vulkan-compute/)| The same computation as a Vulkan compute shader, on a GPU or on the CPU |`mcpp.rules.spirv` from `mcpp:plugins`, `mcpp::action` with `role = "source"`, generated headers, a software driver as a payload |
0 commit comments