refactoring fixes

This commit is contained in:
Blaise Tine
2020-04-14 19:39:59 -04:00
parent 22c8da7490
commit 12dc4d6874
624 changed files with 600 additions and 28528 deletions

View File

@@ -0,0 +1,20 @@
#include "../../intrinsics/vx_intrinsics.h"
kernel void
vecadd (__global const int *a,
__global const int *b,
__global int *c)
{
int gid = get_global_id(0);
__if (gid < 2)
{
c[gid] = a[gid] + b[gid];
}
__else
{
c[gid] = b[gid] - a[gid];
}
__endif
}