123456789101112131415161718192021222324 |
- @c StarPU --- Runtime system for heterogeneous multicore architectures.
- @c
- @c Copyright (C) 2009-2011 Université de Bordeaux 1
- @c Copyright (C) 2010, 2011 Centre National de la Recherche Scientifique
- @c
- @c StarPU is free software; you can redistribute it and/or modify
- @c it under the terms of the GNU Lesser General Public License as published by
- @c the Free Software Foundation; either version 2.1 of the License, or (at
- @c your option) any later version.
- @c
- @c StarPU is distributed in the hope that it will be useful, but
- @c WITHOUT ANY WARRANTY; without even the implied warranty of
- @c MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- @c
- @c See the GNU Lesser General Public License in COPYING.LGPL for more details.
- __kernel void vector_mult_opencl(__global float* val, int nx, float factor)
- @{
- const int i = get_global_id(0);
- if (i < nx) @{
- val[i] *= factor;
- @}
- @}
|