This release is a pre-release and may not be stable for production use.
KCoral executes GPU benchmark programs over HTTP. It can also run as a CPU compilation service: upload code and data, call functions, and explicitly return the results you need.
The server checks bubblewrap filesystem isolation
at startup by default. If unavailable, it warns and runs without isolation.
Use --sandbox none to disable it explicitly.
Documentation · Quickstart · Write a client program · KCoral Protocol
Install
Python 3.10 or newer is required. From this checkout:
pip install .
This installs the package with client dependencies. Use pip install ".[server]"
for both GPU execution and CPU compilation dependencies. See
installation for source build and system requirements.
Run remote tools
export KCORAL_URL='http://SERVER_HOST:PORT'
kcoral run python --send experiment -- experiment/check.py
kcoral run compute-sanitizer --send experiment -- python experiment/check.py
kcoral run ncu --send experiment --out artifacts/ncu \
-- --set basic --launch-count 1 -- python experiment/capture.py
kcoral run run-iket --send experiment --out artifacts/iket \
-- profile --postprocess json -- python experiment/capture.py
kcoral run shell --send experiment -- bash experiment/setup.sh
Any remote tool also accepts --host HOST --port PORT, for example
kcoral run python --host localhost --port 8000 --send experiment -- experiment/check.py.
These options override KCORAL_URL, with a warning showing the address used.
See Builtin CLI Tools for common options and a separate guide to each tool, including dependencies, examples, and returned files.
Run the server
After installing the worker environment:
kcoral server --host 127.0.0.1 --port 8000
See deployment and configuration for CPU compilation, GPU selection, worker settings and limits.
File upload cache
File cache configuration covers the persistent cache directory, capacity and disabling caching.
Route across nodes
A Router accepts client requests and chooses an available compute node. Each
node runs kcoral server --router URL --node-id NAME to start a supervisor
that manages its Python server; both node processes connect outward to the
Router. Clients use the same execution API.
See Router deployment for setup, scheduling and failure handling, and the Rust package guide for implementation and integration test commands.
Logs
Follow requests and worker events using the logging guide.
Python client
For simple tasks, use @client.function()
and call .remote() to run a Python function on the server.
With a running GPU server, the first program uploads a tensor, adds one on the GPU, returns it and checks the values:
KCORAL_URL=http://localhost:8000 python examples/first_program.py
See Your First Program, Write a client program and the Python API for the complete example and interfaces.
Use Program.return_file() or return_folder() to receive workspace outputs,
then call .save(destination) on the result. See
returning files and folders.
Protocol summary
Programs contain upload, get_function, run and return instructions.
The protocol defines requests, results, caching and errors.
Tutorials cover remote compilation, library
uploads and separate compilation/execution servers.
Development
Build the documentation locally
to browse the full site with navigation and search at http://127.0.0.1:8008.
Release files for kcoral 0.1.0rc0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| kcoral-0.1.0rc0-py3-none-manylinux_2_28_x86_64.whl | Python 3 | none | Linux glibc 2.28+ x86-64 | Details |
| kcoral-0.1.0rc0-py3-none-manylinux_2_28_aarch64.whl | Python 3 | none | Linux glibc 2.28+ ARM64 | Details |
Total release size: 10.7 MB
Release files / kcoral-0.1.0rc0-py3-none-manylinux_2_28_x86_64.whl
| Download URL | kcoral-0.1.0rc0-py3-none-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 5.5 MB |
| Tags | Linux glibc 2.28+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
802f4e13e9ed0ed1381a340f9a32fafdbffae28dbb8b1509b88a919d488a5918
|
|
BLAKE2b-256 checksum How to use checksums |
c0e75e6e232adc288b8b14bf6876b583ce26f8886d20d855347d56510f4c1ce0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / kcoral-0.1.0rc0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | kcoral-0.1.0rc0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 5.2 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
dbb7e8e9c6b1344a916b12758e7145516fda24bc6d4773b3fc99ad520e7c2cb3
|
|
BLAKE2b-256 checksum How to use checksums |
7ca3acb9e9232f0cffa66513d67dc02eb6bef43977785e0856f7d878f02f5322
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|