Add SoCDAML Part III: hands-on lab for adding a new int8 operator#194
Draft
viv-eth wants to merge 2 commits into
Draft
Add SoCDAML Part III: hands-on lab for adding a new int8 operator#194viv-eth wants to merge 2 commits into
viv-eth wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds Part III to
Tutorials/SoCDAML.md, a 1-hour hands-on lab in which students add a new int8 operator (iLeakyReLU) to Deeploy and progressively optimize it on Siracusa from a plain-C scalar kernel running on a single core all the way to a tiled, multi-core, XPULP-SIMD kernel. The lab walks through the full compiler pipeline that Parts I and II used as a black box: Parser → Mapper → Binding → Template → TileConstraint → SIMD kernel. Students measure end-to-end cycles at every step and observe the speedup compared to the baseline implementation.Two coordinated artifact directories ship alongside the markdown:
Tutorials/PartIII_skeletons/iLeakyReLU/: student starting kit withTODO(student)markers and per-file destination paths.Tutorials/PartIII_solution/iLeakyReLU/: full TA reference (kernels, parser, template, tile constraint, ONNX + golden tensors) plus a one-shotdeploy.shthat patches the live source tree (Parsers.py,Bindings.py,Tiler.py,Platform.py,DeeployPULPMath.h) and copies the new kernel/template/constraint files into place. Re-runnable inscalar/simd/undomodes.Added
Tutorials/PartIII_skeletons/iLeakyReLU/: 8 skeleton files (generate.py, kernel + SIMD kernel skeletons, parser/template/tile-constraint skeletons, header,README).Tutorials/PartIII_solution/iLeakyReLU/: full working reference operator (parser, template, tile + perf constraint, scalar + SIMD kernels, header, ONNX + golden artifacts,deploy.sh,README).Tutorials/SoCDAML.mdwith 6 stepwise tasks and solution dropdowns matching Parts I/II.Changed
Tutorials/SoCDAML.md: appended Part III. Parts I and II are untouched.Fixed
PR Merge Checklist
develcommit and pointing todevel.CHANGELOG.mdfile has been updated.