Well so you want to port CUDA code to OpenCL: you are in AMD GPU competition of porting Cuda codes to opencl (see previous post) or you are willing to port some of you exising cuda codes to opencl for working in amd also..
well there are some pointers to start:
1. nvidia jumpstart guide contains an example of porting a Cuda (but driver api) exaple of vector add to opencl. it examines in detail every api difference from memory setup, kernel launch, setup parameters, etc.. Also show some limitations in opencl vs cuda who you apparently can not have in mind by reading the opencl spec (notably lack of pointers..)
2. amd provides in her good article
"OpenCL™ and the ATI Stream SDK v2.0"
a section on Porting CUDA to OpenCL:
http://developer.amd.com/documentation/articles/pages/OpenCL-and-the-ATI-Stream-v2.0-Beta.aspx#four
Wednesday, 25 November 2009
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment