Skip to main content

csl++

csl++ is a place to develop new language features for the Cerebras Software Language (CSL) and to test them at wafer scale. It extends CSL, so every CSL program is also a csl++ program.

The csl++ compiler csl-pp is a drop-in replacement for cslc and takes the same command-line arguments. It translates a program to vanilla CSL and then compiles the result with cslc, the compiler of the Cerebras SDK.

csl++ currently adds async functions and tasks, and automatic allocation of colors, task IDs and queues:

// Receives one value from in and returns it.
async fn receive(comptime in: fabin_dsd) f32 {
  var value: f32 = 0.0;
  const value_dsd = @get_dsd(mem1d_dsd, .{ .base_address = &value, .extent = 1 });
  @fmovs(value_dsd, in, .{ .async = true, .activate = @current_task() });
  suspend;  // continues here when the value has arrived
  return value;
}

async task sum_task() void {
  // Receive from both neighbors at the same time.
  const values = @await_parallel(receive(west_in_dsd), receive(east_in_dsd));
  x[0] = values[0] + values[1];
  sys_mod.unblock_cmd_stream();
}

The documentation contains a quickstart, a tutorial and the reference of the language extensions.

Installation

This package installs command-line tools, not a Python library: csl-pp, the language server csl-lsp-server and the csl++ libraries. It is built for x86-64 Linux with glibc 2.28 or newer.

pipx install csl-pp

uv tool install csl-pp and pip install csl-pp in a virtual environment work as well.

csl-pp runs cslc of the Cerebras SDK, which is installed separately; csl++ is tested with SDK 2.10. Put the SDK directory, which contains cslc, on your PATH.

Usage

Call csl-pp instead of cslc, with the same arguments:

csl-pp ./layout.csl --arch=wse3 --fabric-dims=8,3 --fabric-offsets=4,1 \
  -o out --memcpy --channels=1

The csl++ libraries are installed with the package; csl-pp and csl-lsp-server find them without --import-path.

Editor support

The VS Code extension Language Server for CSL provides diagnostics, hover, completion and go-to-definition for CSL and csl++. It contains the language server and does not need this package. For a program that imports the csl++ libraries, set the extension's csl.serverPath to the csl-lsp-server of this package, which finds the libraries.

Bug reports

Please include the output of csl-pp --version and the backtrace in bug reports. The debug information of the executables of each release is attached to the release in the csl++ repository, so backtraces of crashes can be resolved to source lines.

License

csl++ is under the Apache License v2.0 with LLVM Exceptions. It is developed by the Embedded Systems and Applications Group at the Technical University of Darmstadt and is not a product of Cerebras Systems.

Metadata

Release files for csl-pp 2.0.0

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

Built distribution (wheel)

Table of built distributions (wheels) for csl-pp 2.0.0
File Interpreter ABI Platform Actions
csl_pp-2.0.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for csl_pp-2.0.0-py3-none-manylinux_2_28_x86_64.whl

Release files / csl_pp-2.0.0-py3-none-manylinux_2_28_x86_64.whl

Download URL csl_pp-2.0.0-py3-none-manylinux_2_28_x86_64.whl
Size 12.2 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
aaaccac2a74e4f6901d38d913262bec17e6219b5181e100a5f494abf74bc3d68
BLAKE2b-256 checksum
How to use checksums
8e7624c5ad6b45d61a80e8141fb4dec3d175bbbad11321955e33a0d12b5295bc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for csl-pp 2.0.0

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.

Full provenance

1 file in this release has been uploaded with provenance metadata.

Attestation for csl_pp-2.0.0-py3-none-manylinux_2_28_x86_64.whl

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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