@c -*-texinfo-*-

@c This file is part of the StarPU Handbook.
@c Copyright (C) 2009-2011  Université de Bordeaux 1
@c Copyright (C) 2010, 2011, 2013  Centre National de la Recherche Scientifique
@c See the file starpu.texi for copying conditions.

@smallexample
__kernel void vector_mult_opencl(int nx, __global float* val, float factor)
@{
        const int i = get_global_id(0);
        if (i < nx) @{
                val[i] *= factor;
        @}
@}
@end smallexample
