What problem does it solve?
Writing GPU kernels with the LuisaCompute embedded DSL requires knowing many framework-specific idioms—Kernel1D/2D/3D definitions, LUISA_STRUCT registration, sugar macros, warp intrinsics, bindless arrays, and indirect dispatch—which are scattered across test files and headers.
Core Features & Use Cases
- Kernel & Callable Authoring: Defines 1D/2D/3D kernels, reusable Callables with transitive captures, and multi-return compose patterns, then compiles and dispatches them through device streams.
- Data & Memory Operations: Covers LUISA_STRUCT registration (including templates and methods), buffer read/write, atomics, shared memory, constants, and type casting.
- Advanced GPU Features: Documents warp/wave intrinsics, ray-tracing DSL, indirect dispatch, coroutines, and cooperative vector/matrix operations (Vulkan backend).
- Use Case: A graphics engineer needs a warp-level matrix multiplication kernel; the Skill provides the exact set_warp_size, warp_lane_id, and warp_active_sum pattern from the framework's own tests.
Quick Start
Ask the assistant to write a LuisaCompute DSL kernel, for example a 1D kernel that atomically increments a buffer, using the lc_dsl skill.