Skip to content

Commit

Permalink
chore: remove mentions to old runtime variable
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigo-pino committed Oct 14, 2024
1 parent 8257e77 commit 3a9dfac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/execution_walkthrough.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ Builtin stats: BuiltinStats { bitwise: 1, ec_op: 0, range_check: 1, pedersen: 0,
## The Cairo Native runtime
Sometimes we need to use stuff that would be too complicated or error-prone to implement in MLIR, but that we have readily available from Rust. That's when we use the runtime library.

When using the JIT it'll be automatically linked (if compiled with support for it, which is enabled by default). If using the AOT, the `CAIRO_NATIVE_RUNTIME_LIBDIR` environment variable will have to be modified to point to the directory that contains `libcairo_native_runtime.a`, which is built and placed in said folder by `make build`.
When using the JIT it'll be automatically linked (if compiled with support for it, which is enabled by default). If using the AOT, the `CAIRO_NATIVE_RUNTIME_LIBRARY` environment variable will have to be modified to point to the `libcairo_native_runtime.a` file, which is built and placed in said folder by `make build`.

Although it's implemented in Rust, its functions use the C ABI and have Rust's name mangling disabled. This means that to the extern observer it's technically indistinguishible from a library written in C. By doing this we're making the functions callable from MLIR.

Expand Down
2 changes: 1 addition & 1 deletion scripts/bench-hyperfine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ run_bench() {
-o "$OUTPUT_DIR/$base_name-march-native" \
>> /dev/stderr

CAIRO_NATIVE_RUNTIME_LIBDIR="$ROOT_DIR/target/release" hyperfine \
hyperfine \
--warmup 3 \
--export-markdown "$OUTPUT_DIR/$base_name.md" \
--export-json "$OUTPUT_DIR/$base_name.json" \
Expand Down

0 comments on commit 3a9dfac

Please sign in to comment.