SDK Release Notes
Contents
SDK Release Notes¶
The following are the release notes for the Cerebras SDK.
Version 1.1.0¶
Released 10 April 2024
This version of the Cerebras SDK is the first with experimental support for the WSE-3, the third generation Cerebras architecture. The WSE-3 is the wafer-scale processor powering the CS-3 Cerebras system.
Note
The Cerebras Wafer-Scale Cluster appliance running CSoft 2.0 supports SDK 0.9. See here for SDK 0.9 documentation.
The Cerebras Wafer-Scale Cluster appliance running CSoft 2.1 supports SDK 1.0. See here for SDK 1.0 documentation.
The Cerebras Wafer-Scale Cluster appliance running CSoft 2.2 supports SDK 1.1, the current version of SDK software.
New features and enhancements¶
- CSL language and compiler enhancements: - Introduces initial support for WSE-3. 
- Introduces - ut_idtype and- @get_ut_idbuiltin for representing microthread IDs. This feature is WSE-3 only.
- Introduces runtime - @get_configand- @set_configsupport.
- Introduces - i64and- u64types, and support in- <math>,- <debug>, and- <malloc>libraries. Like- i8and- u8, these types are not allowed in memory DSD tensors or- @map, nor as arguments to tasks.
 
- CSL - memcpylibrary enhancements:- memcpy/get_paramsno longer requires specifying a- LAUNCHcolor for host kernel launch support.
- The - @rpcbuiltin is no longer necessary for host kernel launch support. The RPC server is now created internally.
 
- Other CSL library enhancements: - Introduces - reset_tsc_counter()function in- <time>library to clear timestamp counter.
- enable_tsc()function in- <time>library now automatically clears timestamp counter.
- Introduces - color_configand- switch_configmodules within- <tile_config>library for target-independent runtime manipulation of color and switch configurations.
- The - <tally>library has been updated to support WSE-3. The library API has been updated to require specification of both input and output queues. On WSE-2, the two input queus can be the same as the output queues, but on WSE-3, they must be different. See <tally>.
 
- Example programs: - GEMV tutorials 1 through 8 have been updated to support WSE-2 and WSE-3. 
- cholesky,- FFT,- bandwidthTest, and- single-tile-matvecprograms have been updated to support WSE-2 and WSE-3.
- Introduces example program to demonstrate WSE-3 features for separation of queue IDs from microthread IDs for asynchronous operations. See Topic 12: WSE-3 Features. 
 
- Documentation improvements: - Introduces documentation on WSE-3-specific builtins (see Builtins for WSE-3). 
- Introduces documentation on microthread semantics for WSE-3 (see Microthread IDs). 
 
- Appliance mode enhancements: - Introduces a new - SdkLauncherclass which allows users to stage data onto the appliance before running, and run with the same host code Python script used when running with the Singularity container. This class is particularly useful when transferring large amounts of data onto and off of the CS system. See Running SDK on a Wafer-Scale Cluster.
- Separates SDK appliance mode functionality into a - cerebras.sdkPython module.
 
Deprecations¶
- Deprecated function - teardown.get_color()in- <tile_config>library has been removed. Use- teardown.get_task_id()instead.
- Deprecated - @bind_taskbuiltin has been removed. Use- @bind_control_task,- @bind_data_task, or- @bind_local_taskinstead.
- Deprecated use of color in - @activate,- .activate, on-control- .activate, FIFO- .activate_push, and FIFO- .activate_popis now an error. Use- local_task_idinstead.
- Use of integers as queue IDs is now an error. Use - input_queue_idand- output_queue_idtypes instead.
Resolved issues¶
- Fixed bug in which an - ifexpression assigned to a variable where both branches’ values are comptime known, but the condition is not, would crash the compiler.
- Fixed bug where - <time>library would occasionally incorrectly read the timestamp counter.
- Fixed bug where DSD operations in which the first operand is a 32-bit scalar could crash at runtime. 
- Fixed bug where runtime-determined - color,- input_queue, or- output_queuein- @get_dsdconfig would crash the compiler.
- Fixed bug where - .input_queueDSD config field would allow- output_queuevalues and vice versa.
- The 1D FFT example program now compiles for - Nz >= 256.
Known issues¶
- WSE-3 support is currently experimental. Users may encounter bugs while running WSE-3 programs. 
- memcpystreaming mode is not yet supported on WSE-3.
- The - <collectives_2d>library is not yet supported on WSE-3.
- Only GEMV tutorials 1 through 8 are currently supported on WSE-3. 
- The SDK GUI is not yet supported on WSE-3. 
- The bandwidth of memory transfers saturates at around 8 IO channels. 
Notes for future releases¶
- Use of - @get_coloron any ID other than a routable color ID will be removed in a future release.
Version 1.0.0¶
Released 13 November 2023
Note
The Cerebras Wafer-Scale Cluster appliance running CSoft 2.0 supports SDK 0.9. For SDK 0.9 documentation, see here.
New features and enhancements¶
- CSL language and compiler enhancements: - Introduces the - data_task_id,- local_task_id, and- control_task_idtypes, to explicitly differentiate the three types of tasks. Values of these types are created via the new- @get_data_task_id,- @get_local_task_id, and- @get_control_task_idbuiltins, respectively.- @get_data_task_idgenerates a task ID from a routable- color, while- @get_local_task_idand- @get_control_task_idgenerate task IDs from an integer within the range of allowed IDs. See Task Identifiers and Task Execution for more information on the new task type system.
- Introduces the - @bind_data_task,- @bind_local_task, and- @bind_control_taskbuiltins for binding tasks to the corresponding task ID type. Data tasks must take either one or two arguments (corresponding to the contents of a wavelet’s payload), and local tasks must take no arguments.
- Colors which are used by a - fabin_dsdto receive data and are not explicitly bound to a task no longer need to be blocked at compile time. The initial state of a- data_task_idnot explicitly bound to a task is now blocked.
- Introduces the - @get_intbuiltin to return the numerical value of values of type- data_task_id,- control_task_id,- local_task_id,- color,- input_queue, and- output_queue, as well as values of any- enumor integer type.- @get_color_idis now deprecated.
- @activatebuiltin and- .activatefield of builtins on DSDs now take values of type- local_task_idas an argument. Using- @activateor the- .activatefield on a value of type- coloris now deprecated.
- .activate_popand- .activate_pushfields of FIFOs now take values of type- local_task_idas an argument. Using these fields on a value of type- coloris now deprecated.
- @blockand- @unblockbuiltins and- .unblockfield of builtins on DSDs now take values of type- local_task_idor- data_task_idas arguments.
- The - @rpcbuiltin now takes values of type- data_task_id. It no longer accepts values of type- color.
- Introduces the - cslccompiler flag- --warnings-as-errors, to treat compiler warnings as errors.
- cslccompiler script which launches container to run the compiler now reads- CSL_IMPORT_PATHenvironment variable to search additional paths for- @import_module.
 
- CSL - memcpylibrary enhancements:- The - memcpylibrary has been rewritten to use the new task ID types.
 
- Other CSL library enhancements: - collectives_2dlibrary has been rewritten to use the new task ID types.
 
- SdkRuntimehost runtime enhancements:- Introduces new functionality in the - sdk_utilsmodule to simplify data type transformations for- memcpy_h2d()and- memcpy_d2h()calls.
- Introduces new functionality in the - sdk_utilsmodule to process elapsed timestamp data.
- Introduces - suppress_simfab_traceoption in the- SdkRuntimeconstructor to suppress generation of- simfab_tracesfiles when running.
 
- Example programs: - Example programs have been reorganized, renumbered, and updated. 
- Introduces three new example programs in the GEMV series, demonstrating more complex communication patterns. 
- Introduces a series of pipelining example programs to demonstrate the use of - memcpy- streamingmode to create a computation pipeline on the WSE.
 
- Documentation improvements: - Introduces new documentation on debugging CSL programs. See Debugging Guide. 
- Expands installation documentation to include Apptainer for running the SDK container. See Installation and Setup. 
 
- Appliance mode enhancements: - For Cerebras Wafer-Scale Clusters running CSoft 2.1, the - SdkCompiler::compilefunction now expects an artifact output path, and the function returns a compile artifact path instead of an artifact ID. The compile artifacts are now by default copied back to the user node when compilation finishes.
 
