Skip to content

AnyDSL/stincilla

Repository files navigation

Stincilla

A DSL for Stencil Codes

Prerequisites

Stincilla requires a working AnyDSL installation. A script to build the artic frontend and thorin backend as well as the runtime component is provided by the anydsl metaproject (setup.sh). This script will also checkout Stincilla's sources and configure a build directory.

If you checked out Stincilla separately, use the following command to download submodules:

git submodule update --init --recursive

Building

The setup.sh configures Stincilla and sets all required paths. The backend for code generation will be set to cpu. This can be changed via CMake:

  • BACKEND : defines the backend to generate code for (supported values: cpu, avx, nvvm, cuda, opencl, amdgpu)

Example:

cd anydsl/stincilla/build
cmake -DBACKEND=nvvm .. # optional: switch to nvvm backend
make