Intel has released an OpenCL tutorial showing how developers can use SPIR (Standard Portable Intermediate Representation) to preserve vendor and device portability without having to ship OpenCL kernel source code. For more information about how SPIR enables commercial OpenCl applications, see our article, “Commercial OpenCL! SPIR 2.0 Protects IP Yet Allows Powerful, Portable, Source Code Free Kernels”
Following is the outline of the tutorial “Using SPIR for fun and profit with Intel® OpenCL™ Code Builder“:
- What is SPIR?
- How is SPIR binary different from Intermediate Binary?
- How to produce SPIR binary with an Intel command line compiler?
- How to produce SPIR binary with Intel® INDE’s Kernel Builder?
- How to consume SPIR binary in your OpenCL™ program?
- Advantages of a SPIR Binary
- Disadvatages of a SPIR Binary
- Building and Running a SPIR Sample
- About the Author
- Legal Information
- Download the Sample