Deprecations¶
Support for
CSELFRunnerhas now been fully removed. All programs should use theSdkRuntimehost runtime.
The
call()function in theSdkRuntimePython host API has been deprecated. Uselaunch()instead, which includes argument type checking.
cslcno longer accepts--channels=0when compiling, as this setting corresponded toCSELFRunnermemcpysupport.
The
@get_color_idand@bind_taskbuiltins have been deprecated.
Using values of type
colorwith the@activatebuiltin or the.activate,.activate_pop, and.activate_pushfields has been deprecated.
The
@rpcbuiltin no longer accepts values of typecolor. Values of typedata_task_idmust be used instead.
Known issues¶
- The bandwidth of memory transfers saturates at around 8 IO channels. 
- When a DSD operation uses an explicit - fabinDSR, the compiler does not bind the color to the associated input queue at runtime. Instead, the user has to bind the color to the input queue explicitly via- @initialize_queue. See- pe.cslin stencil-3d-7pts for an example.
- The 1D FFT example program may fail to compile if - Nz >= 256, triggering an internal compiler exception.
Notes for future releases¶
- Using the - @bind_taskbuiltin to bind a task to a- coloris now deprecated. This builtin will be removed in a future release. Use- @bind_data_taskfor wavelet-triggered data tasks,- @bind_local_taskfor self-activated tasks, and- @bind_control_taskfor control wavelet-triggered tasks.
- Using the - @get_color_idbuiltin to get the numerical value of a color is now deprecated. This builtin will be removed in a future release. Use- @get_intinstead.
- Using the - @activatebuiltin on a- coloris now deprecated. The ability to do this will be removed in a future release.
Version 0.9.0¶
Released 2 October 2023
New features and enhancements¶
- CSL language and compiler enhancements: - @get_tensor_ptris now legal in code that contains no exported symbols, and will compile. If- @get_tensor_ptris executed at runtime when no symbols have been exported, then an- assert(false)will be hit.
- Introduces - @has_exported_tensorsbuiltin, which evaluates to- trueat comptime if the program contains any exported tensors.
- Introduces - externkeyword. The- externstorage class declares that a symbol for a variable or function is expected to be defined in an- exportdeclaration elsewhere. See Storage Classes.
- Introduces - exportkeyword. The- exportstorage class defines a variable or function with a certain name and type, and makes that variable or function available to other object files that are linked with the object being compiled. See Storage Classes.
- Introduces - linknamekeyword, which can be used to specify the name of the ELF symbol corresponding to the variable. See Syntax of CSL.
- Introduces support for function pointers. See Syntax of CSL. 
- Introduces new FIFO DSR types - dsr_fifo_destand- dsr_fifo_src, which allow FIFOs to be used with explicit DSRs. See Data Structure Registers.
- The - booltype is no longer allowed with the- @zerosbuiltin.- @constantsshould be used instead to initialize an array with- false.
- Bitwise not operator - ~is no longer allowed on the- booltype.
- Logical not operator - !is no longer allowed on integer types.
- Compiler diagnostics for circular dependencies have been improved. 
 
- CSL - memcpylibrary enhancements:- The - memcpyframework reserves two DSRs,- dsr_dest 0and- dsr_src1 0, to enable improved performance and reduce resource usage. The user should avoid using these explicit DSRs.
- The .data_type field is no longer needed when importing - memcpyto support copy mode.
 
- Other CSL library enhancements: - The - collectives_2dlibrary has been rewritten to use explicit DSRs, enabling improved performance and reducing resource usage. By default, the library uses- dsr_dest,- dsr_src0, and- dsr_src1IDs 1 and 2, for the X and Y dimensions, respectively, but can be configured to use other IDs when imported.
- The input and output queue IDs of - collectives_2dare also now configurable when imported. By default, the X dimension uses queues- 2and- 4, and the Y dimension uses queues- 3and- 5.
- The - tile_configlibrary contains a new- exceptionssubmodule, which can be used to unmask exceptions. See <tile_config>.
 
- SdkRuntimehost runtime additions:- Introduces an - sdk_utilslibrary which includes utility functions to prepare data sent with- memcpy_h2dand process data received from- memcpy_d2h. See SdkRuntime API Reference.
 
- Example programs additions: - Adds - SdkRuntimeversions of- gemv-checkerboard-patternand- gemv-collectives, which implement two different approaches for computing GEMV. See GEMV with Checkerboard Pattern and GEMV with Collective Communications.
- Adds - SdkRuntimeversion of- cholesky, which computes the Cholesky decomposition of a symmetric positive-definite matrix. See Cholesky.
- Adds additional - SdkRuntimetutorial example programs, including demos of sparse tensor operations, switches, filters, FIFOs, and the- @mapbuiltin.
- See the - csl-examplesGitHub repository for more example programs, including a 1D and 2D FFT,- histogram-torus,- mandelbrot, and- wide-multiplication.
 
