logo

SDK Documentation (1.3.0)

  • SDK Release Notes
  • Documentation Updates

Start Here

  • A Conceptual View
  • Host Runtime and Tensor Streaming
  • Installation and Setup
  • Tutorials
    • GEMV Tutorial 0: Basic CSL Syntax
    • GEMV Tutorial 1: A Complete Program
    • GEMV Tutorial 2: Memory DSDs
    • GEMV Tutorial 3: Memcpy
    • GEMV Tutorial 4: Parameters
    • GEMV Tutorial 5: Multiple PEs
    • GEMV Tutorial 6: Routes and Fabric DSDs

Development Guides

  • CSL Compiler
  • Working With Code Samples
  • CSL Code Examples
    • GEMV 0: Basic CSL Syntax
    • GEMV 1: A Complete Program
    • GEMV 2: Memory DSDs
    • GEMV 3: H2D and D2H Memcpy
    • GEMV 4: Parameters
    • GEMV 5: Multiple PEs
    • GEMV 6: Routes and Fabric DSDs, Part I
    • GEMV 7: Routes and Fabric DSDs, Part II
    • GEMV 8: Routes and Fabric DSDs, Part III
    • GEMV 9: Memcpy Streaming Mode
    • Topic 1: Arrays and Pointers
    • Topic 2: Libraries
    • Topic 3: Streaming Wavelet Data
    • Topic 4: Wavelets for Sparse Tensors
    • Topic 5: Sentinels
    • Topic 6: Switches
    • Topic 7: Switches and Control Entrypoints
    • Topic 8: Filters
    • Topic 9: FIFOs
    • Topic 10: @map Builtin
    • Topic 11: Collective Communications
    • Topic 12: Debug Library
    • Topic 13: Simprint Library
    • Topic 14: Color Swap
    • Topic 13: WSE-3 Microthreads
    • Pipeline 1: Redirect fabin to fabout
    • Pipeline 2: Attach a FIFO to H2D
    • Pipeline 3: Add an artificial halo
    • GEMV with Checkerboard Pattern
    • GEMV with Collective Communications
    • GEMM with Collective Operations
    • Residual
    • Cholesky
    • 25-Point Stencil
    • Bandwidth Test
    • Hypersparse SpMV
    • 3D 7-Point Stencil SpMV
    • Power Method
    • Conjugate Gradient
    • Preconditioned Conjugate Gradient
    • BiCGSTAB
    • Single Tile Matvec
    • Host-to-Device Broadcast Test
    • Conway’s Game of Life
  • CSL Language Guide
    • Syntax of CSL
    • Builtins
    • Builtins for WSE-3
    • Microthread IDs
    • Comptime
    • Data Structure Descriptors
    • Data Structure Registers
    • Libraries
    • Libraries for WSE-3
    • Modules
    • Task Identifiers and Task Execution
    • Type System in CSL
    • Storage Classes
    • Generics
    • Advanced Hardware Features
    • Appendix
  • Running SDK on a Wafer-Scale Cluster

Debugging

  • Debugging Guide
  • SDK GUI

Host API Reference

  • SdkRuntime API Reference
Theme by the Executable Book Project

CSL Code Examples

CSL Code Examples¶

This section contains example SDK programs written in CSL.

Note

For step-by-step introductory tutorials that walk through the GEMV tutorial programs, see Tutorials.

  • GEMV 0: Basic CSL Syntax
  • GEMV 1: A Complete Program
  • GEMV 2: Memory DSDs
  • GEMV 3: H2D and D2H Memcpy
  • GEMV 4: Parameters
  • GEMV 5: Multiple PEs
  • GEMV 6: Routes and Fabric DSDs, Part I
  • GEMV 7: Routes and Fabric DSDs, Part II
  • GEMV 8: Routes and Fabric DSDs, Part III
  • GEMV 9: Memcpy Streaming Mode
  • Topic 1: Arrays and Pointers
  • Topic 2: Libraries
  • Topic 3: Streaming Wavelet Data
  • Topic 4: Wavelets for Sparse Tensors
  • Topic 5: Sentinels
  • Topic 6: Switches
  • Topic 7: Switches and Control Entrypoints
  • Topic 8: Filters
  • Topic 9: FIFOs
  • Topic 10: @map Builtin
  • Topic 11: Collective Communications
  • Topic 12: Debug Library
  • Topic 13: Simprint Library
  • Topic 14: Color Swap
  • Topic 13: WSE-3 Microthreads
  • Pipeline 1: Redirect fabin to fabout
  • Pipeline 2: Attach a FIFO to H2D
  • Pipeline 3: Add an artificial halo
  • GEMV with Checkerboard Pattern
  • GEMV with Collective Communications
  • GEMM with Collective Operations
  • Residual
  • Cholesky
  • 25-Point Stencil
  • Bandwidth Test
  • Hypersparse SpMV
  • 3D 7-Point Stencil SpMV
  • Power Method
  • Conjugate Gradient
  • Preconditioned Conjugate Gradient
  • BiCGSTAB
  • Single Tile Matvec
  • Host-to-Device Broadcast Test
  • Conway’s Game of Life

previous

Working With Code Samples

next

GEMV 0: Basic CSL Syntax

© Copyright 2024, Cerebras Systems.
Last updated on Mar 19, 2025, 12:53:37 AM.