diff options
Diffstat (limited to 'silx/resources/opencl/addition.cl')
-rw-r--r-- | silx/resources/opencl/addition.cl | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/silx/resources/opencl/addition.cl b/silx/resources/opencl/addition.cl index 8ecfd4e..35d7996 100644 --- a/silx/resources/opencl/addition.cl +++ b/silx/resources/opencl/addition.cl @@ -27,10 +27,16 @@ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. */ -__kernel void addition(__global float* a, __global float* b, __global float* res, int N) + + +// "Hello_world" kernel to test if OpenCL is actually working +kernel void addition(global float* a, + global float* b, + global float* res, + int N) { - unsigned int i = get_global_id(0); + int i = get_global_id(0); if( i<N ){ res[i] = a[i] + b[i]; } -}
\ No newline at end of file +} |