What problem does it solve?
Developers working with the LuisaCompute C++ framework need quick, accurate access to its core library APIs—basic types, math functions, logging, fiber-based parallelism, and custom STL containers—without digging through headers or unit tests.
Core Features & Use Cases
- Type System Reference: Covers scalar/vector/matrix types (float2, float4x4), type traits (is_vector_v, vector_element_t), and make_* construction helpers.
- Math & Utilities: Documents vector/matrix math (dot, cross, inverse, transpose), transformations (translation, rotation, scaling), interpolation (lerp, clamp), plus Clock, logging macros, and binary I/O streams.
- Concurrency & Containers: Explains the fiber scheduler, parallel/async_parallel loops, events and counters, pool and first-fit allocators, and the luisa:: STL container family (unordered_map, fixed_vector, lru_cache).
- Use Case: When writing a LuisaCompute host-side application, ask how to run a parallel loop over 1000 elements with fibers, and get the exact luisa::fiber::parallel call pattern with scheduler setup.
Quick Start
Ask how to use a specific LuisaCompute core API, such as creating a float4x4 transformation matrix or running a fiber-based parallel loop, and receive the correct header and code pattern.