- Documentation improvements: - Introduces additional documentation on the - SdkRuntimePython host API, including the new- sdk_utilslibrary. See SdkRuntime API Reference.
 
Resolved issues¶
- Fixes crash when compiling pointer to array of non-scalars. 
- Fixes crash when compiling pointer coercion from multidimensional array to 1D pointer of unknown size. 
- Fixes LLVM backend bug which previously produced incorrect addresses in certain circumstances, resulting in “Invalid address” errors in the simulator. This in particular could cause issues with the - collectives_2dlibrary.
- Fixes behavior of CSL - mathlibrary’s- isSignaling(x)for checking if- xis a signaling NaN.
- Fixes a bug where programs using - collectives_2dstall if the width or height of the core rectangle is greater than 160 PEs.
- The simulator can now support programs with height greater than 256 PEs. 
- csdbhas been fixed to correctly read core dumps from SDK programs.
Known issues¶
- The Singularity image may fail to work on Debian-based Linux distributions. The image works best with a Fedora-based distribution such as Red Hat or Rocky. 
- The bandwidth of memory transfers saturates at around 8 IO channels. 
- When a DSD operation uses an explicit - fabinDSR, the compiler does not bind the color to the associated input queue at runtime. Instead, the user has to bind the color to the input queue explicitly via- @initialize_queue. See- pe.cslin stencil-3d-7pts for an example.
Notes for future releases¶
- The - CSELFRunnerhost runtime has been deprecated. It will be completely removed in a future release.
Version 0.8.0¶
Released 21 June 2023
New features and enhancements¶
- Introduces support for Cerebras Wafer-Scale Clusters running in appliance mode. This support is limited to Python host code using the - SdkRuntimehost runtime, and only one SDK compile or execute job can be launched at a time, using no more than one Cerebras system. See Running SDK on a Wafer-Scale Cluster.
- CSL language and compiler enhancements: - Introduces - @get_output_queuebuiltin for creating output queue types. Using integers for output queue IDs is now deprecated and produces a warning.
- Introduces additional improvements and enhancements to internal builtins for supporting remote procedure calls (RPCs). 
- Introduces improved error handling for type casts using the - @asbuiltin.
- @load_to_dsrnow allow runtime determined colors in the- @activateand- @unblockfields.
- The grammar of - inititialize_queuehas been updated. Previously, inititializing a queue with ID- queue_idon color- color_idtook the form- @initialize_queue(queue_id, color_id);. The new syntax is- @initialize_queue(queue_id, .{.color = color_id});.
 
- CSL - memcpylibrary enhancements:- The - memcpylibrary can now support multiple types in the same kernel. The user still needs to import- memcpy.cslwith the- .data_type =field. The semantic meaning of- .data_typeis to enable copy mode for the host runtime.
 
- SdkRuntimehost runtime enhancements:- Introduces a - debug_utilslibrary which includes- get_symbol,- get_symbol_rect, and- read_trace, providing parity with- CSELFRunner’s debug support. Note that this library is available for simulator runs only.
- Introduces a - launchfunction, which features type checking and a variable number of arguments for kernel launches with the RPC mechanism. The legacy- memcpy_launchfunction has been deprecated, and users should use- launchinstead.
- memcpy_d2hand- memcpy_h2dnow feature dimension and data type checking for the host tensor.
- The bandwidth of D2H transfers is greatly improved for systems running in weight streaming mode. 
 
- Benchmark programs additions: - Adds - spmv-hypersparseto demonstrate a hypersparse matrix-vector multiplication. See spmv-hypersparse.
- Adds - stencil-3d-7ptsto demonstrate a sparse matrix-vector product using a matrix generated by a finite difference seven-point stencil. See stencil-3d-7pts.
- Adds - bicgstab,- powerMethod,- conjugateGradient, and- preconditionedConjugateGradientto demonstrate iterative methods on a seven-point stencil. See BiCGSTAB, Power Method, Conjugate Gradient, and Preconditioned Conjugate Gradient.
- Adds - single-tile-matvec, which benchmarks the performance of single-PE matrix-vector products in terms of aggregate wafer memory bandwidth and FLOPS. See Single Tile Matvec.
 
