Metadata-Version: 2.4
Name: csl-pp
Version: 2.0.0rc1
Summary: Transpiler from csl++ to the Cerebras Software Language (CSL)
License-Expression: Apache-2.0 WITH LLVM-exception
License-File: LICENSE.TXT
License-File: third-party/llvm/lld/LICENSE.TXT
License-File: third-party/llvm/llvm/LICENSE.TXT
License-File: third-party/llvm/mlir/LICENSE.TXT
License-File: third-party/lz4/LICENSE
License-File: third-party/squashfs-tools-ng/COPYING.md
License-File: third-party/squashfs-tools-ng/GPLv3.txt
License-File: third-party/squashfs-tools-ng/LGPLv3.txt
License-File: third-party/squashfs-tools-ng/hash_table.txt
License-File: third-party/squashfs-tools-ng/xxhash.txt
License-File: third-party/xz_utils/COPYING
License-File: third-party/zlib/LICENSE
License-File: third-party/zstd/LICENSE
Requires-Python: >=3.8
Project-URL: Source, https://git.esa.informatik.tu-darmstadt.de/cerebras/csl-mlir
Project-URL: Documentation, https://pages.esa.informatik.tu-darmstadt.de/cerebras/csl-mlir
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: C++
Classifier: Topic :: Software Development :: Compilers
Description-Content-Type: text/markdown

# csl++

csl++ is a frontend for the Cerebras Software Language (CSL), developed by
the Embedded Systems and Applications Group at the Technical University of
Darmstadt. It adds async functions and tasks and automatic allocation of
colors, task IDs and queues to CSL. Its transpiler, `csl-pp`, evaluates the
program at compile time and lowers it to vanilla CSL, which `cslc` of the
Cerebras SDK compiles. `csl-pp` accepts the command-line arguments of `cslc`.

This package contains `csl-pp`, the language server `csl-lsp-server` and the
csl++ libraries for x86-64 Linux with glibc 2.28 or newer.

## Installation

```bash
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](https://sdk.cerebras.ai), which is
installed separately: put the SDK directory, which contains `cslc`, on your
`PATH`.

## Usage

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

```bash
csl-pp --arch=wse3 ./layout.csl --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`.

## Bug reports

The debug information of the executables of each release is published in
the package registry of the
[csl++ repository](https://git.esa.informatik.tu-darmstadt.de/cerebras/csl-mlir),
so backtraces of crashes can be resolved to source lines. Please include the
output of `csl-pp --version` and the backtrace in bug reports.
