Code Samples
Explore the latest, ready-to-use code samples in GitHub* to develop, offload, and optimize multiarchitecture applications targeting CPUs, GPUs, and FPGAs.
Languages & Performance Optimization
Access coding techniques and tools for performant multiarchitecture development including SYCL*, C++, and Fortran.
Fortran Coarray
Illustrates a guided approach to build and run a serial Fortran application, and then convert it to run in parallel using coarrays.
2D Finite-Difference Wave Propagation
Demonstrates using SYCL queues, buffers, and accessors to solve complex 2D acoustic isotropic wave differential equations.
Find the Shortest Paths Between Pairs of Vertices
Demonstrates how to use the Floyd-Warshall algorithm to offload compute-intensive work to the GPU efficiently.
Simple CUDA* Graphs
Demonstrates migrating simple CUDA* Graphs code from CUDA to SYCL* using the Taskflow programming model.
Jacobi Iterative Solver
Demonstrates how to use the Jacobi iterative method to solve linear equations while using SYCL offload resource intensive computations to either a single GPU or multiple GPUs.
Monte Carlo Multi-GPU
Demonstrates how to calculate option call prices using a Monte Carlo simulation while using SYCL to optimize resource intensive computations through offloading to multiple GPUs.
Performance Libraries
Improve application performance and development for heterogeneous computing with these oneAPI-optimized libraries.
oneTBB Tasks to Run Computational Kernels
Demonstrates the difference between two Intel® oneAPI Threading Building Blocks (oneTBB) tasks on kernels using SYCL and on oneTBB code implemented on CPUs and GPUs.
Black-Scholes for Randomly Generated Portfolios
Demonstrates using vector math and random number generators in Intel® oneAPI Math Kernel Library (oneMKL) to calculate the prices of options.
Fourier Correlation
Demonstrates how to implement 1D and 2D Fourier correlations using SYCL and oneMKL.
AI & Analytics
Find samples to architect, train, and deploy models, as well as end-to-end workloads, common optimizations using popular frameworks, ways to get started with Python* libraries, and more.
PyTorch* Training Optimizations with Intel® Advanced Matrix Extensions (Intel® AMX)
Illustrates how training a PyTorch* model using Intel® AMX changes performance.
Fine-tuning a Text Classification Model with Intel® Neural Compressor
Demonstrates fine-tuning a text model for emotion classification tasks using quantization-aware training from Intel® Neural Compressor.
Enable Automixed Precision for Transfer Learning
Demonstrates the end-to-end pipeline tasks typically performed in a deep learning use case and describes the benefits.
Model Zoo for Intel® Architecture Inference with FP32 and int8
Demonstrates how combining TensorFlow* ResNet-50 inference and oneMKL can increase inference performance.
Analyzers & Debuggers
Design code early in the development cycle for optimal performance and accelerator offload, including threading, vectorization, memory, and power and thermal behavior.
Profile an Application Using Intel® VTune™ Profiler
Demonstrates multiple implementations of matrix multiplication using SYCL for CPUs and GPUs, and then analyzing using Intel VTune Profiler.
Profile an Application Using Intel® Advisor
Demonstrates multiple implementations of matrix multiplication using SYCL for CPUs and GPUs and running an analysis using Intel® Advisor.
Guided Matrix Multiply for Bad Buffers
Demonstrates how to identify different but related bugs in Unified Shared Memory (USM) and buffer matrix multiplier code. The sample includes the corrected code.
FPGAs
Accelerate innovation with Intel® FPGAs coupled with oneAPI tools, all optimized for a wide range of applications.
GNU Gzip or Snappy Decompression Engine
This reference design demonstrates implementations of Gzip or Snappy decompression engines on an Intel FPGA.
Loop Unroll
A tutorial demonstrates unrolling loops to improve throughput for an FPGA program that is compliant with SYCL*.
Rendering & Ray Tracing
Create complex, photorealistic renderings that scale end-to-end on laptops, workstations, HPC, and cloud with fidelity-first, open source libraries.
Introduction to Ray Tracing with Intel® Embree
Demonstrates how to build a basic geometry, ray tracing application with this performant ray tracing library.
Path Tracing with Intel Embree
Demonstrates using components of the Intel® oneAPI Rendering Toolkit (Render Kit) to implement basic path tracing and shows how to use some new features.

Stay In the Know on All Things CODE
Sign up to receive the latest tech articles, tutorials, dev tools, training opportunities, product updates, and more, hand-curated to help you optimize your code, no matter where you are in your developer journey. Take a chance and subscribe. You can change your mind at any time.