Skip to main content

KCoral

KCoral executes GPU benchmark programs remotely. It manages GPU and node resources and provides a unified endpoint.

Website · Documentation · Blog · Quickstart · Write a client program · KCoral Protocol

Install

Python 3.10 or newer is required. Install the prebuilt package from PyPI:

pip install kcoral

This installs the package with client dependencies. Use pip install "kcoral[server]" for both GPU execution and CPU compilation dependencies. See installation for source build and system requirements.

Run remote tools

export KCORAL_URL='http://127.0.0.1:8000'
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 127.0.0.1 --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

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.

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://127.0.0.1:8000 python examples/basics/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.

Multi-GPU kernels and scripts

Use client.execute(program, gpu_count=N) to run a program on 1–8 GPUs. Single- and multi-GPU programs share the same worker and release GPUs for cpu_only calls. Both standalone examples execute through Program.run: one process controlling all GPUs and one worker per GPU. See the multi-GPU guide.

Metadata

Release files for kcoral 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for kcoral 0.1.2
File Size Uploaded Provenance Actions
kcoral-0.1.2.tar.gz 4.3 MB Without provenance Details for kcoral-0.1.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for kcoral 0.1.2
File Interpreter ABI Platform Actions
kcoral-0.1.2-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for kcoral-0.1.2-py3-none-manylinux_2_28_x86_64.whl
kcoral-0.1.2-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for kcoral-0.1.2-py3-none-manylinux_2_28_aarch64.whl
kcoral-0.1.2-py3-none-any.whl Python 3 none any Details for kcoral-0.1.2-py3-none-any.whl

Total release size: 15.2 MB

Release files / kcoral-0.1.2.tar.gz

Download URL kcoral-0.1.2.tar.gz
Size 4.3 MB
Tags Source
SHA-256 checksum
How to use checksums
03e26e18a7e038a6461856b7b6da22bc484a9bd070900b71504e86d6789c22ab
BLAKE2b-256 checksum
How to use checksums
5f499b2aa251d354811ed71217eee193d983c1836a678cadae7ecc9ed3e29971
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.2-py3-none-manylinux_2_28_x86_64.whl

Download URL kcoral-0.1.2-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
d12c5ee9601cec769131420ee3139e57da10f32caa03036be8bc2f5cf9743918
BLAKE2b-256 checksum
How to use checksums
9c63ce46c3cb28078a7a33fda1a9b7488292139b440d1bea6f2c5a1b46b91714
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.2-py3-none-manylinux_2_28_aarch64.whl

Download URL kcoral-0.1.2-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
04f4749d56f562fa89b823d17cfa46575184402f7f53f8f4de7bab2bf1188cac
BLAKE2b-256 checksum
How to use checksums
994be6d7d21f4cf422467ebf0119b70d31a8f2bc0d3ce1d9ea72c207c3eccbe6
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.2-py3-none-any.whl

Download URL kcoral-0.1.2-py3-none-any.whl
Size 133.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fddfc4544cfa416ef57f60fd711c229d547c3b8234e4aef3a8446b2c5a365c74
BLAKE2b-256 checksum
How to use checksums
a8c189967b2cf60d05a92a4afb765b3470ee7faed9b8434dbc8d6b461a65afa0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for kcoral 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page