Skip to content

Practice and Experiment with C OpenCL Kernels

Thomas Bollaert edited this page Nov 12, 2017 · 7 revisions

Apply and practice what you've learned in the earlier steps of this guide by running more hands-on examples, familiarize yourself with online SDAccel resources and make your way to the AWS forum to search knowledge and find answers.

Experiment with other examples

Running and experimenting with these three examples of the C/OPenCL kernels will help you further familiarize yourself with good coding practices and kernel optimization techniques.

Loop Pipelining

This example demonstrates how loop pipelining can be used to improve the performance of a kernel.

Download and run this example

Perfect Loops

This nearest neighbor example demonstrates how to achieve better performance using perfect loops.

Download and run this example

Loop Fusion

This example demonstrates how to fuse two loops into one to improve the performance of an OpenCL kernel.

Download and run this example


Additional Examples

The Xilinx Github repository contains more than 80 examples that will help you learn. Browse the repository to find more examples of interest, starting with more coding and optimization examples.

Browse other OpenCL kernel coding and optimization examples


Get support and troubleshoot issues

The AWS F1 SDAccel Development forum is the place to look for answers, share knowledge and get support. Make sure to subscribe to the forum by clicking the "Watch Forum" link in the "Available Actions" section.


Learn more about SDAccel

SDAccel QuickTake Video Tutorials

Fundamental Concepts of Application Host Code

OpenCL Memory Architecture

Documentation for SDAccel v2017.1

UG1238: SDx Development Environment Release Notes, Installation, and Licensing Guide

UG1023: SDAccel Environment User Guide

UG1207: SDAccel Environment Optimization Guide

UG1021: SDAccel Environment Tutorial