Tutorials

Apply PXL concepts through hands-on examples.

Prerequisites

Complete these first:

  1. PXL Key Concepts - Understand core concepts and workflow
  2. Install - Setup and verification

Available Tutorials

Hello Sort
Learn SDK fundamentals by implementing parallel sorting. Start here if you’re new to XCENA SDK.

K-Nearest Neighbors (KNN)
Implement a machine learning algorithm for classification with multiple kernels.

Kernel Programming
Quick tips and practical guidelines for writing efficient MU kernels.

Hello Sort (Heterogeneous Programming) (experimental)
Write host code and device kernels in a single file and build them with one pxcc++ invocation. See Compiler for the annotation model and full option reference.

Tutorial Structure

Each tutorial follows this pattern:

  1. Objective - What you’ll build
  2. Build Compute Kernel - MU kernel implementation
  3. Build Host Application - PXL API usage
  4. Build & Run - Compilation and execution
  5. Understand the Code - Key concepts explained

After Tutorials

Once you’ve completed tutorials, explore advanced topics:

  • API Reference - Complete API documentation
  • Tools - Debugging, profiling, and optimization tools

Quick Reference

Already know the basics? Jump to specific topics:

  • NDArray usage → Hello Sort
  • Pointer-based execution → Hello Sort (pointer version)
  • Multiple kernels → KNN Application

Getting Help

Stuck? Check these resources:


Table of contents