Utilities Example Introduction
Overview
Simple examples based on Ascend C SIMT programming, introducing on-board debugging methods such as printing and clock timing through APIs like printf and clock. These examples are suitable for the debugging phase.
Example List
| Directory Name | Function Description |
|---|---|
| 00_printf | This example demonstrates the usage of on-board printing functionality. |
| 01_assert | This example demonstrates the on-board assert assertion functionality. |
| 02_clock | This example demonstrates using the clock API to measure execution cycles of Gather computation. |
| 03_profiling | This example demonstrates how to use Profiling tools to collect performance data in on-board environments. |
| 07_simulator | This example demonstrates the compilation, execution, result verification, and performance data collection workflow of Ascend C programs in CAmodel simulator mode. |
| 09_log | This example demonstrates the usage of Ascend logging functionality, including log output to screen, log file storage, and log level control. |