Sanitizers Tutorial

789806
9/30/2024

Introduction

This tutorial provides: • Four versions of a simple Fibonacci number list generator source code with errors • Example code for an OpenMP* mergeSort • A simple vectorAdd example using SYCL*.

Available Downloads

  • Size: 70 KB
  • SHA256: 6B891474A8C6AFB324D9A4447A13C7ADACC987E152C823ABB6C74A717C0B30B5
  • Size: 22.6 KB
  • SHA256: FC0F5132AAC79C0C27CFC0F5E62D631F7E85D4F687C13D9ABD98CE23BBCB33DC

Detailed Description

Get four versions of a simple Fibonacci number list generator source code:

  1. Out-of-Bounds Memory Address Error
  2. Signed Integer Overflow
  3. Uninitialized Memory
  4. All Fixed

The tutorial provides:

  • A merge sort example to illustrate ThreadSanitizer capabilities
  • A C++ with SYCL example for vectorAdd to illustrate GPU device-aware AddressSanitizer