Canonical Code Patterns
Provide minimal, canonical snippets the LLM can reuse in answers. Keep them short and well-commented.
- Marking an entry point method in C# for GPU compilation
- Launching a CUDA kernel from C# host with correct grid/block
- Vector-friendly loops and data layout examples
- Safe marshalling of arrays of structs
- Error handling templates and profiling setup