More informations and examples are located at the Home Wikipage.

This is a small kernel which just doubles numbers. Views / Download Formatted Source Code: http://opencltutorial2.codeplex.com/SourceControl/changeset/view/366cecf0eb3d#double_number.cl

kernel void hello(global float * in, global float * out)
{
size_t tid = get_global_id(0);
out[tid] = in[tid]*2;
}

Last edited May 6, 2012 at 1:30 AM by rohezal, version 6

Comments

No comments yet.