- Documentation improvements: - Introduces new tutorials for - SdkRuntimebuilt around computing a GEMV.
- Introduces additional documentation on the - SdkRuntimePython host API. See SdkRuntime API Reference.
 
Resolved issues¶
- When using - SdkRuntime, a nonblocking- memcpy_d2hbefore- stop()no longer triggers a segmentation fault.
- Programs using - SdkRuntimenow load correctly in the SDK GUI.
Known issues¶
- The bandwidth of memory transfers saturates at around 8 IO channels. 
- When a DSD operation uses an explicit - fabinDSR, the compiler does not bind the color to the associated input queue at runtime. Instead, the user has to bind the color to the input queue explicitly via- @initialize_queue.
Notes for future releases¶
- The - CSELFRunnerhost runtime has been deprecated. It will be completely removed in a future release.
Version 0.7.0¶
Released 17 April 2023
New features and enhancements¶
- CSL language and compiler enhancements: - Introduces - @set_teardown_handlerbuiltin which virtualizes the teardown task and allows for separate definitions of teardown operations for different colors.
- Introduces - @rpcbuiltin which automatically generates RPC interpreter for exported functions. Used with the- callhost function added to- SdkRuntime. Note that exported symbols may not have struct or enum types, and exported function may have at most 15 parameters.
- Introduces - @get_input_queuebuiltin for creating input queue types. Using integers for input queue IDs is now deprecated and produces a warning.
- Variables now have a - linksectionattribute. With the- --link-section-address-bytesflag, this allows global variables to be placed at a specific address.
- Introduces - control_transformfield for DSDs to transform the index portion of control wavelets.
- Introduces - @dfiltbuiltin which instructs an input queue to drop all data wavelets until a certain number of control wavelets are encountered.
- DSD - .activatefield now allows a runtime-determined color value.
- Deprecated color config syntax has been removed. 
- Compiler task table packing optimization increases performance of small tasks. 
 
- CSL library enhancements: - tile_configlibrary introduces- control_transformsubmodule to set mask when transforming index portion of control wavelets.
- collectives_2dlibrary now uses the virtualized teardown task, allowing for interoperability with programs that use- memcpyand the- SdkRuntimehost runtime.
 
- SdkRuntimehost runtime enhancements:- SdkRuntimeintroduces a- callfunction to greatly simplify kernel launches with the RPC mechanism. Functions exported in device code with the- @rpcbuiltin are now directly host-callable.
- memcpylibrary now supports 16-bit for copy mode.
- memcpylibrary now reserves color 27 to deliver better performance.
- Both - copyand- streamingmode now support 16-bit data. Note that in- streamingmode, the- MemcpyDataTypeparameter in- memcpy_h2dand- memcpy_d2hhost calls has no effect, and the user must handle the data appropriately in the receiving wavelet-triggered task.
- The - memcpy_h2dand- memcpy_d2hhost functions take an argument to specify the packing of the 3D input/output tensor into a 1D array, either row-major or column-major. The column-major option improves bandwidth of data transfers when the host data is packed in that order.
- The - memcpy_h2dand- memcpy_d2hhost functions have new function signatures to better handle the increased number of transfer type arguments. These are passed in a- structin the C++ interface, or as required- kwargsin the Python interface. This release supports the following options:- DataType: (new option) 16-bit or 32-bit
- Order: (new option) row-major or column-major
- streaming: true or false
- nonblock: true or false
 
- The runtime can seamlessly aggregate consecutive nonblocking - memcpy_h2dcalls, improving the bandwidth of bursts of small transfers.
 
- Benchmark programs additions and enhancements: - Adds - bandwidthTestto benchmark data transfer performance between host and device. See Bandwidth Test.
- Adds a version of - gemm-collectives_2dusing- SdkRuntime, which showcases the interoperability of the- collectives_2dlibrary with- memcpy. See GEMM with Collective Operations.
- Benchmark programs written with - SdkRuntimeand using the RPC mechanism to launch device kernels have been rewritten to use- callin the host code and the- @rpcbuiltin in the device code, greatly reducing the complexity of the programs.
 
- Documentation improvements: - Example programs have been reorganized into - CSELFRunnerand- SdkRuntimesections, to clearly differentiate programs by their host runtime.
- Adds appendix to describe SIMD operations on DSDs. See SIMD Mode. 
- Adds five tutorial example programs using - SdkRuntime, mirroring those written to use- CSELFRunner.
- Adds improved documentation on - SdkRuntimeand its host API.
 
