tokei/tests/data/cuda.cu

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
163 B
Plaintext
Raw Normal View History

/* 7 lines 4 code 2 comments 1 blanks */
// add vector
__host__ void add(const int* a, const int* b, int* c) {
int i = threadIdx.x;
c[i] = a[i] + b[i];
}