From d38f921dc5cca8aef949d88c6fe89cd51ea0b308 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A4=8E=E5=90=8D=E6=B7=B1=E9=9B=AA?= Date: Thu, 14 Sep 2023 04:39:42 -0400 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c921f9..956b087 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,7 @@ To see the use of `luisa-compute-rs` in a high performance offline rendering sys + [IR Module for EDSL](#ir-module) + [Debuggability](#debuggability) * [Usage](#usage) + + [Building](#building) + [Variables and Expressions](#variables-and-expressions) + [Builtin Functions](#builtin-functions) + [Control Flow](#control-flow) @@ -101,12 +102,15 @@ The EDSL and code generation are built atop of an SSA-based IR module. The IR mo The CPU backend is designed to be debuggable. If needed, it will perform runtime checks to detect errors such as out-of-bound access, bindless array type mismatch, etc. It will display error message containing the **host** stacktrace for pinpointing the error location. ## Usage +### Building To get started, add the following to your `Cargo.toml`: ```toml [dependencies] luisa_compute = { git= "https://github.com/LuisaGroup/luisa-compute-rs.git"} ``` -Then added the following to your files: +You need to install `CMake` and `Ninja` to build the backends. More details about prerequistes can be found in [here](https://github.com/LuisaGroup/LuisaCompute#building). + +In your project, the following to your files: ```rust use luisa_compute as luisa; use luisa::prelude::*;