Resolved issues¶
- Runtime expressions with - comptime-only types in comparisons no longer crash the compiler.
- comptimeswitch expressions can now switch on- comptime_int.
- Binding more than one task to the same color now produces a compiler error. 
- Compiler now checks that dimensionality of a tensor access expression does not exceed max dimensionality of type. 
Known issues¶
- Programs using the - SdkRuntimehost runtime may fail to load in the- sdk-guiwhen invoked with- sdk_debug_shell visualize.
- The bandwidth of D2H (device to host) memory transfers using - memcpyare about 7x to 8x slower than H2D (host to device).
- The bandwidth of memory transfers saturates at around 8 IO channels. 
- When a DSD operation uses an explicit - fabinDSR, the compiler does not bind the color to the associated input queue at runtime. Instead, the user has to bind the color to the input queue explicitly via- @initialize_queue.
- When using - SdkRuntime, if the last call before- stop()is a nonblocking- memcpy_d2h, then- stop()may trigger a segmentation fault.
Notes for future releases¶
- The - CSELFRunnerruntime will be deprecated in a future release. Code should be ported to the- SdkRuntimeruntime.
- Using integers for input queue IDs is now deprecated and will be removed in a future release. 
Version 0.6.0¶
Released 22 December 2022
New features and enhancements¶
- Compile times are improved due to enhanced caching support. 
- Introduces a new host-side runtime, - SdkRuntime, with greatly improved host-to-device and device-to-host data transfer performance.- Supports host-to-device (H2D) copy to a device CSL variable address ( - memcpy_h2d), device-to-host (D2H) copy from a device CSL variable address (- memcpy_d2h), and launch of CSL device kernels (- memcpy_launch).
- See Host Runtime and Tensor Streaming for more details. For examples using the new API, see Residual and 25-Point Stencil. 
 
- The legacy runtime, - CSELFRunner, now supports host-to-device and device-to-host copy using the memcpy API.
- CSL language enhancements: - Support for normal-mode FIFOs. 
- Introduces explicit DSRs, providing a more efficient way to execute DSD operations. 
- Initial RPC (remote procedure call) support, with a mechanism for host-device communication using shared symbols. 
- Additional support for DSD-to-scalar operations. 
- Support for setting task and microthread priority at comptime and runtime. 
- Improved assertion failure messages in - @comptime_assert.
- The - .unblockDSD field can now be used at runtime and comptime.
 
- CSL library enhancements: - Introduces - collectives_2dlibrary, which implements MPI-like communication primitives over rows or columns of PEs.
- New generic API for math libraries. 
- Introduces - directionslibrary, which provides utility functions for manipulating directions.
- Adds efficient implementations of - sin_f16and- cos_f16.
- Adds - issignaling_f16and- issignaling_f32, which check for signalling NaN.
- A new version of the - memcpylibrary supports copies to/from address, and updates to support new runtime. See Residual and 25-Point Stencil examples.
 
- cs_readelfimprovements:- Adds - --visualizecommand line option for drawing ASCII art representation of PE populations. See- --helpinformation for details.
- All addresses (both command line option inputs and printed outputs) are now in byte (8-bit) units instead of word (16-bit) units. 
 
- New benchmark programs: - Dense Cholesky decomposition. 
- Hadamard product, demonstrating selective batched execution mode. 
- GEMV with collective communications, demonstrating the - collectives_2dlibrary.
 
- Documentation improvements: - Adds a new introductory tutorials section to provide step-by-step instruction for learning CSL. See Tutorials. 
- Adds new example demonstrating the use of the - debuglibrary for tracing values at runtime.
- Adds sections on generics and DSRs. See Generics and Data Structure Registers. 
 
Resolved issues¶
- Relative paths are now handled correctly when importing code files as modules. 
Known issues¶
- The copy mode of - memcpyonly supports 32-bit data. To copy 16-bit data to the device, streaming mode must be used instead.
- If there are two device-to-host (D2H) - memcpycalls in a non-blocking sequence, and the first D2H is non-blocking, then the run can stall, especially when using back-to-back D2H calls. To avoid this risk, the user must use blocking D2H calls instead.
Notes for future releases¶
- The - CSELFRunnerruntime will be deprecated in a future release. Code should be ported to the- SdkRuntimeruntime.
Version 0.5.1¶
Released 27 September 2022
New features and enhancements¶
- An optional new implementation for tensor streaming is available. The new implementation is described in Host Runtime and Tensor Streaming, along with instructions for porting kernels to use the new implementation. Two new CSL code examples, Residual and 25-Point Stencil, are provided for reference. 
- The SDK GUI has introduced new features, detailed in SDK GUI. Major new features include: - Updated display of routing. 
- Addition of instruction tracing in the timeline. 
 
