diff options
| author | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-25 19:04:24 -0500 |
|---|---|---|
| committer | Jan Trencansky <jan.trencansky@protonmail.com> | 2026-11-25 19:04:24 -0500 |
| commit | 8d832fd10913064e1c8aec74191e3ba8f70211c8 (patch) | |
| tree | e365199d7d86ebf592a5a0dc2f07cda4b74b58a7 /docs/linux.md | |
| parent | 5da3b6be3cefc1499452ba8c8370a50092674d61 (diff) | |
| parent | c50ed94b35b37b697ab9c5fd176f3738480b4db5 (diff) | |
Merge main into rt-title-every-budget (#2122)
#2098 split the every-pass loop of refresh_title_textures by mode: with
LEONIDA_TEXTURE_REFRESH_ASYNC every persistent mapping is polled each
pass and only stale unmapped textures are visited, without it all mapped
or stale ones are. The async branch is kept as main has it.
LEONIDA_TITLE_EVERY_BUDGET_US applies to the synchronous pass, the one
before a submission on the submitting thread; under async the pass runs
on the refresh worker and the limit does not apply (README says so).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/linux.md')
| -rw-r--r-- | docs/linux.md | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/docs/linux.md b/docs/linux.md index 555cb3ed4..c9ea03b84 100644 --- a/docs/linux.md +++ b/docs/linux.md | |||
| @@ -119,3 +119,36 @@ python3 -I tests/test_<name>.py # one standard- | |||
| 119 | 119 | ||
| 120 | [testing.md](testing.md) covers the GPU tests (`scripts/run_gpu_tests.py`), running them on llvmpipe, and choosing | 120 | [testing.md](testing.md) covers the GPU tests (`scripts/run_gpu_tests.py`), running them on llvmpipe, and choosing |
| 121 | the GPU. | 121 | the GPU. |
| 122 | |||
| 123 | ### Without root (micromamba) | ||
| 124 | |||
| 125 | If you cannot install distribution packages (no `sudo`), you can install `llvm-tools` and `spirv-tools` into a | ||
| 126 | user-owned folder with [micromamba](https://mamba.readthedocs.io/en/latest/installation/micromamba-installation.html) | ||
| 127 | (x86-64 glibc; for ARM64 use `linux-aarch64` from the micromamba guide; musl/Alpine is not natively supported) and let | ||
| 128 | CMake fetch its pinned, hash-checked Vulkan headers if the system does not provide them: | ||
| 129 | |||
| 130 | ```bash | ||
| 131 | LEO=$HOME/leonida-tools | ||
| 132 | mkdir -p "$LEO/bin" "$LEO/mamba" | ||
| 133 | # Note: `latest` is unpinned and downloaded without signature verification; inspect or pin per the micromamba guide. | ||
| 134 | curl -fsSLo "$LEO/micromamba.tar.bz2" https://micro.mamba.pm/api/micromamba/linux-64/latest | ||
| 135 | tar -xjf "$LEO/micromamba.tar.bz2" -C "$LEO/bin" --strip-components=1 bin/micromamba | ||
| 136 | |||
| 137 | export MAMBA_ROOT_PREFIX="$LEO/mamba" | ||
| 138 | "$LEO/bin/micromamba" create -y -n leonida -c conda-forge --override-channels "llvm-tools>=21" spirv-tools | ||
| 139 | export PATH="$LEO/mamba/envs/leonida/bin:$PATH" | ||
| 140 | |||
| 141 | cmake -S runtime -B runtime/build/linux -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -DLEONIDA_VULKAN_HEADERS_FETCH=ON | ||
| 142 | cmake --build runtime/build/linux --parallel "$(nproc)" | ||
| 143 | LLVM_MC=llvm-mc LEONIDA_VK_DEVICE="<part of your GPU name>" \ | ||
| 144 | python3 -I scripts/run_gpu_tests.py --build runtime/build/linux --work "$LEO/run" --require-pass | tee "$LEO/run.log" | ||
| 145 | echo "runner exit: ${PIPESTATUS[0]}" | ||
| 146 | ``` | ||
| 147 | |||
| 148 | Notes: | ||
| 149 | - `LEONIDA_VK_DEVICE` selects the physical GPU by substring so the runner does not fall back to Mesa's `llvmpipe`. | ||
| 150 | - Keep `$LEO` on a filesystem without `noexec` (`findmnt -no OPTIONS "$LEO"`). | ||
| 151 | - System prerequisites still needed: a working Vulkan driver/loader (`vulkaninfo --summary`), `cmake`, `ninja`, `g++` | ||
| 152 | (or `clang++`), `python3`, `curl`, `tar`, and `bzip2`. | ||
| 153 | - Cleanup: delete `$LEO` and `runtime/build/linux`. micromamba also writes `~/.conda/environments.txt` and | ||
| 154 | `~/.mamba/pkgs/urls.txt` (delete only those files if you already use conda). | ||