changing demo to use addition

This commit is contained in:
Blaise Tine
2020-04-05 01:32:57 -04:00
parent 9b989cec69
commit 256dec4768
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ void kernel_body(void* arg) {
unsigned i = ((wNo * _arg->num_threads) + tid) * _arg->stride;
for (unsigned j = 0; j < _arg->stride; ++j) {
z[i+j] = x[i+j] * y[i+j];
z[i+j] = x[i+j] + y[i+j];
}
}