- CSL language enhancements: - Runtime support for named struct types. 
- switchsupport.
- comptimeand- anytypefunction argument support.
- comptime_stringsupport.
- Either color or task can now be used for DSD config operations. 
 
- CSL library enhancements: - Initial complex number support. 
- Runtime support for finding the position of the running PE within the rectangle. 
 
Version 0.4.0¶
Released 29 April 2022
New features and enhancements¶
- New CLI tool - csdbintroduced.- csdbcurrently supports debugging on hardware and will eventually support simulation debugging.
- New CLI tool - cs_readelfintroduced.
- As of 0.3.1, the numbers in the ELF binary names do NOT correspond to PE coordinates. 
- To access prior versions of SDK documentation, please email - developer@cerebras.net.
Known issues¶
- In the SDK GUI timeline view, clicking multiple PEs on the grid in quick succession may result in a JSON error. To avoid this error, please wait for the timeline to load before clicking the next PE. If you see this error for a PE, click a different PE, allow the timeline to load, and then click the original PE again. 
- If you launch - csdband type- ctrl+x, the container will lock up and prevent further action. If this happens, you must exit and re-launch your terminal session.
- cslc --helpreturns options for- cslc-driver, which are very similar tools, but not exactly the same. Please note that some options listed may not be available in- cslc.
Notes for future releases¶
- csdbCLIs will replace- sdk_debug_shellCLIs in a future release.- sdk_debug_shellwill be deprecated.
- Content under - CSL Code Exampleswill be move to the- csl-examplesGitHub repository in a future release. Please let us know if you need access to this repository by emailing- developer@cerebras.net.
Version 0.3.1¶
Released 25 February 2022
New features and enhancements¶
- Compile time is faster now due to caching improvements. 
- Support for FIFOs is added. See Data Structure Descriptors for documentation and - @allocate_fifoin Builtins.- See Topic 8: FIFOs for an example showing how to use - @allocate_fifo.
 
- Support for switching and filtering is added. With this feature, you can specify the routing configuration for a specific color at a specific processing element (PE). This can be done in a layout block ( - @set_color_config) or in a processing element’s top-level- comptimeblock (- @set_local_color_config). See Builtins for documentation.- See Topic 5: Switches and Topic 7: Filters for examples. 
 
- Support for microthreads is added. See Data Structure Descriptors for documentation. 
- Library support is added. See Libraries for a full list of supported library functions. 
- Added the following built-ins. See Builtins for a full list of supported built-ins. - @set_dsd_base_addr
- @random16
- @is_same_type
- @is_comptime
 
