source:
CIVL/examples/cuda/include_order_1.cu@
8abfd3a
| Last change on this file since 8abfd3a was 997a683, checked in by , 5 years ago | |
|---|---|
|
|
| File size: 172 bytes | |
| Rev | Line | |
|---|---|---|
| [997a683] | 1 | #include "include_order_2.h" |
| 2 | ||
| 3 | __global__ void test_kernel(int* data, int numv) | |
| 4 | { | |
| 5 | int idx = threadIdx.x + blockIdx.x * blockDim.x; | |
| 6 | if (idx < numv) { | |
| 7 | data[0]++; | |
| 8 | } | |
| 9 | } |
Note:
See TracBrowser
for help on using the repository browser.
