Introductory Tutorial to OpenCL

Introductory Tutorial to OpenCL

Skip Navigation Links Home > GPU Tools > ATI Stream SDK > Introductory Tutorial to OpenCL

Benedict R. Gaster, AMD Architect, OpenCL

AMD just published its public OpenCL Beta for the CPU, soon to be followed with support for AMD’s latest GPUs. OpenCL is a young technology, and, while a specification has been published (www.khronos.org/registry/cl/ ), there are currently few documents that provide a basic introduction with examples. This article helps make OpenCL easier to understand and implement.

Note that:

  • I work at AMD, and, as such, I will test all example code on our implementation for both Windows® and Linux®; however, my intention is to illustrate the use of OpenCL regardless of platform. All examples are written in pure OpenCL and should run equally well on any implementation.
  • I have done my best to provide examples that work out-of-the-box on non-AMD implementations of OpenCL, but I will not be testing them on non-AMD implementations; therefore, it is possible that an example might not work as expected on such systems. If this is the case, please let me know via our Stream Computing forum, and I will do my best to rectify the code and publish an update.

The following “Hello World” tutorial provides a simple introduction to OpenCL. I hope to follow up this first tutorial with additional ones covering topics such as:

  • Using platform and device layers to build robust OpenCL
  • Program compilation and kernel objects
  • Managing buffers
  • Kernel execution
  • Kernel programming - basics
  • Kernel programming - synchronization
  • Matrix multiply - a case study
  • Kernel programming - built-ins

详情可访问:http://developer.amd.com/gpu/ATIStreamSDK/pages/TutorialOpenCL.aspx

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值