- Compile time floating point constants are now automatically type-casted as needed. So, instead of - @as(f32, 1.0)(see Builtins) or- @as(f16, 1.0), simply write- 1.0.
- Runtime floating point constants no longer default to type - f16but to- comptime_float. If you want a runtime variable, you now need to explicitly specify the desired type of that variable. For example, instead of- var x = 0.0;(wrong), write- var x: f16 = 0.0;.
- Adds support for setting the state of the pseudo-random number generator (PRNG). 
- Adds support for using general purpose registers (GPRs) as destination for DSD operations: - var result: f16 = 1.0; const buffer = [3]f16 {100.0, 250.0, 349.0}; task fooTask() void { const dsd = @get_dsd(mem1d_dsd, .{ .tensor_access = |i|{3} -> buffer[i] }); @faddh(&result, result, dsd); } 
- Asynchronous DSD operations must have at least one fabric DSD operand. Non-compliant code will now trigger an error message. 
- Adds support for the dot operator to access members of structs. Implemented for compile time only. 
- Colors can now be compared using - ==and- !=operators.
- DSD operations, for example, - add16, now support unsigned integer operands.
- A new - --verbosecompiler flag shows progress.
Requirements and unsupported features¶
- The SDK requires that the overlay filesystem functionality is available on your Linux system. 
- This SDK is supported only on Linux systems. 
- There are no guarantees for forward- or backward-compatibility for this release. 
- The SDK does not support running external Python scripts in the Singularity container. 
- The SDK only supports running the versions of packages provided in the Singularity container. 
Resolved issues¶
- Fixes a bug that prevented unit innermost dimension loops in - mem4d_dsds.
- Fixes a bug so that - mem4d_dsdsis now allowed to set the- wavelet_index_offsetbit.
- Compile time and runtime semantics of - set_dsd_base_addr(see Builtins) were different. This is fixed and now they are the same.
Known issues¶
- When using the SDK GUI, via - sdk_debug_shell visualize --artifact_dircommand, if the artifacts in the artifact directory change, then the SDK GUI will continue to show the old artifact data in a cache. To view the new artifacts, restart the SDK GUI by running the command- sdk_debug_shell visualize --artifact_dir.
- When you run the command - sdk_debug_shell visualize --artifact_dirto invoke the SDK GUI, you will see the following error message. This message can be safely ignored.- $ sdk_debug_shell visualize --artifact_dir /cb/cold/user1/sandbox/sdk_tool_rel-0.3.1/residual WARNING:cerebras.common.decorators:Call to deprecated function EnumFiles WARNING:root: . is not a valid workdir. ERROR:root:plan.meta not found in current directory or subdirectories. ERROR:root:No entries will be displayed. Click this link to open URL: http://user1:8000/?session_id=12b77f285e Click this link to open URL: http://172.xx.51.216:8000/?session_id=12b77f285e Press Ctrl-C to exit ERROR:root:Error reading A_1_1.elf ERROR:root:Error reading A_0_1.elf ERROR:root:Error reading A_1_0.elf ERROR:root:Error reading A_0_0.elf 
- The SDK GUI currently displays the color values only in the range of 0-14 inclusive. 
Version 0.2.1¶
Released 5 November 2021
This release adds usability improvements and fixes bugs encountered in the 0.2.0 debug tool CLIs. This release also adds compatibility with the Cerebras R0.9 Software Release, so the CS system hardware does not require re-imaging in order to use the SDK.
- This SDK is supported only on Linux systems. 
- There are no guarantees for forward- or backward-compatibility for this release. 
- The SDK requires that the overlay filesystem functionality is available on your Linux system. 
- The SDK only supports running the versions of packages provided in the Singularity container. 
- If the CSL compiler aborts with the LLVM error message - "PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script."then do not report to llvm.org but instead report the problem to Cerebras.
- The visualizer tool will not display single-ended routes, i.e., routes where PE A transmits to PE B, but PE B is missing a receiving route, and vice-versa. 
- CSELFRunnersupports single-node host only.
- We are no longer actively supporting or maintaining the CASM and Spoke workflow of version 0.1.x. Migration of code to CSL is needed. 
- The following examples in the - cslang/benchmarksdirectory of the SDK can be run only in simulation, and not on the CS system:- cslang/benchmarks/FFT
- cslang/benchmarks/wide-multiplication
 
- The - cslang/benchmarks/FFTexample incorrectly states “SUCCESS” on test completion.
- To run the CSL examples on the CS-1 you must manually emit wavelet to terminate the runtime. 
Version 0.2.0¶
Released 12 October 2021
- This SDK is supported only on Linux systems. 
- There are no guarantees for forward- or backward-compatibility for this release. 
- The SDK 0.2.0 requires that the overlay filesystem functionality is available on your Linux system. 
- Hardware support for SDK 0.2.0 is limited to the CS-1. 
- The SDK does not support running external Python scripts in the Singularity container. 
- The SDK only supports running the versions of packages provided in the Singularity container. 
- The SDK 0.2.0 image for the CS-1 is incompatible with the Cerebras Graph Compiler (CGC) 0.9.0 image. Hence, the SDK system image must be loaded in order to run CSL programs on the CS-1 system. 
- The visualizer tool will not display single-ended routes, i.e., routes where PE A transmits to PE B, but PE B is missing a receiving route, and vice-versa. 
- CSELFRunner supports single-node host only. 
- The following examples in the - cslang/benchmarksdirectory of the SDK can be run only in simulation, and not on the CS system:- cslang/benchmarks/FFT.
- cslang/benchmarks/wide-multiplication.
 
Pre-release Version 0.2.0¶
Released 27 August 2021
- Initial availability of the Pre-release 0.2.0 of the SDK documentation.