.. _tut-gemv-01-complete-program: GEMV Tutorial 1: A Complete Program =================================== Now that we've shown the basic syntax of writing a GEMV in CSL, let's create a complete program which you can compile and run on the fabric simulator or a real Cerebras system. .. note:: We refer to the simulator or real system as the "device," and the CPU from which programs are launched the "host." We also often refer to functions which run on the device as "device kernels." Learning objectives ------------------- .. include:: objectives.rst Example overview ---------------- .. include:: overview.rst Writing the CSL --------------- .. include:: device-code.rst Compiling CSL code ------------------ .. include:: compiling.rst Writing the host code --------------------- .. include:: host-code.rst Running the program ------------------- .. include:: running.rst Moving from simulator to system ------------------------------- .. include:: running-system.rst Exercises --------- .. include:: exercises.rst Next ---- In the next tutorial, we expand this program to use data structure descriptors (DSDs), a core language feature of CSL.